summaryrefslogtreecommitdiff
path: root/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master
diff options
context:
space:
mode:
authorraveit65 (via Travis CI) <[email protected]>2023-07-21 03:09:56 +0000
committerraveit65 (via Travis CI) <[email protected]>2023-07-21 03:09:56 +0000
commit8f6ca4c787210df90e5e371a3cafe54400785252 (patch)
tree8cb65e74f0bdb34bfe5f925978496ea1548c0de7 /2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master
downloadmate-netbook-8f6ca4c787210df90e5e371a3cafe54400785252.tar.bz2
mate-netbook-8f6ca4c787210df90e5e371a3cafe54400785252.tar.xz
Deploy mate-desktop/mate-netbook to github.com/mate-desktop/mate-netbook.git:gh-pagesgh-pages
Diffstat (limited to '2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master')
-rw-r--r--2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/0.html1549
-rw-r--r--2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/1.html441
-rw-r--r--2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/2.html1333
-rw-r--r--2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/3.html1225
-rw-r--r--2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/4.html915
-rw-r--r--2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/index.html216
-rw-r--r--2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/stats.html171
-rw-r--r--2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/style.css177
8 files changed, 6027 insertions, 0 deletions
diff --git a/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/0.html b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/0.html
new file mode 100644
index 0000000..96d617b
--- /dev/null
+++ b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/0.html
@@ -0,0 +1,1549 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-netbook</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-netbook: maximus/eggaccelerators.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> eggaccelerators.c</p>
+<a href="0.html#line-322"> duplicateExpression 322</a>
+ </div>
+ <div id="content">
+<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* eggaccelerators.c</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2002 Red Hat, Inc.; Copyright 1998, 2001 Tim Janik</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Developed by Havoc Pennington, Tim Janik</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 library is free software; you can redistribute it and/or</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * modify it under the terms of the GNU Library General Public</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * version 2 of the License, or (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 library 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 GNU</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * Library 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 Library General Public</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * License along with this library; if not, write to the</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA </span>
+<a id="line-19" name="line-19"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-20" name="line-20"></a>
+<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;eggaccelerators.h&quot;</span><span class="cp"></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">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="cp"></span>
+<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkkeysyms.h&gt;</span><span class="cp"></span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="k">enum</span><span class="w"></span>
+<a id="line-28" name="line-28"></a><span class="p">{</span><span class="w"></span>
+<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_SHIFT</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>
+<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_LOCK</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>
+<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_CONTROL</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>
+<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_MOD1</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>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_MOD2</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>
+<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_MOD3</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>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_MOD4</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"></span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_MOD5</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">7</span><span class="p">,</span><span class="w"></span>
+<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">EGG_MODMAP_ENTRY_LAST</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">8</span><span class="w"></span>
+<a id="line-38" name="line-38"></a><span class="p">};</span><span class="w"></span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cp">#define MODMAP_ENTRY_TO_MODIFIER(x) (1 &lt;&lt; (x))</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>
+<a id="line-43" name="line-43"></a><span class="p">{</span><span class="w"></span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_LAST</span><span class="p">];</span><span class="w"></span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="p">}</span><span class="w"> </span><span class="n">EggModmap</span><span class="p">;</span><span class="w"></span>
+<a id="line-47" name="line-47"></a>
+<a id="line-48" name="line-48"></a><span class="k">const</span><span class="w"> </span><span class="n">EggModmap</span><span class="o">*</span><span class="w"> </span><span class="nf">egg_keymap_get_modmap</span><span class="w"> </span><span class="p">(</span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="p">);</span><span class="w"></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="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-51" name="line-51"></a><span class="nf">is_alt</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-52" name="line-52"></a><span class="p">{</span><span class="w"></span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="n">string</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="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;l&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;L&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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">||</span><span class="w"> </span><span class="n">string</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="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-58" name="line-58"></a><span class="p">}</span><span class="w"></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="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-61" name="line-61"></a><span class="nf">is_ctl</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-62" name="line-62"></a><span class="p">{</span><span class="w"></span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;c&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;C&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;t&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;T&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;l&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;L&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-68" name="line-68"></a><span class="p">}</span><span class="w"></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="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-71" name="line-71"></a><span class="nf">is_modx</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-72" name="line-72"></a><span class="p">{</span><span class="w"></span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;m&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;M&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;o&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;O&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;d&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;D&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">4</span><span class="p">]</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="sc">&#39;1&#39;</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">string</span><span class="p">[</span><span class="mi">4</span><span class="p">]</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="sc">&#39;5&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-79" name="line-79"></a><span class="p">}</span><span class="w"></span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-82" name="line-82"></a><span class="nf">is_ctrl</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-83" name="line-83"></a><span class="p">{</span><span class="w"></span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;c&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;C&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;t&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;T&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;r&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;R&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;l&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;L&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-90" name="line-90"></a><span class="p">}</span><span class="w"></span>
+<a id="line-91" name="line-91"></a>
+<a id="line-92" name="line-92"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-93" name="line-93"></a><span class="nf">is_shft</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-94" name="line-94"></a><span class="p">{</span><span class="w"></span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;s&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;S&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;h&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;H&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;f&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;F&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;t&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;T&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-101" name="line-101"></a><span class="p">}</span><span class="w"></span>
+<a id="line-102" name="line-102"></a>
+<a id="line-103" name="line-103"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-104" name="line-104"></a><span class="nf">is_shift</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-105" name="line-105"></a><span class="p">{</span><span class="w"></span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;s&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;S&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;h&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;H&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;i&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;I&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;f&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;F&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</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><span class="w"> </span><span class="n">string</span><span class="p">[</span><span class="mi">5</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="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-113" name="line-113"></a><span class="p">}</span><span class="w"></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="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-116" name="line-116"></a><span class="nf">is_control</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-117" name="line-117"></a><span class="p">{</span><span class="w"></span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;c&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;C&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;o&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;O&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;n&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;N&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;t&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;T&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;r&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</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="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;o&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;O&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">7</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;l&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</span><span class="p">[</span><span class="mi">7</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;L&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-127" name="line-127"></a><span class="p">}</span><span class="w"></span>
+<a id="line-128" name="line-128"></a>
+<a id="line-129" name="line-129"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-130" name="line-130"></a><span class="nf">is_release</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-131" name="line-131"></a><span class="p">{</span><span class="w"></span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;r&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;R&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;e&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;E&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;l&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;L&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;e&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;E&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</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="n">string</span><span class="p">[</span><span class="mi">5</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="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;s&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;S&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">7</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;e&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</span><span class="p">[</span><span class="mi">7</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;E&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-141" name="line-141"></a><span class="p">}</span><span class="w"></span>
+<a id="line-142" name="line-142"></a>
+<a id="line-143" name="line-143"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-144" name="line-144"></a><span class="nf">is_meta</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-145" name="line-145"></a><span class="p">{</span><span class="w"></span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;m&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;M&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;e&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;E&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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">||</span><span class="w"> </span><span class="n">string</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="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;a&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;A&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-152" name="line-152"></a><span class="p">}</span><span class="w"></span>
+<a id="line-153" name="line-153"></a>
+<a id="line-154" name="line-154"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-155" name="line-155"></a><span class="nf">is_super</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-156" name="line-156"></a><span class="p">{</span><span class="w"></span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;s&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;S&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;u&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;U&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;p&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;P&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;e&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;E&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;r&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</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="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-164" name="line-164"></a><span class="p">}</span><span class="w"></span>
+<a id="line-165" name="line-165"></a>
+<a id="line-166" name="line-166"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-167" name="line-167"></a><span class="nf">is_hyper</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">string</span><span class="p">)</span><span class="w"></span>
+<a id="line-168" name="line-168"></a><span class="p">{</span><span class="w"></span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">string</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;&lt;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;h&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;H&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;y&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;Y&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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;p&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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;P&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;e&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</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="sc">&#39;E&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;r&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">string</span><span class="p">[</span><span class="mi">5</span><span class="p">]</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="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="p">(</span><span class="n">string</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="sc">&#39;&gt;&#39;</span><span class="p">));</span><span class="w"></span>
+<a id="line-176" name="line-176"></a><span class="p">}</span><span class="w"></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"> * egg_accelerator_parse_virtual:</span>
+<a id="line-180" name="line-180"></a><span class="cm"> * @accelerator: string representing an accelerator</span>
+<a id="line-181" name="line-181"></a><span class="cm"> * @accelerator_key: return location for accelerator keyval</span>
+<a id="line-182" name="line-182"></a><span class="cm"> * @accelerator_mods: return location for accelerator modifier mask</span>
+<a id="line-183" name="line-183"></a><span class="cm"> *</span>
+<a id="line-184" name="line-184"></a><span class="cm"> * Parses a string representing a virtual accelerator. The format</span>
+<a id="line-185" name="line-185"></a><span class="cm"> * looks like &quot;&amp;lt;Control&amp;gt;a&quot; or &quot;&amp;lt;Shift&amp;gt;&amp;lt;Alt&amp;gt;F1&quot; or</span>
+<a id="line-186" name="line-186"></a><span class="cm"> * &quot;&amp;lt;Release&amp;gt;z&quot; (the last one is for key release). The parser</span>
+<a id="line-187" name="line-187"></a><span class="cm"> * is fairly liberal and allows lower or upper case, and also</span>
+<a id="line-188" name="line-188"></a><span class="cm"> * abbreviations such as &quot;&amp;lt;Ctl&amp;gt;&quot; and &quot;&amp;lt;Ctrl&amp;gt;&quot;.</span>
+<a id="line-189" name="line-189"></a><span class="cm"> *</span>
+<a id="line-190" name="line-190"></a><span class="cm"> * If the parse fails, @accelerator_key and @accelerator_mods will</span>
+<a id="line-191" name="line-191"></a><span class="cm"> * be set to 0 (zero) and %FALSE will be returned. If the string contains</span>
+<a id="line-192" name="line-192"></a><span class="cm"> * only modifiers, @accelerator_key will be set to 0 but %TRUE will be</span>
+<a id="line-193" name="line-193"></a><span class="cm"> * returned.</span>
+<a id="line-194" name="line-194"></a><span class="cm"> *</span>
+<a id="line-195" name="line-195"></a><span class="cm"> * The virtual vs. concrete accelerator distinction is a relic of</span>
+<a id="line-196" name="line-196"></a><span class="cm"> * how the X Window System works; there are modifiers Mod2-Mod5 that</span>
+<a id="line-197" name="line-197"></a><span class="cm"> * can represent various keyboard keys (numlock, meta, hyper, etc.),</span>
+<a id="line-198" name="line-198"></a><span class="cm"> * the virtual modifier represents the keyboard key, the concrete</span>
+<a id="line-199" name="line-199"></a><span class="cm"> * modifier the actual Mod2-Mod5 bits in the key press event.</span>
+<a id="line-200" name="line-200"></a><span class="cm"> * </span>
+<a id="line-201" name="line-201"></a><span class="cm"> * Returns: %TRUE on success.</span>
+<a id="line-202" name="line-202"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-203" name="line-203"></a><span class="n">gboolean</span><span class="w"></span>
+<a id="line-204" name="line-204"></a><span class="nf">egg_accelerator_parse_virtual</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">accelerator</span><span class="p">,</span><span class="w"></span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="o">*</span><span class="n">accelerator_key</span><span class="p">,</span><span class="w"></span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="o">*</span><span class="n">accelerator_mods</span><span class="p">)</span><span class="w"></span>
+<a id="line-207" name="line-207"></a><span class="p">{</span><span class="w"></span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">keyval</span><span class="p">;</span><span class="w"></span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">GdkModifierType</span><span class="w"> </span><span class="n">mods</span><span class="p">;</span><span class="w"></span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"></span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">bad_keyval</span><span class="p">;</span><span class="w"></span>
+<a id="line-212" name="line-212"></a><span class="w"> </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">accelerator_key</span><span class="p">)</span><span class="w"></span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="o">*</span><span class="n">accelerator_key</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>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="p">)</span><span class="w"></span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="o">*</span><span class="n">accelerator_mods</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>
+<a id="line-217" name="line-217"></a>
+<a id="line-218" name="line-218"></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">accelerator</span><span class="w"> </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><span class="w"></span>
+<a id="line-219" name="line-219"></a>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">bad_keyval</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>
+<a id="line-221" name="line-221"></a><span class="w"> </span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">keyval</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>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">mods</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>
+<a id="line-224" name="line-224"></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">accelerator</span><span class="p">);</span><span class="w"></span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">len</span><span class="p">)</span><span class="w"></span>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-227" name="line-227"></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">accelerator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;&lt;&#39;</span><span class="p">)</span><span class="w"></span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-229" name="line-229"></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">&gt;=</span><span class="w"> </span><span class="mi">9</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_release</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">9</span><span class="p">;</span><span class="w"></span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">9</span><span class="p">;</span><span class="w"></span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_RELEASE_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-235" name="line-235"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">9</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_control</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">9</span><span class="p">;</span><span class="w"></span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">9</span><span class="p">;</span><span class="w"></span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_CONTROL_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-241" name="line-241"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">7</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_shift</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">7</span><span class="p">;</span><span class="w"></span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">7</span><span class="p">;</span><span class="w"></span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SHIFT_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="p">}</span><span class="w"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">6</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_shft</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">6</span><span class="p">;</span><span class="w"></span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">6</span><span class="p">;</span><span class="w"></span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SHIFT_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-253" name="line-253"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">6</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_ctrl</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">6</span><span class="p">;</span><span class="w"></span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">6</span><span class="p">;</span><span class="w"></span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_CONTROL_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-259" name="line-259"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">6</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_modx</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-261" name="line-261"></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">guint</span><span class="w"> </span><span class="n">mod_vals</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>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">EGG_VIRTUAL_ALT_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD2_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD3_MASK</span><span class="p">,</span><span class="w"></span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD4_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD5_MASK</span><span class="w"></span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">};</span><span class="w"></span>
+<a id="line-265" name="line-265"></a>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">6</span><span class="p">;</span><span class="w"></span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">accelerator</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>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">mod_vals</span><span class="p">[</span><span class="o">*</span><span class="n">accelerator</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="sc">&#39;1&#39;</span><span class="p">];</span><span class="w"></span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">accelerator</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>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">}</span><span class="w"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">5</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_ctl</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">accelerator</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>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">len</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>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_CONTROL_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-277" name="line-277"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">5</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_alt</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">accelerator</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>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">len</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>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_ALT_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">}</span><span class="w"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">6</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_meta</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">6</span><span class="p">;</span><span class="w"></span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">6</span><span class="p">;</span><span class="w"></span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_META_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">}</span><span class="w"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">7</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_hyper</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">7</span><span class="p">;</span><span class="w"></span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">7</span><span class="p">;</span><span class="w"></span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_HYPER_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">}</span><span class="w"></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">len</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">7</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">is_super</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">))</span><span class="w"></span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">7</span><span class="p">;</span><span class="w"></span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">7</span><span class="p">;</span><span class="w"></span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SUPER_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">last_ch</span><span class="p">;</span><span class="w"></span>
+<a id="line-304" name="line-304"></a><span class="w"> </span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">last_ch</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">accelerator</span><span class="p">;</span><span class="w"></span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">last_ch</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">last_ch</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;&gt;&#39;</span><span class="p">)</span><span class="w"></span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">last_ch</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">accelerator</span><span class="p">;</span><span class="w"></span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">accelerator</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>
+<a id="line-310" name="line-310"></a><span class="w"> </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><span class="w"></span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_keyval_from_name</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="p">);</span><span class="w"></span>
+<a id="line-317" name="line-317"></a><span class="w"> </span>
+<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">keyval</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>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">bad_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-320" name="line-320"></a><span class="w"> </span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">accelerator</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"></span>
+<a id="line-322" name="line-322"></a><span class="hll"><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"> </span><div class="verbose expandable"><span class="error2">&lt;--- Same expression on both sides of '-='. <span class="marker">[+]</span></span><div class="content">Finding the same expression on both sides of an operator is suspicious and might indicate a cut and paste or logic error. Please examine this code carefully to determine if it is correct.</div></div>
+</span><a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-325" name="line-325"></a><span class="w"> </span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_key</span><span class="p">)</span><span class="w"></span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="o">*</span><span class="n">accelerator_key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_keyval_to_lower</span><span class="w"> </span><span class="p">(</span><span class="n">keyval</span><span class="p">);</span><span class="w"></span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="p">)</span><span class="w"></span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="o">*</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mods</span><span class="p">;</span><span class="w"></span>
+<a id="line-330" name="line-330"></a>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">!</span><span class="n">bad_keyval</span><span class="p">;</span><span class="w"></span>
+<a id="line-332" name="line-332"></a><span class="p">}</span><span class="w"></span>
+<a id="line-333" name="line-333"></a>
+<a id="line-334" name="line-334"></a><span class="cm">/**</span>
+<a id="line-335" name="line-335"></a><span class="cm"> * egg_virtual_accelerator_name:</span>
+<a id="line-336" name="line-336"></a><span class="cm"> * @accelerator_key: accelerator keyval</span>
+<a id="line-337" name="line-337"></a><span class="cm"> * @accelerator_mods: accelerator modifier mask</span>
+<a id="line-338" name="line-338"></a><span class="cm"> * @returns: a newly-allocated accelerator name</span>
+<a id="line-339" name="line-339"></a><span class="cm"> * </span>
+<a id="line-340" name="line-340"></a><span class="cm"> * Converts an accelerator keyval and modifier mask</span>
+<a id="line-341" name="line-341"></a><span class="cm"> * into a string parseable by egg_accelerator_parse_virtual().</span>
+<a id="line-342" name="line-342"></a><span class="cm"> * For example, if you pass in #GDK_q and #EGG_VIRTUAL_CONTROL_MASK,</span>
+<a id="line-343" name="line-343"></a><span class="cm"> * this function returns &quot;&amp;lt;Control&amp;gt;q&quot;.</span>
+<a id="line-344" name="line-344"></a><span class="cm"> *</span>
+<a id="line-345" name="line-345"></a><span class="cm"> * The caller of this function must free the returned string.</span>
+<a id="line-346" name="line-346"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-347" name="line-347"></a><span class="n">gchar</span><span class="o">*</span><span class="w"></span>
+<a id="line-348" name="line-348"></a><span class="nf">egg_virtual_accelerator_name</span><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="w"> </span><span class="n">accelerator_key</span><span class="p">,</span><span class="w"></span>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="n">accelerator_mods</span><span class="p">)</span><span class="w"></span>
+<a id="line-350" name="line-350"></a><span class="p">{</span><span class="w"></span>
+<a id="line-351" name="line-351"></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">gchar</span><span class="w"> </span><span class="n">text_release</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Release&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-352" name="line-352"></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">gchar</span><span class="w"> </span><span class="n">text_shift</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Shift&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-353" name="line-353"></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">gchar</span><span class="w"> </span><span class="n">text_control</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Control&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-354" name="line-354"></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">gchar</span><span class="w"> </span><span class="n">text_mod1</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Alt&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-355" name="line-355"></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">gchar</span><span class="w"> </span><span class="n">text_mod2</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Mod2&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-356" name="line-356"></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">gchar</span><span class="w"> </span><span class="n">text_mod3</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Mod3&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-357" name="line-357"></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">gchar</span><span class="w"> </span><span class="n">text_mod4</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Mod4&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-358" name="line-358"></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">gchar</span><span class="w"> </span><span class="n">text_mod5</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Mod5&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-359" name="line-359"></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">gchar</span><span class="w"> </span><span class="n">text_meta</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Meta&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-360" name="line-360"></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">gchar</span><span class="w"> </span><span class="n">text_super</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Super&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-361" name="line-361"></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">gchar</span><span class="w"> </span><span class="n">text_hyper</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&lt;Hyper&gt;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">l</span><span class="p">;</span><span class="w"></span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">keyval_name</span><span class="p">;</span><span class="w"></span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">accelerator</span><span class="p">;</span><span class="w"></span>
+<a id="line-365" name="line-365"></a>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MODIFIER_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-367" name="line-367"></a>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">keyval_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_keyval_name</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_keyval_to_lower</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_key</span><span class="p">));</span><span class="w"></span>
+<a id="line-369" name="line-369"></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">keyval_name</span><span class="p">)</span><span class="w"></span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">keyval_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-371" name="line-371"></a>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">l</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>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_RELEASE_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">l</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">text_release</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>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SHIFT_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">l</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">text_shift</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>
+<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">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_CONTROL_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">l</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">text_control</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>
+<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">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_ALT_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">l</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">text_mod1</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>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD2_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">l</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">text_mod2</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>
+<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">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD3_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">l</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">text_mod3</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>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD4_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">l</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">text_mod4</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>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD5_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">l</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">text_mod5</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>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_META_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">l</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">text_meta</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>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_HYPER_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">l</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">text_hyper</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>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SUPER_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">l</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">text_super</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>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">l</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">keyval_name</span><span class="p">);</span><span class="w"></span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">accelerator</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">gchar</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="mi">1</span><span class="p">);</span><span class="w"></span>
+<a id="line-398" name="line-398"></a>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">l</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>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">accelerator</span><span class="p">[</span><span class="n">l</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>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_RELEASE_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_release</span><span class="p">);</span><span class="w"></span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">l</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">text_release</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>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SHIFT_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_shift</span><span class="p">);</span><span class="w"></span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">l</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">text_shift</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>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<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">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_CONTROL_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_control</span><span class="p">);</span><span class="w"></span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">l</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">text_control</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>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_ALT_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_mod1</span><span class="p">);</span><span class="w"></span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">l</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">text_mod1</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>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD2_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_mod2</span><span class="p">);</span><span class="w"></span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">l</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">text_mod2</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>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<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="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD3_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_mod3</span><span class="p">);</span><span class="w"></span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">l</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">text_mod3</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>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<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="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD4_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_mod4</span><span class="p">);</span><span class="w"></span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">l</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">text_mod4</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>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD5_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_mod5</span><span class="p">);</span><span class="w"></span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">l</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">text_mod5</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>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_META_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_meta</span><span class="p">);</span><span class="w"></span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">l</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">text_meta</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>
+<a id="line-445" name="line-445"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_HYPER_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_hyper</span><span class="p">);</span><span class="w"></span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">l</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">text_hyper</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>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator_mods</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SUPER_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">text_super</span><span class="p">);</span><span class="w"></span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">l</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">text_super</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>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-456" name="line-456"></a><span class="w"> </span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">strcpy</span><span class="w"> </span><span class="p">(</span><span class="n">accelerator</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">keyval_name</span><span class="p">);</span><span class="w"></span>
+<a id="line-458" name="line-458"></a>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">accelerator</span><span class="p">;</span><span class="w"></span>
+<a id="line-460" name="line-460"></a><span class="p">}</span><span class="w"></span>
+<a id="line-461" name="line-461"></a>
+<a id="line-462" name="line-462"></a><span class="kt">void</span><span class="w"></span>
+<a id="line-463" name="line-463"></a><span class="nf">egg_keymap_resolve_virtual_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="p">,</span><span class="w"></span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="n">virtual_mods</span><span class="p">,</span><span class="w"></span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">GdkModifierType</span><span class="w"> </span><span class="o">*</span><span class="n">concrete_mods</span><span class="p">)</span><span class="w"></span>
+<a id="line-466" name="line-466"></a><span class="p">{</span><span class="w"></span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">GdkModifierType</span><span class="w"> </span><span class="n">concrete</span><span class="p">;</span><span class="w"></span>
+<a id="line-468" name="line-468"></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>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">EggModmap</span><span class="w"> </span><span class="o">*</span><span class="n">modmap</span><span class="p">;</span><span class="w"></span>
+<a id="line-470" name="line-470"></a>
+<a id="line-471" name="line-471"></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_IS_KEYMAP</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">));</span><span class="w"></span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">concrete_mods</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-473" name="line-473"></a><span class="w"> </span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">modmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_keymap_get_modmap</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">);</span><span class="w"></span>
+<a id="line-475" name="line-475"></a><span class="w"> </span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="cm">/* Not so sure about this algorithm. */</span><span class="w"></span>
+<a id="line-477" name="line-477"></a><span class="w"> </span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">concrete</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>
+<a id="line-479" name="line-479"></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><span class="w"></span>
+<a id="line-480" name="line-480"></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">EGG_MODMAP_ENTRY_LAST</span><span class="p">)</span><span class="w"></span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<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">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">virtual_mods</span><span class="p">)</span><span class="w"></span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">concrete</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="n">i</span><span class="p">);</span><span class="w"></span>
+<a id="line-484" name="line-484"></a>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">;</span><span class="w"></span>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-487" name="line-487"></a>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="o">*</span><span class="n">concrete_mods</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">concrete</span><span class="p">;</span><span class="w"></span>
+<a id="line-489" name="line-489"></a><span class="p">}</span><span class="w"></span>
+<a id="line-490" name="line-490"></a>
+<a id="line-491" name="line-491"></a><span class="kt">void</span><span class="w"></span>
+<a id="line-492" name="line-492"></a><span class="nf">egg_keymap_virtualize_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="p">,</span><span class="w"></span>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">GdkModifierType</span><span class="w"> </span><span class="n">concrete_mods</span><span class="p">,</span><span class="w"></span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="o">*</span><span class="n">virtual_mods</span><span class="p">)</span><span class="w"></span>
+<a id="line-495" name="line-495"></a><span class="p">{</span><span class="w"></span>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">GdkModifierType</span><span class="w"> </span><span class="n">virtual</span><span class="p">;</span><span class="w"></span>
+<a id="line-497" name="line-497"></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>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">EggModmap</span><span class="w"> </span><span class="o">*</span><span class="n">modmap</span><span class="p">;</span><span class="w"></span>
+<a id="line-499" name="line-499"></a><span class="w"> </span>
+<a id="line-500" name="line-500"></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_IS_KEYMAP</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">));</span><span class="w"></span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">virtual_mods</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-502" name="line-502"></a>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">modmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_keymap_get_modmap</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">);</span><span class="w"></span>
+<a id="line-504" name="line-504"></a><span class="w"> </span>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="cm">/* Not so sure about this algorithm. */</span><span class="w"></span>
+<a id="line-506" name="line-506"></a><span class="w"> </span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">virtual</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>
+<a id="line-508" name="line-508"></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><span class="w"></span>
+<a id="line-509" name="line-509"></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">EGG_MODMAP_ENTRY_LAST</span><span class="p">)</span><span class="w"></span>
+<a id="line-510" name="line-510"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="k">if</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">i</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">concrete_mods</span><span class="p">)</span><span class="w"></span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="n">cleaned</span><span class="p">;</span><span class="w"></span>
+<a id="line-514" name="line-514"></a><span class="w"> </span>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">cleaned</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="o">~</span><span class="p">(</span><span class="n">EGG_VIRTUAL_MOD2_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"></span>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD3_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"></span>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD4_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"></span>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD5_MASK</span><span class="p">);</span><span class="w"></span>
+<a id="line-519" name="line-519"></a><span class="w"> </span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cleaned</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>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">virtual</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">cleaned</span><span class="p">;</span><span class="w"></span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="cm">/* Rather than dropping mod2-&gt;mod5 if not bound,</span>
+<a id="line-527" name="line-527"></a><span class="cm"> * go ahead and use the concrete names</span>
+<a id="line-528" name="line-528"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">virtual</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"></span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-532" name="line-532"></a><span class="w"> </span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">;</span><span class="w"></span>
+<a id="line-534" name="line-534"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-535" name="line-535"></a><span class="w"> </span>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="o">*</span><span class="n">virtual_mods</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">virtual</span><span class="p">;</span><span class="w"></span>
+<a id="line-537" name="line-537"></a><span class="p">}</span><span class="w"></span>
+<a id="line-538" name="line-538"></a>
+<a id="line-539" name="line-539"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-540" name="line-540"></a><span class="nf">reload_modmap</span><span class="w"> </span><span class="p">(</span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="p">,</span><span class="w"></span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">EggModmap</span><span class="w"> </span><span class="o">*</span><span class="n">modmap</span><span class="p">)</span><span class="w"></span>
+<a id="line-542" name="line-542"></a><span class="p">{</span><span class="w"></span>
+<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">XModifierKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">xmodmap</span><span class="p">;</span><span class="w"></span>
+<a id="line-544" name="line-544"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">map_size</span><span class="p">;</span><span class="w"></span>
+<a id="line-545" name="line-545"></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>
+<a id="line-546" name="line-546"></a>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="cm">/* FIXME multihead */</span><span class="w"></span>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">xmodmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetModifierMapping</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_get_default_xdisplay</span><span class="w"> </span><span class="p">());</span><span class="w"></span>
+<a id="line-549" name="line-549"></a>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">memset</span><span class="w"> </span><span class="p">(</span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">));</span><span class="w"></span>
+<a id="line-551" name="line-551"></a><span class="w"> </span>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="cm">/* there are 8 modifiers, and the first 3 are shift, shift lock,</span>
+<a id="line-553" name="line-553"></a><span class="cm"> * and control</span>
+<a id="line-554" name="line-554"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">map_size</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="n">xmodmap</span><span class="o">-&gt;</span><span class="n">max_keypermod</span><span class="p">;</span><span class="w"></span>
+<a id="line-556" name="line-556"></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">3</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">xmodmap</span><span class="o">-&gt;</span><span class="n">max_keypermod</span><span class="p">;</span><span class="w"></span>
+<a id="line-557" name="line-557"></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">map_size</span><span class="p">)</span><span class="w"></span>
+<a id="line-558" name="line-558"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-559" name="line-559"></a><span class="w"> </span><span class="cm">/* get the key code at this point in the map,</span>
+<a id="line-560" name="line-560"></a><span class="cm"> * see if its keysym is one we&#39;re interested in</span>
+<a id="line-561" name="line-561"></a><span class="cm"> */</span><span class="w"></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">keycode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmodmap</span><span class="o">-&gt;</span><span class="n">modifiermap</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"></span>
+<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">GdkKeymapKey</span><span class="w"> </span><span class="o">*</span><span class="n">keys</span><span class="p">;</span><span class="w"></span>
+<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="o">*</span><span class="n">keyvals</span><span class="p">;</span><span class="w"></span>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_entries</span><span class="p">;</span><span class="w"></span>
+<a id="line-566" name="line-566"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="p">;</span><span class="w"></span>
+<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="n">mask</span><span class="p">;</span><span class="w"></span>
+<a id="line-568" name="line-568"></a><span class="w"> </span>
+<a id="line-569" name="line-569"></a><span class="w"> </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>
+<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">keyvals</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">n_entries</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>
+<a id="line-572" name="line-572"></a>
+<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">gdk_keymap_get_entries_for_keycode</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">,</span><span class="w"></span>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">keycode</span><span class="p">,</span><span class="w"></span>
+<a id="line-575" name="line-575"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">keyvals</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">n_entries</span><span class="p">);</span><span class="w"></span>
+<a id="line-576" name="line-576"></a><span class="w"> </span>
+<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">mask</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>
+<a id="line-578" name="line-578"></a><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>
+<a id="line-579" name="line-579"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">n_entries</span><span class="p">)</span><span class="w"></span>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span>
+<a id="line-581" name="line-581"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">keyvals</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">GDK_KEY_Num_Lock</span><span class="p">)</span><span class="w"></span>
+<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">mask</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_NUM_LOCK_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-583" name="line-583"></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">keyvals</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">GDK_KEY_Scroll_Lock</span><span class="p">)</span><span class="w"></span>
+<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">mask</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SCROLL_LOCK_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-585" name="line-585"></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">keyvals</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">GDK_KEY_Meta_L</span><span class="w"> </span><span class="o">||</span><span class="w"></span>
+<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">keyvals</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">GDK_KEY_Meta_R</span><span class="p">)</span><span class="w"></span>
+<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">mask</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_META_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-588" name="line-588"></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">keyvals</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">GDK_KEY_Hyper_L</span><span class="w"> </span><span class="o">||</span><span class="w"></span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">keyvals</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">GDK_KEY_Hyper_R</span><span class="p">)</span><span class="w"></span>
+<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">mask</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_HYPER_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-591" name="line-591"></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">keyvals</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">GDK_KEY_Super_L</span><span class="w"> </span><span class="o">||</span><span class="w"></span>
+<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">keyvals</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">GDK_KEY_Super_R</span><span class="p">)</span><span class="w"></span>
+<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">mask</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SUPER_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-594" name="line-594"></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">keyvals</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">GDK_KEY_Mode_switch</span><span class="p">)</span><span class="w"></span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">mask</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MODE_SWITCH_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-596" name="line-596"></a><span class="w"> </span>
+<a id="line-597" name="line-597"></a><span class="w"> </span><span class="o">++</span><span class="n">j</span><span class="p">;</span><span class="w"></span>
+<a id="line-598" name="line-598"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-599" name="line-599"></a>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="cm">/* Mod1Mask is 1 &lt;&lt; 3 for example, i.e. the</span>
+<a id="line-601" name="line-601"></a><span class="cm"> * fourth modifier, i / keyspermod is the modifier</span>
+<a id="line-602" name="line-602"></a><span class="cm"> * index</span>
+<a id="line-603" name="line-603"></a><span class="cm"> */</span><span class="w"> </span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">i</span><span class="o">/</span><span class="n">xmodmap</span><span class="o">-&gt;</span><span class="n">max_keypermod</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">mask</span><span class="p">;</span><span class="w"></span>
+<a id="line-605" name="line-605"></a><span class="w"> </span>
+<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">keyvals</span><span class="p">);</span><span class="w"></span>
+<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">keys</span><span class="p">);</span><span class="w"> </span>
+<a id="line-608" name="line-608"></a><span class="w"> </span>
+<a id="line-609" name="line-609"></a><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">;</span><span class="w"></span>
+<a id="line-610" name="line-610"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-611" name="line-611"></a>
+<a id="line-612" name="line-612"></a><span class="w"> </span><span class="cm">/* Add in the not-really-virtual fixed entries */</span><span class="w"></span>
+<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_SHIFT</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SHIFT_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_CONTROL</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_CONTROL_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_LOCK</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_LOCK_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_MOD1</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_ALT_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_MOD2</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD2_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_MOD3</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD3_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_MOD4</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD4_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">modmap</span><span class="o">-&gt;</span><span class="n">mapping</span><span class="p">[</span><span class="n">EGG_MODMAP_ENTRY_MOD5</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_VIRTUAL_MOD5_MASK</span><span class="p">;</span><span class="w"></span>
+<a id="line-621" name="line-621"></a><span class="w"> </span>
+<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">XFreeModifiermap</span><span class="w"> </span><span class="p">(</span><span class="n">xmodmap</span><span class="p">);</span><span class="w"></span>
+<a id="line-623" name="line-623"></a><span class="p">}</span><span class="w"></span>
+<a id="line-624" name="line-624"></a>
+<a id="line-625" name="line-625"></a><span class="k">const</span><span class="w"> </span><span class="n">EggModmap</span><span class="o">*</span><span class="w"></span>
+<a id="line-626" name="line-626"></a><span class="nf">egg_keymap_get_modmap</span><span class="w"> </span><span class="p">(</span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="p">)</span><span class="w"></span>
+<a id="line-627" name="line-627"></a><span class="p">{</span><span class="w"></span>
+<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">EggModmap</span><span class="w"> </span><span class="o">*</span><span class="n">modmap</span><span class="p">;</span><span class="w"></span>
+<a id="line-629" name="line-629"></a>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="cm">/* This is all a hack, much simpler when we can just</span>
+<a id="line-631" name="line-631"></a><span class="cm"> * modify GDK directly.</span>
+<a id="line-632" name="line-632"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-633" name="line-633"></a><span class="w"> </span>
+<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">modmap</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">keymap</span><span class="p">),</span><span class="w"></span>
+<a id="line-635" name="line-635"></a><span class="w"> </span><span class="s">&quot;egg-modmap&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modmap</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-638" name="line-638"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">modmap</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">EggModmap</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span><span class="w"></span>
+<a id="line-640" name="line-640"></a>
+<a id="line-641" name="line-641"></a><span class="w"> </span><span class="cm">/* FIXME modify keymap change events with an event filter</span>
+<a id="line-642" name="line-642"></a><span class="cm"> * and force a reload if we get one</span>
+<a id="line-643" name="line-643"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-644" name="line-644"></a><span class="w"> </span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">reload_modmap</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">,</span><span class="w"> </span><span class="n">modmap</span><span class="p">);</span><span class="w"></span>
+<a id="line-646" name="line-646"></a><span class="w"> </span>
+<a id="line-647" name="line-647"></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">keymap</span><span class="p">),</span><span class="w"></span>
+<a id="line-648" name="line-648"></a><span class="w"> </span><span class="s">&quot;egg-modmap&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">modmap</span><span class="p">,</span><span class="w"></span>
+<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">g_free</span><span class="p">);</span><span class="w"></span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-652" name="line-652"></a>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">modmap</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-654" name="line-654"></a><span class="w"> </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">modmap</span><span class="p">;</span><span class="w"></span>
+<a id="line-656" name="line-656"></a><span class="p">}</span><span class="w"></span>
+</pre></div>
+</td></tr></table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<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/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/1.html b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/1.html
new file mode 100644
index 0000000..8a1de11
--- /dev/null
+++ b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/1.html
@@ -0,0 +1,441 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-netbook</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-netbook: maximus/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="1.html#line-96"> unreadVariable 96</a>
+ </div>
+ <div id="content">
+<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></pre></div></td><td class="code"><div class="highlight"><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) 2008 Canonical Ltd</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-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 program is free software: you can redistribute it and/or modify</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * it under the terms of the GNU General Public License version 3 as</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * published by the Free Software Foundation.</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 program 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</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * GNU 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 General Public License</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * along with this program. 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><span class="cm"> * Authored by Neil Jagdish Patel &lt;[email protected]&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"> */</span><span class="w"></span>
+<a id="line-20" name="line-20"></a>
+<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="cp"></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">&lt;stdio.h&gt;</span><span class="cp"></span>
+<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="cp"></span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="cp"></span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="cp"></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">&lt;gio/gio.h&gt;</span><span class="cp"></span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;maximus-app.h&quot;</span><span class="cp"></span>
+<a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#ifdef __GNUC__</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define UNUSED_VARIABLE __attribute__ ((unused))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#else</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define UNUSED_VARIABLE</span>
+<a id="line-38" name="line-38"></a><span class="cp">#endif</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</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">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-41" name="line-41"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">no_maximize</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>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="n">GOptionEntry</span><span class="w"> </span><span class="n">entries</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"></span>
+<a id="line-44" name="line-44"></a><span class="p">{</span><span class="w"></span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-46" name="line-46"></a><span class="w"> </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>
+<a id="line-47" name="line-47"></a><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>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">version</span><span class="p">,</span><span class="w"></span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="s">&quot;Prints the version number&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"></span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="p">},</span><span class="w"></span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="s">&quot;no-maximize&quot;</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;m&#39;</span><span class="p">,</span><span class="w"></span>
+<a id="line-53" name="line-53"></a><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>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">no_maximize</span><span class="p">,</span><span class="w"></span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="s">&quot;Do not automatically maximize every window&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"></span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="p">},</span><span class="w"></span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="nb">NULL</span><span class="w"></span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-60" name="line-60"></a><span class="p">};</span><span class="w"></span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="n">gint</span><span class="w"> </span><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="w"> </span><span class="n">argc</span><span class="p">,</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>
+<a id="line-63" name="line-63"></a><span class="p">{</span><span class="w"></span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">GApplication</span><span class="w"> </span><span class="o">*</span><span class="n">application</span><span class="p">;</span><span class="w"></span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">MaximusApp</span><span class="w"> </span><span class="n">UNUSED_VARIABLE</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">;</span><span class="w"></span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">GOptionContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span><span class="w"></span>
+<a id="line-67" name="line-67"></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><span class="w"></span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdk_display</span><span class="p">;</span><span class="w"></span>
+<a id="line-69" name="line-69"></a>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">g_set_application_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Maximus&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-71" name="line-71"></a>
+<a id="line-72" name="line-72"></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><span class="w"></span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">application</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_application_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;com.canonical.Maximus&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_APPLICATION_FLAGS_NONE</span><span class="p">);</span><span class="w"></span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></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_application_register</span><span class="w"> </span><span class="p">(</span><span class="n">application</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">error</span><span class="p">))</span><span class="w"></span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-78" name="line-78"></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><span class="w"></span>
+<a id="line-79" name="line-79"></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><span class="w"></span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"></span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-82" name="line-82"></a>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_application_get_is_remote</span><span class="p">(</span><span class="n">application</span><span class="p">))</span><span class="w"></span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-87" name="line-87"></a>
+<a id="line-88" name="line-88"></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_option_context_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;- Maximus&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">g_option_context_add_main_entries</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">entries</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;maximus&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">g_option_context_add_group</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_get_option_group</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">));</span><span class="w"></span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">g_option_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="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><span class="w"></span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_option_context_free</span><span class="p">(</span><span class="n">context</span><span class="p">);</span><span class="w"></span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">gdk_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><span class="w"></span>
+<a id="line-95" name="line-95"></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">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-96" name="line-96"></a><span class="hll"><span class="w"> </span><span class="n">app</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">maximus_app_get_default</span><span class="w"> </span><span class="p">();</span><span class="w"></span><span class="error2">&lt;--- Variable 'app' is assigned a value that is never used.</span>
+</span><a id="line-97" name="line-97"></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">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-98" name="line-98"></a>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">gtk_main</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-100" name="line-100"></a>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EXIT_SUCCESS</span><span class="p">;</span><span class="w"></span>
+<a id="line-102" name="line-102"></a><span class="p">}</span><span class="w"></span>
+</pre></div>
+</td></tr></table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<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/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/2.html b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/2.html
new file mode 100644
index 0000000..b98bd46
--- /dev/null
+++ b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/2.html
@@ -0,0 +1,1333 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-netbook</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-netbook: maximus/maximus-app.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> maximus-app.c</p>
+<a href="2.html#line-124"> knownConditionTrueFalse 124</a>
+ </div>
+ <div id="content">
+<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></pre></div></td><td class="code"><div class="highlight"><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) 2008 Canonical Ltd</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-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 program is free software: you can redistribute it and/or modify</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * it under the terms of the GNU General Public License version 3 as </span>
+<a id="line-7" name="line-7"></a><span class="cm"> * published by the Free Software Foundation.</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 program 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</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * GNU 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 General Public License</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * along with this program. 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><span class="cm"> * Authored by Neil Jagdish Patel &lt;[email protected]&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"> */</span><span class="w"></span>
+<a id="line-20" name="line-20"></a>
+<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="cp"></span>
+<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="cp"></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">&lt;gtk/gtk.h&gt;</span><span class="cp"></span>
+<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="cp"></span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="cp"></span>
+<a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;maximus-app.h&quot;</span><span class="cp"></span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;maximus-bind.h&quot;</span><span class="cp"></span>
+<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;xutils.h&quot;</span><span class="cp"></span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cm">/* GSettings schemas and keys */</span><span class="w"></span>
+<a id="line-34" name="line-34"></a><span class="cp">#define APP_SCHEMA &quot;org.mate.maximus&quot;</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define APP_EXCLUDE_CLASS &quot;exclude-class&quot;</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define APP_UNDECORATE &quot;undecorate&quot;</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define APP_NO_MAXIMIZE &quot;no-maximize&quot;</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="cm">/* A set of default exceptions */</span><span class="w"></span>
+<a id="line-40" name="line-40"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">default_exclude_classes</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span>
+<a id="line-41" name="line-41"></a><span class="p">{</span><span class="w"></span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="s">&quot;Apport-gtk&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="s">&quot;Bluetooth-properties&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="s">&quot;Bluetooth-wizard&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="s">&quot;Download&quot;</span><span class="p">,</span><span class="w"> </span><span class="cm">/* Firefox Download Window */</span><span class="w"></span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="s">&quot;Ekiga&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="s">&quot;Extension&quot;</span><span class="p">,</span><span class="w"> </span><span class="cm">/* Firefox Add-Ons/Extension Window */</span><span class="w"></span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="s">&quot;Gcalctool&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="s">&quot;Gimp&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="s">&quot;Global&quot;</span><span class="p">,</span><span class="w"> </span><span class="cm">/* Firefox Error Console Window */</span><span class="w"></span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="s">&quot;Mate-dictionary&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="s">&quot;Mate-language-selector&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="s">&quot;Mate-nettool&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="s">&quot;Mate-volume-control&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="s">&quot;Kiten&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="s">&quot;Kmplot&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="s">&quot;Nm-editor&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="s">&quot;Pidgin&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="s">&quot;Polkit-mate-authorization&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="s">&quot;Update-manager&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="s">&quot;Skype&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="s">&quot;Toplevel&quot;</span><span class="p">,</span><span class="w"> </span><span class="cm">/* Firefox &quot;Clear Private Data&quot; Window */</span><span class="w"></span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="s">&quot;Transmission&quot;</span><span class="w"></span>
+<a id="line-64" name="line-64"></a><span class="p">};</span><span class="w"></span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MaximusAppPrivate</span><span class="w"></span>
+<a id="line-67" name="line-67"></a><span class="p">{</span><span class="w"></span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="p">;</span><span class="w"></span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">WnckScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span><span class="w"></span>
+<a id="line-70" name="line-70"></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><span class="w"></span>
+<a id="line-71" name="line-71"></a>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">exclude_class_list</span><span class="p">;</span><span class="w"></span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">undecorate</span><span class="p">;</span><span class="w"></span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">no_maximize</span><span class="p">;</span><span class="w"></span>
+<a id="line-75" name="line-75"></a><span class="p">};</span><span class="w"></span>
+<a id="line-76" name="line-76"></a>
+<a id="line-77" name="line-77"></a><span class="k">static</span><span class="w"> </span><span class="n">GQuark</span><span class="w"> </span><span class="n">was_decorated</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>
+<a id="line-78" name="line-78"></a>
+<a id="line-79" name="line-79"></a><span class="cm">/* &lt;TAKEN FROM GDK&gt; */</span><span class="w"></span>
+<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="p">{</span><span class="w"></span>
+<a id="line-81" name="line-81"></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">flags</span><span class="p">;</span><span class="w"></span>
+<a id="line-82" name="line-82"></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">functions</span><span class="p">;</span><span class="w"></span>
+<a id="line-83" name="line-83"></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">decorations</span><span class="p">;</span><span class="w"></span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">input_mode</span><span class="p">;</span><span class="w"></span>
+<a id="line-85" name="line-85"></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">status</span><span class="p">;</span><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="p">}</span><span class="w"> </span><span class="n">MotifWmHints</span><span class="p">,</span><span class="w"> </span><span class="n">MwmHints</span><span class="p">;</span><span class="w"></span>
+<a id="line-87" name="line-87"></a>
+<a id="line-88" name="line-88"></a><span class="cp">#define MWM_HINTS_FUNCTIONS (1L &lt;&lt; 0)</span>
+<a id="line-89" name="line-89"></a><span class="cp">#define MWM_HINTS_DECORATIONS (1L &lt;&lt; 1)</span>
+<a id="line-90" name="line-90"></a><span class="cp">#define _XA_MOTIF_WM_HINTS &quot;_MOTIF_WM_HINTS&quot;</span>
+<a id="line-91" name="line-91"></a>
+<a id="line-92" name="line-92"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusApp</span><span class="p">,</span><span class="w"> </span><span class="n">maximus_app</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span><span class="w"></span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-95" name="line-95"></a><span class="nf">wnck_window_is_decorated</span><span class="w"> </span><span class="p">(</span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-96" name="line-96"></a><span class="p">{</span><span class="w"></span>
+<a id="line-97" name="line-97"></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_display_get_default</span><span class="p">();</span><span class="w"></span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">hints_atom</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>
+<a id="line-99" name="line-99"></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="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">MotifWmHints</span><span class="w"> </span><span class="o">*</span><span class="n">hints</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">Atom</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><span class="p">;</span><span class="w"></span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">format</span><span class="p">;</span><span class="w"></span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">nitems</span><span class="p">;</span><span class="w"></span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">bytes_after</span><span class="p">;</span><span class="w"></span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span><span class="w"></span>
+<a id="line-106" name="line-106"></a>
+<a id="line-107" name="line-107"></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">WNCK_IS_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">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-108" name="line-108"></a><span class="w"> </span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">hints_atom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_x11_get_xatom_by_name_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">_XA_MOTIF_WM_HINTS</span><span class="p">);</span><span class="w"></span>
+<a id="line-111" name="line-111"></a>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">XGetWindowProperty</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">display</span><span class="p">),</span><span class="w"> </span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">wnck_window_get_xid</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"></span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">hints_atom</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">MotifWmHints</span><span class="p">)</span><span class="o">/</span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="p">),</span><span class="w"></span>
+<a id="line-115" name="line-115"></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><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>
+<a id="line-116" name="line-116"></a><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">data</span><span class="p">);</span><span class="w"></span>
+<a id="line-117" name="line-117"></a><span class="w"> </span>
+<a id="line-118" name="line-118"></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">None</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-119" name="line-119"></a><span class="w"> </span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">hints</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MotifWmHints</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">data</span><span class="p">;</span><span class="w"> </span>
+<a id="line-121" name="line-121"></a><span class="w"> </span>
+<a id="line-122" name="line-122"></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">hints</span><span class="o">-&gt;</span><span class="n">decorations</span><span class="p">;</span><span class="w"></span>
+<a id="line-123" name="line-123"></a><span class="w"> </span>
+<a id="line-124" name="line-124"></a><span class="hll"><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)</span><span class="w"></span><span class="error2">&lt;--- Condition 'data' is always true</span>
+</span><a id="line-125" name="line-125"></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><span class="w"></span>
+<a id="line-126" name="line-126"></a>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span><span class="w"></span>
+<a id="line-128" name="line-128"></a><span class="p">}</span><span class="w"></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>
+<a id="line-131" name="line-131"></a><span class="nf">gdk_window_set_mwm_hints</span><span class="w"> </span><span class="p">(</span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"></span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">MotifWmHints</span><span class="w"> </span><span class="o">*</span><span class="n">new_hints</span><span class="p">)</span><span class="w"></span>
+<a id="line-133" name="line-133"></a><span class="p">{</span><span class="w"></span>
+<a id="line-134" name="line-134"></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_display_get_default</span><span class="p">();</span><span class="w"></span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">hints_atom</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>
+<a id="line-136" name="line-136"></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="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">MotifWmHints</span><span class="w"> </span><span class="o">*</span><span class="n">hints</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">Atom</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><span class="p">;</span><span class="w"></span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">format</span><span class="p">;</span><span class="w"></span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">nitems</span><span class="p">;</span><span class="w"></span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">bytes_after</span><span class="p">;</span><span class="w"></span>
+<a id="line-142" name="line-142"></a>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">WNCK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span><span class="w"></span>
+<a id="line-144" name="line-144"></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_IS_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">));</span><span class="w"></span>
+<a id="line-145" name="line-145"></a><span class="w"> </span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">hints_atom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_x11_get_xatom_by_name_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">_XA_MOTIF_WM_HINTS</span><span class="p">);</span><span class="w"></span>
+<a id="line-148" name="line-148"></a>
+<a id="line-149" name="line-149"></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><span class="w"></span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">XGetWindowProperty</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">display</span><span class="p">),</span><span class="w"> </span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">wnck_window_get_xid</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"></span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">hints_atom</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">MotifWmHints</span><span class="p">)</span><span class="o">/</span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="p">),</span><span class="w"></span>
+<a id="line-153" name="line-153"></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><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>
+<a id="line-154" name="line-154"></a><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">data</span><span class="p">);</span><span class="w"></span>
+<a id="line-155" name="line-155"></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>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-157" name="line-157"></a><span class="w"> </span>
+<a id="line-158" name="line-158"></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">hints_atom</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">data</span><span class="p">)</span><span class="w"></span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">hints</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_hints</span><span class="p">;</span><span class="w"></span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">hints</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MotifWmHints</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">data</span><span class="p">;</span><span class="w"></span>
+<a id="line-163" name="line-163"></a><span class="w"> </span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_hints</span><span class="o">-&gt;</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MWM_HINTS_FUNCTIONS</span><span class="p">)</span><span class="w"></span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">hints</span><span class="o">-&gt;</span><span class="n">flags</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">MWM_HINTS_FUNCTIONS</span><span class="p">;</span><span class="w"></span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">hints</span><span class="o">-&gt;</span><span class="n">functions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_hints</span><span class="o">-&gt;</span><span class="n">functions</span><span class="p">;</span><span class="w"> </span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_hints</span><span class="o">-&gt;</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MWM_HINTS_DECORATIONS</span><span class="p">)</span><span class="w"></span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">hints</span><span class="o">-&gt;</span><span class="n">flags</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">MWM_HINTS_DECORATIONS</span><span class="p">;</span><span class="w"></span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">hints</span><span class="o">-&gt;</span><span class="n">decorations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_hints</span><span class="o">-&gt;</span><span class="n">decorations</span><span class="p">;</span><span class="w"></span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-175" name="line-175"></a><span class="w"> </span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">_wnck_error_trap_push</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">XChangeProperty</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">display</span><span class="p">),</span><span class="w"> </span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">wnck_window_get_xid</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"></span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">hints_atom</span><span class="p">,</span><span class="w"> </span><span class="n">hints_atom</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">PropModeReplace</span><span class="p">,</span><span class="w"></span>
+<a id="line-180" name="line-180"></a><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">hints</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">MotifWmHints</span><span class="p">)</span><span class="o">/</span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="p">));</span><span class="w"></span>
+<a id="line-181" name="line-181"></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><span class="w"></span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">_wnck_error_trap_pop</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-183" name="line-183"></a><span class="w"> </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">data</span><span class="p">)</span><span class="w"></span>
+<a id="line-185" name="line-185"></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><span class="w"></span>
+<a id="line-186" name="line-186"></a><span class="p">}</span><span class="w"></span>
+<a id="line-187" name="line-187"></a>
+<a id="line-188" name="line-188"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-189" name="line-189"></a><span class="nf">_window_set_decorations</span><span class="w"> </span><span class="p">(</span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"></span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">GdkWMDecoration</span><span class="w"> </span><span class="n">decorations</span><span class="p">)</span><span class="w"></span>
+<a id="line-191" name="line-191"></a><span class="p">{</span><span class="w"></span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">MotifWmHints</span><span class="w"> </span><span class="o">*</span><span class="n">hints</span><span class="p">;</span><span class="w"></span>
+<a id="line-193" name="line-193"></a><span class="w"> </span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">WNCK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span><span class="w"></span>
+<a id="line-195" name="line-195"></a><span class="w"> </span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="cm">/* initialize to zero to avoid writing uninitialized data to socket */</span><span class="w"></span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">hints</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">MotifWmHints</span><span class="p">);</span><span class="w"></span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">hints</span><span class="o">-&gt;</span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MWM_HINTS_DECORATIONS</span><span class="p">;</span><span class="w"></span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">hints</span><span class="o">-&gt;</span><span class="n">decorations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decorations</span><span class="p">;</span><span class="w"></span>
+<a id="line-200" name="line-200"></a><span class="w"> </span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">gdk_window_set_mwm_hints</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">hints</span><span class="p">);</span><span class="w"></span>
+<a id="line-202" name="line-202"></a>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">MotifWmHints</span><span class="p">,</span><span class="w"> </span><span class="n">hints</span><span class="p">);</span><span class="w"></span>
+<a id="line-204" name="line-204"></a><span class="p">}</span><span class="w"></span>
+<a id="line-205" name="line-205"></a>
+<a id="line-206" name="line-206"></a><span class="cm">/* &lt;/TAKEN FROM GDK&gt; */</span><span class="w"></span>
+<a id="line-207" name="line-207"></a>
+<a id="line-208" name="line-208"></a><span class="n">gboolean</span><span class="w"></span>
+<a id="line-209" name="line-209"></a><span class="nf">window_is_too_large_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-210" name="line-210"></a><span class="p">{</span><span class="w"></span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">static</span><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="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">w</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="w"></span>
+<a id="line-213" name="line-213"></a>
+<a id="line-214" name="line-214"></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">WNCK_IS_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">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-215" name="line-215"></a>
+<a id="line-216" name="line-216"></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="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-217" name="line-217"></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_screen_get_default</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-218" name="line-218"></a><span class="w"> </span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">wnck_window_get_geometry</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">&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><span class="w"></span>
+<a id="line-220" name="line-220"></a><span class="w"> </span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="cm">/* some wiggle room */</span><span class="w"></span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="p">(</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><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">20</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"></span>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="p">(</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><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">20</span><span class="p">)));</span><span class="w"></span>
+<a id="line-225" name="line-225"></a><span class="p">}</span><span class="w"></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">gboolean</span><span class="w"></span>
+<a id="line-228" name="line-228"></a><span class="nf">on_window_maximised_changed</span><span class="w"> </span><span class="p">(</span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-229" name="line-229"></a><span class="p">{</span><span class="w"></span>
+<a id="line-230" name="line-230"></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">WNCK_IS_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">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-231" name="line-231"></a>
+<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">window_is_too_large_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"></span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">_window_set_decorations</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span><span class="w"></span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">wnck_window_unmaximize</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">_window_set_decorations</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"></span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-241" name="line-241"></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>
+<a id="line-242" name="line-242"></a><span class="p">}</span><span class="w"></span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-245" name="line-245"></a><span class="nf">enable_window_decorations</span><span class="w"> </span><span class="p">(</span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-246" name="line-246"></a><span class="p">{</span><span class="w"></span>
+<a id="line-247" name="line-247"></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">WNCK_IS_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">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-248" name="line-248"></a>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">_window_set_decorations</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span><span class="w"></span>
+<a id="line-250" name="line-250"></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>
+<a id="line-251" name="line-251"></a><span class="p">}</span><span class="w"></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">void</span><span class="w"></span>
+<a id="line-254" name="line-254"></a><span class="nf">on_window_state_changed</span><span class="w"> </span><span class="p">(</span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"></span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">WnckWindowState</span><span class="w"> </span><span class="n">change_mask</span><span class="p">,</span><span class="w"></span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">WnckWindowState</span><span class="w"> </span><span class="n">new_state</span><span class="p">,</span><span class="w"></span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">)</span><span class="w"></span>
+<a id="line-258" name="line-258"></a><span class="p">{</span><span class="w"></span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">WNCK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span><span class="w"></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">GPOINTER_TO_INT</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">window</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;exclude&quot;</span><span class="p">))</span><span class="o">==</span><span class="mi">1</span><span class="p">)</span><span class="w"></span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-263" name="line-263"></a><span class="w"> </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">change_mask</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">WNCK_WINDOW_STATE_MAXIMIZED_HORIZONTALLY</span><span class="w"></span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">change_mask</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">WNCK_WINDOW_STATE_MAXIMIZED_VERTICALLY</span><span class="p">)</span><span class="w"></span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<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">wnck_window_is_maximized</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">&amp;&amp;</span><span class="w"> </span><span class="n">app</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">undecorate</span><span class="p">)</span><span class="w"></span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">((</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="n">on_window_maximised_changed</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">((</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="n">enable_window_decorations</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-276" name="line-276"></a><span class="p">}</span><span class="w"></span>
+<a id="line-277" name="line-277"></a>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-279" name="line-279"></a><span class="nf">is_excluded</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">,</span><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-280" name="line-280"></a><span class="p">{</span><span class="w"></span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">MaximusAppPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">WnckWindowType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span><span class="w"></span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">WnckWindowActions</span><span class="w"> </span><span class="n">actions</span><span class="p">;</span><span class="w"></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">res_name</span><span class="p">;</span><span class="w"></span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">class_name</span><span class="p">;</span><span class="w"></span>
+<a id="line-286" name="line-286"></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>
+<a id="line-287" name="line-287"></a>
+<a id="line-288" name="line-288"></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">MAXIMUS_IS_APP</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span><span class="w"></span>
+<a id="line-289" name="line-289"></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">WNCK_IS_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">TRUE</span><span class="p">);</span><span class="w"></span>
+<a id="line-290" name="line-290"></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">app</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-291" name="line-291"></a>
+<a id="line-292" name="line-292"></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">wnck_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>
+<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">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">WNCK_WINDOW_NORMAL</span><span class="p">)</span><span class="w"></span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-295" name="line-295"></a>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">if</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">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">window</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;exclude&quot;</span><span class="p">))</span><span class="o">==</span><span class="mi">1</span><span class="p">)</span><span class="w"></span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-298" name="line-298"></a>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="cm">/* Ignore if the window is already fullscreen */</span><span class="w"></span>
+<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">wnck_window_is_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"></span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Excluding (is fullscreen): %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="n">wnck_window_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span><span class="w"></span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-305" name="line-305"></a><span class="w"> </span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="cm">/* Make sure the window supports maximising */</span><span class="w"></span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">actions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_window_get_actions</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<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">actions</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">WNCK_WINDOW_ACTION_RESIZE</span><span class="w"></span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">actions</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">WNCK_WINDOW_ACTION_MAXIMIZE_HORIZONTALLY</span><span class="w"></span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">actions</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">WNCK_WINDOW_ACTION_MAXIMIZE_VERTICALLY</span><span class="w"></span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">actions</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">WNCK_WINDOW_ACTION_MAXIMIZE</span><span class="p">)</span><span class="w"></span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="p">;</span><span class="w"> </span><span class="cm">/* Is good to maximise */</span><span class="w"></span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">_wnck_get_wmclass</span><span class="w"> </span><span class="p">(</span><span class="n">wnck_window_get_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="o">&amp;</span><span class="n">res_name</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">class_name</span><span class="p">);</span><span class="w"></span>
+<a id="line-317" name="line-317"></a>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Window opened: res_name=%s -- class_name=%s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">res_name</span><span class="p">,</span><span class="w"> </span><span class="n">class_name</span><span class="p">);</span><span class="w"></span>
+<a id="line-319" name="line-319"></a><span class="w"> </span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="cm">/* Check internal list of class_ids */</span><span class="w"></span>
+<a id="line-321" name="line-321"></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">default_exclude_classes</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>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">class_name</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">default_exclude_classes</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span>
+<a id="line-324" name="line-324"></a><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">class_name</span><span class="p">,</span><span class="w"> </span><span class="n">default_exclude_classes</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span><span class="w"></span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">res_name</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">default_exclude_classes</span><span class="p">[</span><span class="n">i</span><span class="p">]</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">res_name</span><span class="p">,</span><span class="w"> </span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">default_exclude_classes</span><span class="p">[</span><span class="n">i</span><span class="p">])))</span><span class="w"></span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Excluding: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">wnck_window_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span><span class="w"></span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-332" name="line-332"></a>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="cm">/* Check user list */</span><span class="w"></span>
+<a id="line-334" name="line-334"></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">exclude_class_list</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>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">class_name</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">class_name</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">exclude_class_list</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span><span class="w"></span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">res_name</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">res_name</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">exclude_class_list</span><span class="p">[</span><span class="n">i</span><span class="p">])</span><span class="w"> </span><span class="p">))</span><span class="w"></span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Excluding: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">wnck_window_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span><span class="w"></span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-343" name="line-343"></a>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">res_name</span><span class="p">);</span><span class="w"></span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">class_name</span><span class="p">);</span><span class="w"></span>
+<a id="line-346" name="line-346"></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>
+<a id="line-347" name="line-347"></a><span class="p">}</span><span class="w"></span>
+<a id="line-348" name="line-348"></a>
+<a id="line-349" name="line-349"></a><span class="k">extern</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">no_maximize</span><span class="p">;</span><span class="w"></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><span class="w"></span>
+<a id="line-352" name="line-352"></a><span class="nf">on_window_opened</span><span class="w"> </span><span class="p">(</span><span class="n">WnckScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"></span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"></span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">)</span><span class="w"></span>
+<a id="line-355" name="line-355"></a><span class="p">{</span><span class="w"> </span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">MaximusAppPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">WnckWindowType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span><span class="w"></span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">exclude</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>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdk_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><span class="w"></span>
+<a id="line-360" name="line-360"></a><span class="w"> </span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MAXIMUS_IS_APP</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">));</span><span class="w"></span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">WNCK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span><span class="w"></span>
+<a id="line-363" name="line-363"></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">app</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-364" name="line-364"></a>
+<a id="line-365" name="line-365"></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">wnck_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>
+<a id="line-366" name="line-366"></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">WNCK_WINDOW_NORMAL</span><span class="p">)</span><span class="w"></span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-368" name="line-368"></a>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="cm">/* Ignore undecorated windows */</span><span class="w"></span>
+<a id="line-370" name="line-370"></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">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">exclude</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_window_is_decorated</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="mi">0</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>
+<a id="line-372" name="line-372"></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">gdk_display</span><span class="p">))</span><span class="w"></span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-374" name="line-374"></a>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">wnck_window_is_maximized</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"></span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">exclude</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>
+<a id="line-377" name="line-377"></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;exclude&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="n">exclude</span><span class="p">));</span><span class="w"></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">is_excluded</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">))</span><span class="w"></span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-381" name="line-381"></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;state-changed&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_window_state_changed</span><span class="p">),</span><span class="w"> </span><span class="n">app</span><span class="p">);</span><span class="w"></span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-385" name="line-385"></a>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">no_maximize</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">no_maximize</span><span class="p">)</span><span class="w"></span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">wnck_window_is_maximized</span><span class="p">(</span><span class="n">window</span><span class="p">)</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">undecorate</span><span class="p">)</span><span class="w"></span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">_window_set_decorations</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"></span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-393" name="line-393"></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;state-changed&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_window_state_changed</span><span class="p">),</span><span class="w"> </span><span class="n">app</span><span class="p">);</span><span class="w"></span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-397" name="line-397"></a>
+<a id="line-398" name="line-398"></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">undecorate</span><span class="p">)</span><span class="w"></span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="cm">/* Only undecorate right now if the window is smaller than the screen */</span><span class="w"></span>
+<a id="line-401" name="line-401"></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_is_too_large_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"></span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">_window_set_decorations</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"></span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-407" name="line-407"></a>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">wnck_window_maximize</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<a id="line-409" name="line-409"></a>
+<a id="line-410" name="line-410"></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;state-changed&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_window_state_changed</span><span class="p">),</span><span class="w"> </span><span class="n">app</span><span class="p">);</span><span class="w"></span>
+<a id="line-412" name="line-412"></a><span class="p">}</span><span class="w"></span>
+<a id="line-413" name="line-413"></a>
+<a id="line-414" name="line-414"></a><span class="cm">/* GSettings Callbacks */</span><span class="w"></span>
+<a id="line-415" name="line-415"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-416" name="line-416"></a><span class="nf">on_app_no_maximize_changed</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><span class="w"></span>
+<a id="line-417" name="line-417"></a><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><span class="w"></span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">)</span><span class="w"></span>
+<a id="line-419" name="line-419"></a><span class="p">{</span><span class="w"></span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">MaximusAppPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-421" name="line-421"></a>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MAXIMUS_IS_APP</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">));</span><span class="w"></span>
+<a id="line-423" name="line-423"></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">app</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">no_maximize</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">key</span><span class="p">);</span><span class="w"></span>
+<a id="line-425" name="line-425"></a><span class="p">}</span><span class="w"></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="kt">void</span><span class="w"></span>
+<a id="line-428" name="line-428"></a><span class="nf">on_exclude_class_changed</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><span class="w"></span>
+<a id="line-429" name="line-429"></a><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><span class="w"></span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">)</span><span class="w"></span>
+<a id="line-431" name="line-431"></a><span class="p">{</span><span class="w"></span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">MaximusAppPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-433" name="line-433"></a><span class="w"> </span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MAXIMUS_IS_APP</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">));</span><span class="w"></span>
+<a id="line-435" name="line-435"></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">app</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-436" name="line-436"></a>
+<a id="line-437" name="line-437"></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">exclude_class_list</span><span class="p">)</span><span class="w"></span>
+<a id="line-438" name="line-438"></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">exclude_class_list</span><span class="p">);</span><span class="w"></span>
+<a id="line-439" name="line-439"></a><span class="w"> </span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">exclude_class_list</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">settings</span><span class="p">,</span><span class="w"> </span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">APP_EXCLUDE_CLASS</span><span class="p">);</span><span class="w"></span>
+<a id="line-442" name="line-442"></a><span class="p">}</span><span class="w"></span>
+<a id="line-443" name="line-443"></a>
+<a id="line-444" name="line-444"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-445" name="line-445"></a><span class="nf">show_desktop</span><span class="w"> </span><span class="p">(</span><span class="n">WnckScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span><span class="w"></span>
+<a id="line-446" name="line-446"></a><span class="p">{</span><span class="w"></span>
+<a id="line-447" name="line-447"></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">WNCK_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="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-448" name="line-448"></a><span class="w"> </span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">wnck_screen_toggle_showing_desktop</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>
+<a id="line-450" name="line-450"></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>
+<a id="line-451" name="line-451"></a><span class="p">}</span><span class="w"></span>
+<a id="line-452" name="line-452"></a>
+<a id="line-453" name="line-453"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-454" name="line-454"></a><span class="nf">on_app_undecorate_changed</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><span class="w"></span>
+<a id="line-455" name="line-455"></a><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><span class="w"></span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">)</span><span class="w"></span>
+<a id="line-457" name="line-457"></a><span class="p">{</span><span class="w"></span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">MaximusAppPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">windows</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">w</span><span class="p">;</span><span class="w"></span>
+<a id="line-460" name="line-460"></a><span class="w"> </span>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MAXIMUS_IS_APP</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">));</span><span class="w"></span>
+<a id="line-462" name="line-462"></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">app</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></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">WNCK_IS_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">));</span><span class="w"></span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">undecorate</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">APP_UNDECORATE</span><span class="p">);</span><span class="w"></span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</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">priv</span><span class="o">-&gt;</span><span class="n">undecorate</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">&quot;Undecorating&quot;</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;Decorating&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-467" name="line-467"></a><span class="w"> </span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">windows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_screen_get_windows</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span><span class="w"></span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">for</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="n">windows</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">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">w</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"></span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">WnckWindow</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">w</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span><span class="w"></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="o">!</span><span class="n">WNCK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"></span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span><span class="w"></span>
+<a id="line-475" name="line-475"></a>
+<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">no_maximize</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">no_maximize</span><span class="p">)</span><span class="w"></span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<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="o">!</span><span class="n">wnck_window_is_maximized</span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"></span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span><span class="w"></span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="p">}</span><span class="w"></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">is_excluded</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">))</span><span class="w"></span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdk_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><span class="w"></span>
+<a id="line-485" name="line-485"></a>
+<a id="line-486" name="line-486"></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">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">_window_set_decorations</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">priv</span><span class="o">-&gt;</span><span class="n">undecorate</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><span class="w"></span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">wnck_window_unmaximize</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">wnck_window_maximize</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-491" name="line-491"></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">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-492" name="line-492"></a>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">sleep</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="p">);</span><span class="w"></span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="cm">/* We want the user to be left on the launcher/desktop after switching modes*/</span><span class="w"></span>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">g_timeout_add_seconds</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="n">show_desktop</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span><span class="w"></span>
+<a id="line-498" name="line-498"></a><span class="p">}</span><span class="w"></span>
+<a id="line-499" name="line-499"></a>
+<a id="line-500" name="line-500"></a><span class="cm">/* GObject stuff */</span><span class="w"></span>
+<a id="line-501" name="line-501"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-502" name="line-502"></a><span class="nf">maximus_app_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusAppClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span><span class="w"></span>
+<a id="line-503" name="line-503"></a><span class="p">{</span><span class="w"></span>
+<a id="line-504" name="line-504"></a><span class="p">}</span><span class="w"></span>
+<a id="line-505" name="line-505"></a>
+<a id="line-506" name="line-506"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-507" name="line-507"></a><span class="nf">maximus_app_init</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">)</span><span class="w"></span>
+<a id="line-508" name="line-508"></a><span class="p">{</span><span class="w"></span>
+<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">MaximusAppPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">WnckScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span><span class="w"></span>
+<a id="line-511" name="line-511"></a><span class="w"> </span>
+<a id="line-512" name="line-512"></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">app</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">maximus_app_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">);</span><span class="w"></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">bind</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">maximus_bind_get_default</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-515" name="line-515"></a>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">was_decorated</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;was-decorated&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-517" name="line-517"></a>
+<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">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">APP_SCHEMA</span><span class="p">);</span><span class="w"></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_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::&quot;</span><span class="w"> </span><span class="n">APP_EXCLUDE_CLASS</span><span class="p">,</span><span class="w"></span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_exclude_class_changed</span><span class="p">),</span><span class="w"> </span><span class="n">app</span><span class="p">);</span><span class="w"></span>
+<a id="line-522" name="line-522"></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::&quot;</span><span class="w"> </span><span class="n">APP_UNDECORATE</span><span class="p">,</span><span class="w"></span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_app_undecorate_changed</span><span class="p">),</span><span class="w"> </span><span class="n">app</span><span class="p">);</span><span class="w"></span>
+<a id="line-524" name="line-524"></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::&quot;</span><span class="w"> </span><span class="n">APP_NO_MAXIMIZE</span><span class="p">,</span><span class="w"></span>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_app_no_maximize_changed</span><span class="p">),</span><span class="w"> </span><span class="n">app</span><span class="p">);</span><span class="w"></span>
+<a id="line-526" name="line-526"></a>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">exclude_class_list</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="n">APP_EXCLUDE_CLASS</span><span class="p">);</span><span class="w"> </span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">undecorate</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="n">APP_UNDECORATE</span><span class="p">);</span><span class="w"></span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">no_maximize</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="n">APP_NO_MAXIMIZE</span><span class="p">);</span><span class="w"></span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;no maximize: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">no_maximize</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><span class="w"></span>
+<a id="line-531" name="line-531"></a><span class="w"> </span>
+<a id="line-532" name="line-532"></a><span class="w"> </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">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_screen_get_default</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">g_signal_connect</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;window-opened&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_window_opened</span><span class="p">),</span><span class="w"> </span><span class="n">app</span><span class="p">);</span><span class="w"></span>
+<a id="line-535" name="line-535"></a><span class="p">}</span><span class="w"></span>
+<a id="line-536" name="line-536"></a>
+<a id="line-537" name="line-537"></a><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="w"></span>
+<a id="line-538" name="line-538"></a><span class="nf">maximus_app_get_default</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-539" name="line-539"></a>
+<a id="line-540" name="line-540"></a><span class="p">{</span><span class="w"></span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">MaximusApp</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></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">app</span><span class="p">)</span><span class="w"></span>
+<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">app</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">MAXIMUS_TYPE_APP</span><span class="p">,</span><span class="w"> </span>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-546" name="line-546"></a>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">app</span><span class="p">;</span><span class="w"></span>
+<a id="line-548" name="line-548"></a><span class="p">}</span><span class="w"></span>
+</pre></div>
+</td></tr></table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<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/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/3.html b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/3.html
new file mode 100644
index 0000000..4ae4af0
--- /dev/null
+++ b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/3.html
@@ -0,0 +1,1225 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-netbook</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-netbook: maximus/maximus-bind.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> maximus-bind.c</p>
+<a href="3.html#line-144"> unreadVariable 144</a><a href="3.html#line-203"> unreadVariable 203</a><a href="3.html#line-218"> unreadVariable 218</a><a href="3.html#line-276"> unreadVariable 276</a><a href="3.html#line-400"> unreadVariable 400</a>
+ </div>
+ <div id="content">
+<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></pre></div></td><td class="code"><div class="highlight"><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) 2008 Canonical Ltd</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-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 program is free software: you can redistribute it and/or modify</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * it under the terms of the GNU General Public License version 3 as</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * published by the Free Software Foundation.</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 program 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</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * GNU 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 General Public License</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * along with this program. 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><span class="cm"> * Authored by Neil Jagdish Patel &lt;[email protected]&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"> */</span><span class="w"></span>
+<a id="line-20" name="line-20"></a>
+<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="cp"></span>
+<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-23" name="line-23"></a>
+<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="cp"></span>
+<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="cp"></span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkkeysyms.h&gt;</span><span class="cp"></span>
+<a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="cp"></span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="cp">#define WNCK_I_KNOW_THIS_IS_UNSTABLE</span>
+<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;libwnck/libwnck.h&gt;</span><span class="cp"></span>
+<a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xlib.h&gt;</span><span class="cp"></span>
+<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xresource.h&gt;</span><span class="cp"></span>
+<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xutil.h&gt;</span><span class="cp"></span>
+<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/extensions/XTest.h&gt;</span><span class="cp"></span>
+<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/keysymdef.h&gt;</span><span class="cp"></span>
+<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/keysym.h&gt;</span><span class="cp"></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">&lt;fakekey/fakekey.h&gt;</span><span class="cp"></span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;maximus-bind.h&quot;</span><span class="cp"></span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;tomboykeybinder.h&quot;</span><span class="cp"></span>
+<a id="line-46" name="line-46"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;eggaccelerators.h&quot;</span><span class="cp"></span>
+<a id="line-47" name="line-47"></a>
+<a id="line-48" name="line-48"></a><span class="cp">#define KEY_RELEASE_TIMEOUT 300</span>
+<a id="line-49" name="line-49"></a><span class="cp">#define STATE_CHANGED_SLEEP 0.5</span>
+<a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="cm">/* GSettings schemas and keys */</span><span class="w"></span>
+<a id="line-52" name="line-52"></a><span class="cp">#define BIND_SCHEMA &quot;org.mate.maximus&quot;</span>
+<a id="line-53" name="line-53"></a><span class="cp">#define BIND_EXCLUDE_CLASS &quot;binding&quot;</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="cp">#define SYSRULESDIR SYSCONFDIR&quot;/maximus&quot;</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="cp">#ifdef __GNUC__</span>
+<a id="line-58" name="line-58"></a><span class="cp">#define UNUSED_VARIABLE __attribute__ ((unused))</span>
+<a id="line-59" name="line-59"></a><span class="cp">#else</span>
+<a id="line-60" name="line-60"></a><span class="cp">#define UNUSED_VARIABLE</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">struct</span><span class="w"> </span><span class="nc">_MaximusBindPrivate</span><span class="w"></span>
+<a id="line-64" name="line-64"></a><span class="p">{</span><span class="w"></span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">FakeKey</span><span class="w"> </span><span class="o">*</span><span class="n">fk</span><span class="p">;</span><span class="w"></span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">WnckScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span><span class="w"></span>
+<a id="line-67" name="line-67"></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><span class="w"></span>
+<a id="line-68" name="line-68"></a>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="p">;</span><span class="w"></span>
+<a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">rules</span><span class="p">;</span><span class="w"></span>
+<a id="line-72" name="line-72"></a><span class="p">};</span><span class="w"></span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"></span>
+<a id="line-75" name="line-75"></a><span class="p">{</span><span class="w"></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">wm_class</span><span class="p">;</span><span class="w"></span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">fullscreen</span><span class="p">;</span><span class="w"></span>
+<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">unfullscreen</span><span class="p">;</span><span class="w"></span>
+<a id="line-79" name="line-79"></a><span class="p">}</span><span class="w"> </span><span class="n">MaximusRule</span><span class="p">;</span><span class="w"></span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBind</span><span class="p">,</span><span class="w"> </span><span class="n">maximus_bind</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span><span class="w"></span>
+<a id="line-82" name="line-82"></a>
+<a id="line-83" name="line-83"></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>
+<a id="line-84" name="line-84"></a><span class="nf">get_fullscreen_keystroke</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">rules</span><span class="p">,</span><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-85" name="line-85"></a><span class="p">{</span><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">WnckClassGroup</span><span class="w"> </span><span class="o">*</span><span class="n">group</span><span class="p">;</span><span class="w"></span>
+<a id="line-87" name="line-87"></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">class_name</span><span class="p">;</span><span class="w"></span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">;</span><span class="w"></span>
+<a id="line-89" name="line-89"></a>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">group</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_window_get_class_group</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">class_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_class_group_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">group</span><span class="p">);</span><span class="w"></span>
+<a id="line-92" name="line-92"></a>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Searching rules for %s:</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">wnck_window_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span><span class="w"></span>
+<a id="line-94" name="line-94"></a>
+<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">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rules</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">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"></span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">MaximusRule</span><span class="w"> </span><span class="o">*</span><span class="n">rule</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span><span class="w"></span>
+<a id="line-98" name="line-98"></a>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;</span><span class="se">\t</span><span class="s">%s ?= %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">class_name</span><span class="p">,</span><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">wm_class</span><span class="p">);</span><span class="w"></span>
+<a id="line-100" name="line-100"></a>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">class_name</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">wm_class</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">class_name</span><span class="p">,</span><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">wm_class</span><span class="p">))</span><span class="w"></span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;</span><span class="se">\t</span><span class="s">YES!</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">fullscreen</span><span class="p">;</span><span class="w"></span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;</span><span class="se">\t</span><span class="s">NO!</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-110" name="line-110"></a><span class="p">}</span><span class="w"></span>
+<a id="line-111" name="line-111"></a>
+<a id="line-112" name="line-112"></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>
+<a id="line-113" name="line-113"></a><span class="nf">get_unfullscreen_keystroke</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">rules</span><span class="p">,</span><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-114" name="line-114"></a><span class="p">{</span><span class="w"></span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">WnckClassGroup</span><span class="w"> </span><span class="o">*</span><span class="n">group</span><span class="p">;</span><span class="w"></span>
+<a id="line-116" name="line-116"></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">class_name</span><span class="p">;</span><span class="w"></span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">;</span><span class="w"></span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">group</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_window_get_class_group</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span><span class="w"></span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">class_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_class_group_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">group</span><span class="p">);</span><span class="w"></span>
+<a id="line-121" name="line-121"></a>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rules</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">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"></span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">MaximusRule</span><span class="w"> </span><span class="o">*</span><span class="n">rule</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span><span class="w"></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">class_name</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">wm_class</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">class_name</span><span class="p">,</span><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">wm_class</span><span class="p">))</span><span class="w"></span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="p">{</span><span class="w"></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">rule</span><span class="o">-&gt;</span><span class="n">unfullscreen</span><span class="p">;</span><span class="w"></span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-133" name="line-133"></a><span class="p">}</span><span class="w"></span>
+<a id="line-134" name="line-134"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-135" name="line-135"></a><span class="nf">real_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="p">)</span><span class="w"></span>
+<a id="line-136" name="line-136"></a><span class="p">{</span><span class="w"></span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="n">UNUSED_VARIABLE</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span><span class="w"></span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">active</span><span class="p">;</span><span class="w"></span>
+<a id="line-140" name="line-140"></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">keystroke</span><span class="p">;</span><span class="w"></span>
+<a id="line-141" name="line-141"></a>
+<a id="line-142" name="line-142"></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">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-143" name="line-143"></a>
+<a id="line-144" name="line-144"></a><span class="hll"><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><span class="w"></span><span class="error2">&lt;--- Variable 'display' is assigned a value that is never used.</span>
+</span><a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">active</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_screen_get_active_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span><span class="w"></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="o">!</span><span class="n">WNCK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">)</span><span class="w"></span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">wnck_window_get_window_type</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">WNCK_WINDOW_NORMAL</span><span class="p">)</span><span class="w"></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><span class="w"></span>
+<a id="line-150" name="line-150"></a>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">keystroke</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_fullscreen_keystroke</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rules</span><span class="p">,</span><span class="w"> </span><span class="n">active</span><span class="p">);</span><span class="w"></span>
+<a id="line-152" name="line-152"></a>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">keystroke</span><span class="p">)</span><span class="w"></span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">keysym</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>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="n">modifiers</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>
+<a id="line-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">egg_accelerator_parse_virtual</span><span class="w"> </span><span class="p">(</span><span class="n">keystroke</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">keysym</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">modifiers</span><span class="p">))</span><span class="w"></span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">mods</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>
+<a id="line-161" name="line-161"></a>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modifiers</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SHIFT_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">FAKEKEYMOD_SHIFT</span><span class="p">;</span><span class="w"></span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modifiers</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_CONTROL_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">FAKEKEYMOD_CONTROL</span><span class="p">;</span><span class="w"></span>
+<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">modifiers</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_ALT_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">FAKEKEYMOD_ALT</span><span class="p">;</span><span class="w"></span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modifiers</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_META_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">FAKEKEYMOD_META</span><span class="p">;</span><span class="w"></span>
+<a id="line-170" name="line-170"></a>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Sending fullscreen special event: %s = %d %d&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">keystroke</span><span class="p">,</span><span class="w"> </span><span class="n">keysym</span><span class="p">,</span><span class="w"> </span><span class="n">mods</span><span class="p">);</span><span class="w"></span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">fakekey_press_keysym</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="p">,</span><span class="w"> </span><span class="n">keysym</span><span class="p">,</span><span class="w"> </span><span class="n">mods</span><span class="p">);</span><span class="w"></span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">fakekey_release</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="p">);</span><span class="w"></span>
+<a id="line-175" name="line-175"></a>
+<a id="line-176" name="line-176"></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>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">}</span><span class="w"></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="o">!</span><span class="n">wnck_window_is_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">))</span><span class="w"></span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Sending fullscreen F11 event&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">fakekey_press_keysym</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="p">,</span><span class="w"> </span><span class="n">XK_F11</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"></span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">fakekey_release</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="p">);</span><span class="w"></span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-186" name="line-186"></a>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">sleep</span><span class="w"> </span><span class="p">(</span><span class="n">STATE_CHANGED_SLEEP</span><span class="p">);</span><span class="w"></span>
+<a id="line-188" name="line-188"></a>
+<a id="line-189" name="line-189"></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">wnck_window_is_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">))</span><span class="w"></span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Forcing fullscreen wnck event&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">wnck_window_set_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span><span class="w"></span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-194" name="line-194"></a>
+<a id="line-195" name="line-195"></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>
+<a id="line-196" name="line-196"></a><span class="p">}</span><span class="w"></span>
+<a id="line-197" name="line-197"></a>
+<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>
+<a id="line-199" name="line-199"></a><span class="nf">fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="p">,</span><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-200" name="line-200"></a><span class="p">{</span><span class="w"></span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="n">UNUSED_VARIABLE</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-202" name="line-202"></a><span class="w"> </span>
+<a id="line-203" name="line-203"></a><span class="hll"><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span><span class="error2">&lt;--- Variable 'priv' is assigned a value that is never used.</span>
+</span><a id="line-204" name="line-204"></a>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_timeout_add</span><span class="w"> </span><span class="p">(</span><span class="n">KEY_RELEASE_TIMEOUT</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="n">real_fullscreen</span><span class="p">,</span><span class="w"> </span><span class="n">bind</span><span class="p">);</span><span class="w"></span>
+<a id="line-206" name="line-206"></a><span class="p">}</span><span class="w"></span>
+<a id="line-207" name="line-207"></a>
+<a id="line-208" name="line-208"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-209" name="line-209"></a><span class="nf">real_unfullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="p">)</span><span class="w"></span>
+<a id="line-210" name="line-210"></a><span class="p">{</span><span class="w"></span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="n">UNUSED_VARIABLE</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span><span class="w"></span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">active</span><span class="p">;</span><span class="w"></span>
+<a id="line-214" name="line-214"></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">keystroke</span><span class="p">;</span><span class="w"></span>
+<a id="line-215" name="line-215"></a>
+<a id="line-216" name="line-216"></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">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-217" name="line-217"></a>
+<a id="line-218" name="line-218"></a><span class="hll"><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><span class="w"></span><span class="error2">&lt;--- Variable 'display' is assigned a value that is never used.</span>
+</span><a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">active</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_screen_get_active_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span><span class="w"></span>
+<a id="line-220" name="line-220"></a>
+<a id="line-221" name="line-221"></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">WNCK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">)</span><span class="w"></span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">wnck_window_get_window_type</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">WNCK_WINDOW_NORMAL</span><span class="p">)</span><span class="w"></span>
+<a id="line-223" name="line-223"></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>
+<a id="line-224" name="line-224"></a>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">keystroke</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_unfullscreen_keystroke</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rules</span><span class="p">,</span><span class="w"> </span><span class="n">active</span><span class="p">);</span><span class="w"></span>
+<a id="line-226" name="line-226"></a>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">keystroke</span><span class="p">)</span><span class="w"></span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">keysym</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>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="n">modifiers</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>
+<a id="line-231" name="line-231"></a>
+<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">egg_accelerator_parse_virtual</span><span class="w"> </span><span class="p">(</span><span class="n">keystroke</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">keysym</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">modifiers</span><span class="p">))</span><span class="w"></span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">mods</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>
+<a id="line-235" name="line-235"></a>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modifiers</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_SHIFT_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">FAKEKEYMOD_SHIFT</span><span class="p">;</span><span class="w"></span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modifiers</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_CONTROL_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">FAKEKEYMOD_CONTROL</span><span class="p">;</span><span class="w"></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">modifiers</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_ALT_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">FAKEKEYMOD_ALT</span><span class="p">;</span><span class="w"></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="n">modifiers</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">EGG_VIRTUAL_META_MASK</span><span class="p">)</span><span class="w"></span>
+<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">mods</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">FAKEKEYMOD_META</span><span class="p">;</span><span class="w"></span>
+<a id="line-244" name="line-244"></a>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Sending fullscreen special event: %s = %d %d&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">keystroke</span><span class="p">,</span><span class="w"> </span><span class="n">keysym</span><span class="p">,</span><span class="w"> </span><span class="n">mods</span><span class="p">);</span><span class="w"></span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">fakekey_press_keysym</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="p">,</span><span class="w"> </span><span class="n">keysym</span><span class="p">,</span><span class="w"> </span><span class="n">mods</span><span class="p">);</span><span class="w"></span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">fakekey_release</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="p">);</span><span class="w"></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">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">wnck_window_is_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">))</span><span class="w"></span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Sending un-fullscreen F11 event&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">fakekey_press_keysym</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="p">,</span><span class="w"> </span><span class="n">XK_F11</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"></span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">fakekey_release</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="p">);</span><span class="w"></span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">sleep</span><span class="w"> </span><span class="p">(</span><span class="n">STATE_CHANGED_SLEEP</span><span class="p">);</span><span class="w"></span>
+<a id="line-261" name="line-261"></a>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">wnck_window_is_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">))</span><span class="w"></span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Forcing un-fullscreen wnck event&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">wnck_window_set_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-267" name="line-267"></a>
+<a id="line-268" name="line-268"></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>
+<a id="line-269" name="line-269"></a><span class="p">}</span><span class="w"></span>
+<a id="line-270" name="line-270"></a>
+<a id="line-271" name="line-271"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-272" name="line-272"></a><span class="nf">unfullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="p">,</span><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span><span class="w"></span>
+<a id="line-273" name="line-273"></a><span class="p">{</span><span class="w"></span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="n">UNUSED_VARIABLE</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-275" name="line-275"></a><span class="w"> </span>
+<a id="line-276" name="line-276"></a><span class="hll"><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span><span class="error2">&lt;--- Variable 'priv' is assigned a value that is never used.</span>
+</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_timeout_add</span><span class="w"> </span><span class="p">(</span><span class="n">KEY_RELEASE_TIMEOUT</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="n">real_unfullscreen</span><span class="p">,</span><span class="w"> </span><span class="n">bind</span><span class="p">);</span><span class="w"></span>
+<a id="line-279" name="line-279"></a><span class="p">}</span><span class="w"></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="kt">void</span><span class="w"></span>
+<a id="line-282" name="line-282"></a><span class="nf">on_binding_activated</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">keystring</span><span class="p">,</span><span class="w"> </span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="p">)</span><span class="w"></span>
+<a id="line-283" name="line-283"></a><span class="p">{</span><span class="w"></span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">WnckWindow</span><span class="w"> </span><span class="o">*</span><span class="n">active</span><span class="p">;</span><span class="w"></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_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MAXIMUS_IS_BIND</span><span class="w"> </span><span class="p">(</span><span class="n">bind</span><span class="p">));</span><span class="w"></span>
+<a id="line-288" name="line-288"></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">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-289" name="line-289"></a>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">active</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_screen_get_active_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span><span class="w"></span>
+<a id="line-291" name="line-291"></a>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">wnck_window_get_window_type</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">WNCK_WINDOW_NORMAL</span><span class="p">)</span><span class="w"></span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-294" name="line-294"></a>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">wnck_window_is_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">))</span><span class="w"></span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">unfullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">bind</span><span class="p">,</span><span class="w"> </span><span class="n">active</span><span class="p">);</span><span class="w"></span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">bind</span><span class="p">,</span><span class="w"> </span><span class="n">active</span><span class="p">);</span><span class="w"></span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-303" name="line-303"></a><span class="p">}</span><span class="w"></span>
+<a id="line-304" name="line-304"></a>
+<a id="line-305" name="line-305"></a><span class="cm">/* Callbacks */</span><span class="w"></span>
+<a id="line-306" name="line-306"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-307" name="line-307"></a><span class="nf">binding_is_valid</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">binding</span><span class="p">)</span><span class="w"></span>
+<a id="line-308" name="line-308"></a><span class="p">{</span><span class="w"></span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">gboolean</span><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><span class="w"></span>
+<a id="line-310" name="line-310"></a>
+<a id="line-311" name="line-311"></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">binding</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">binding</span><span class="p">)</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="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;disabled&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>
+<a id="line-312" name="line-312"></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><span class="w"></span>
+<a id="line-313" name="line-313"></a>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span><span class="w"></span>
+<a id="line-315" name="line-315"></a><span class="p">}</span><span class="w"></span>
+<a id="line-316" name="line-316"></a>
+<a id="line-317" name="line-317"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-318" name="line-318"></a><span class="nf">on_binding_changed</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><span class="w"></span>
+<a id="line-319" name="line-319"></a><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><span class="w"></span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="p">)</span><span class="w"></span>
+<a id="line-321" name="line-321"></a><span class="p">{</span><span class="w"></span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-323" name="line-323"></a>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MAXIMUS_IS_BIND</span><span class="w"> </span><span class="p">(</span><span class="n">bind</span><span class="p">));</span><span class="w"></span>
+<a id="line-325" name="line-325"></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">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-326" name="line-326"></a>
+<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">binding_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</span><span class="p">))</span><span class="w"></span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">tomboy_keybinder_unbind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</span><span class="p">,</span><span class="w"></span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">(</span><span class="n">TomboyBindkeyHandler</span><span class="p">)</span><span class="n">on_binding_changed</span><span class="p">);</span><span class="w"></span>
+<a id="line-330" name="line-330"></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">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-331" name="line-331"></a>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</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">BIND_EXCLUDE_CLASS</span><span class="p">);</span><span class="w"></span>
+<a id="line-333" name="line-333"></a>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">binding_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</span><span class="p">))</span><span class="w"></span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">tomboy_keybinder_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</span><span class="p">,</span><span class="w"></span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="p">(</span><span class="n">TomboyBindkeyHandler</span><span class="p">)</span><span class="n">on_binding_activated</span><span class="p">,</span><span class="w"></span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">bind</span><span class="p">);</span><span class="w"></span>
+<a id="line-338" name="line-338"></a>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Binding changed: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-340" name="line-340"></a><span class="p">}</span><span class="w"></span>
+<a id="line-341" name="line-341"></a>
+<a id="line-342" name="line-342"></a><span class="cm">/* GObject stuff */</span><span class="w"></span>
+<a id="line-343" name="line-343"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-344" name="line-344"></a><span class="nf">create_rule</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</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">filename</span><span class="p">)</span><span class="w"></span>
+<a id="line-345" name="line-345"></a><span class="p">{</span><span class="w"></span>
+<a id="line-346" name="line-346"></a><span class="cp">#define RULE_GROUP &quot;Fullscreening&quot;</span>
+<a id="line-347" name="line-347"></a><span class="cp">#define RULE_WMCLASS &quot;WMClass&quot;</span>
+<a id="line-348" name="line-348"></a><span class="cp">#define RULE_FULLSCREEN &quot;Fullscreen&quot;</span>
+<a id="line-349" name="line-349"></a><span class="cp">#define RULE_UNFULLSCREEN &quot;Unfullscreen&quot;</span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">GKeyFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span><span class="w"></span>
+<a id="line-352" name="line-352"></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><span class="w"></span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">MaximusRule</span><span class="w"> </span><span class="o">*</span><span class="n">rule</span><span class="p">;</span><span class="w"></span>
+<a id="line-354" name="line-354"></a>
+<a id="line-355" name="line-355"></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">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-356" name="line-356"></a>
+<a id="line-357" name="line-357"></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_key_file_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">g_key_file_load_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">filename</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><span class="w"></span>
+<a id="line-359" name="line-359"></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="p">)</span><span class="w"></span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-361" name="line-361"></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 load %s: %s</span><span class="se">\n</span><span class="s">&quot;</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="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-362" name="line-362"></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><span class="w"></span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">g_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span><span class="w"></span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-366" name="line-366"></a>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">rule</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">MaximusRule</span><span class="p">);</span><span class="w"></span>
+<a id="line-368" name="line-368"></a>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">wm_class</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">file</span><span class="p">,</span><span class="w"></span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">RULE_GROUP</span><span class="p">,</span><span class="w"> </span><span class="n">RULE_WMCLASS</span><span class="p">,</span><span class="w"></span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">fullscreen</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">file</span><span class="p">,</span><span class="w"></span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">RULE_GROUP</span><span class="p">,</span><span class="w"> </span><span class="n">RULE_FULLSCREEN</span><span class="p">,</span><span class="w"></span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">unfullscreen</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">file</span><span class="p">,</span><span class="w"></span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">RULE_GROUP</span><span class="p">,</span><span class="w"> </span><span class="n">RULE_UNFULLSCREEN</span><span class="p">,</span><span class="w"></span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-378" name="line-378"></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">rule</span><span class="o">-&gt;</span><span class="n">wm_class</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">fullscreen</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">unfullscreen</span><span class="p">)</span><span class="w"></span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">wm_class</span><span class="p">);</span><span class="w"></span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">fullscreen</span><span class="p">);</span><span class="w"></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">rule</span><span class="o">-&gt;</span><span class="n">unfullscreen</span><span class="p">);</span><span class="w"></span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusRule</span><span class="p">,</span><span class="w"> </span><span class="n">rule</span><span class="p">);</span><span class="w"></span>
+<a id="line-384" name="line-384"></a>
+<a id="line-385" name="line-385"></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 load %s, missing strings&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span><span class="w"></span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rules</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">priv</span><span class="o">-&gt;</span><span class="n">rules</span><span class="p">,</span><span class="w"> </span><span class="n">rule</span><span class="p">);</span><span class="w"></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_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span><span class="w"></span>
+<a id="line-391" name="line-391"></a><span class="p">}</span><span class="w"></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><span class="w"></span>
+<a id="line-394" name="line-394"></a><span class="nf">load_rules</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</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">path</span><span class="p">)</span><span class="w"></span>
+<a id="line-395" name="line-395"></a><span class="p">{</span><span class="w"></span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="n">UNUSED_VARIABLE</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-397" name="line-397"></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><span class="w"></span>
+<a id="line-398" name="line-398"></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><span class="w"></span>
+<a id="line-399" name="line-399"></a>
+<a id="line-400" name="line-400"></a><span class="hll"><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span><span class="error2">&lt;--- Variable 'priv' is assigned a value that is never used.</span>
+</span><a id="line-401" name="line-401"></a>
+<a id="line-402" name="line-402"></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><span class="w"></span>
+<a id="line-403" name="line-403"></a>
+<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><span class="w"></span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"></span>
+<a id="line-406" name="line-406"></a>
+<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">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><span class="w"></span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-409" name="line-409"></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><span class="w"></span>
+<a id="line-410" name="line-410"></a>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">filename</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">name</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-412" name="line-412"></a>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">create_rule</span><span class="w"> </span><span class="p">(</span><span class="n">bind</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span><span class="w"></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_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span><span class="w"></span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="p">}</span><span class="w"></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_dir_close</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">);</span><span class="w"></span>
+<a id="line-419" name="line-419"></a><span class="p">}</span><span class="w"></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><span class="w"></span>
+<a id="line-422" name="line-422"></a><span class="nf">maximus_bind_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">obj</span><span class="p">)</span><span class="w"></span>
+<a id="line-423" name="line-423"></a><span class="p">{</span><span class="w"></span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAXIMUS_BIND</span><span class="w"> </span><span class="p">(</span><span class="n">obj</span><span class="p">);</span><span class="w"></span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">;</span><span class="w"></span>
+<a id="line-427" name="line-427"></a>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MAXIMUS_IS_BIND</span><span class="w"> </span><span class="p">(</span><span class="n">bind</span><span class="p">));</span><span class="w"></span>
+<a id="line-429" name="line-429"></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">bind</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-430" name="line-430"></a>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</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">rules</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">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"></span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">MaximusRule</span><span class="w"> </span><span class="o">*</span><span class="n">rule</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span><span class="w"></span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">rule</span><span class="o">-&gt;</span><span class="n">wm_class</span><span class="p">);</span><span class="w"></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">rule</span><span class="o">-&gt;</span><span class="n">fullscreen</span><span class="p">);</span><span class="w"></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">rule</span><span class="o">-&gt;</span><span class="n">unfullscreen</span><span class="p">);</span><span class="w"></span>
+<a id="line-438" name="line-438"></a>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusRule</span><span class="p">,</span><span class="w"> </span><span class="n">rule</span><span class="p">);</span><span class="w"></span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-441" name="line-441"></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">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-442" name="line-442"></a>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">maximus_bind_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">obj</span><span class="p">);</span><span class="w"></span>
+<a id="line-444" name="line-444"></a><span class="p">}</span><span class="w"></span>
+<a id="line-445" name="line-445"></a>
+<a id="line-446" name="line-446"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-447" name="line-447"></a><span class="nf">maximus_bind_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBindClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span><span class="w"></span>
+<a id="line-448" name="line-448"></a><span class="p">{</span><span class="w"></span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">obj_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><span class="w"></span>
+<a id="line-450" name="line-450"></a>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">obj_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">maximus_bind_finalize</span><span class="p">;</span><span class="w"></span>
+<a id="line-452" name="line-452"></a><span class="p">}</span><span class="w"></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="kt">void</span><span class="w"></span>
+<a id="line-455" name="line-455"></a><span class="nf">maximus_bind_init</span><span class="w"> </span><span class="p">(</span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="p">)</span><span class="w"></span>
+<a id="line-456" name="line-456"></a><span class="p">{</span><span class="w"></span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">MaximusBindPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span><span class="w"></span>
+<a id="line-458" name="line-458"></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_display_get_default</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">WnckScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span><span class="w"></span>
+<a id="line-460" name="line-460"></a>
+<a id="line-461" name="line-461"></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">bind</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">maximus_bind_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">bind</span><span class="p">);</span><span class="w"></span>
+<a id="line-462" name="line-462"></a>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fakekey_init</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">display</span><span class="p">));</span><span class="w"></span>
+<a id="line-464" name="line-464"></a><span class="w"> </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">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wnck_screen_get_default</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rules</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></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">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">BIND_SCHEMA</span><span class="p">);</span><span class="w"></span>
+<a id="line-467" name="line-467"></a>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">tomboy_keybinder_init</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></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::&quot;</span><span class="w"> </span><span class="n">BIND_EXCLUDE_CLASS</span><span class="p">,</span><span class="w"></span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_binding_changed</span><span class="p">),</span><span class="w"> </span><span class="n">bind</span><span class="p">);</span><span class="w"></span>
+<a id="line-472" name="line-472"></a>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</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">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">BIND_EXCLUDE_CLASS</span><span class="p">);</span><span class="w"></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">binding_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</span><span class="p">))</span><span class="w"></span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">tomboy_keybinder_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">binding</span><span class="p">,</span><span class="w"></span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="p">(</span><span class="n">TomboyBindkeyHandler</span><span class="p">)</span><span class="n">on_binding_activated</span><span class="p">,</span><span class="w"></span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">bind</span><span class="p">);</span><span class="w"></span>
+<a id="line-479" name="line-479"></a>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">load_rules</span><span class="w"> </span><span class="p">(</span><span class="n">bind</span><span class="p">,</span><span class="w"> </span><span class="n">SYSRULESDIR</span><span class="p">);</span><span class="w"></span>
+<a id="line-481" name="line-481"></a><span class="p">}</span><span class="w"></span>
+<a id="line-482" name="line-482"></a>
+<a id="line-483" name="line-483"></a><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="w"></span>
+<a id="line-484" name="line-484"></a><span class="nf">maximus_bind_get_default</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-485" name="line-485"></a>
+<a id="line-486" name="line-486"></a><span class="p">{</span><span class="w"></span>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">MaximusBind</span><span class="w"> </span><span class="o">*</span><span class="n">bind</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-488" name="line-488"></a>
+<a id="line-489" name="line-489"></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">bind</span><span class="p">)</span><span class="w"></span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">bind</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">MAXIMUS_TYPE_BIND</span><span class="p">,</span><span class="w"></span>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-492" name="line-492"></a>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">bind</span><span class="p">;</span><span class="w"></span>
+<a id="line-494" name="line-494"></a><span class="p">}</span><span class="w"></span>
+</pre></div>
+</td></tr></table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<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/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/4.html b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/4.html
new file mode 100644
index 0000000..a0a1a2f
--- /dev/null
+++ b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/4.html
@@ -0,0 +1,915 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-netbook</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-netbook: maximus/tomboykeybinder.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> tomboykeybinder.c</p>
+<a href="4.html#line-282"> constParameter 282</a>
+ </div>
+ <div id="content">
+<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* tomboykeybinder.c</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008 Novell</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-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 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 Library 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"> * 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 library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA </span>
+<a id="line-18" name="line-18"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-20" name="line-20"></a>
+<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdk.h&gt;</span><span class="cp"></span>
+<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkwindow.h&gt;</span><span class="cp"></span>
+<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="cp"></span>
+<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xlib.h&gt;</span><span class="cp"></span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;eggaccelerators.h&quot;</span><span class="cp"></span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;tomboykeybinder.h&quot;</span><span class="cp"></span>
+<a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cm">/* Uncomment the next line to print a debug trace. */</span><span class="w"></span>
+<a id="line-30" name="line-30"></a><span class="cm">/* #define DEBUG */</span><span class="w"></span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#ifdef DEBUG</span>
+<a id="line-33" name="line-33"></a><span class="cp"># define TRACE(x) x</span>
+<a id="line-34" name="line-34"></a><span class="cp">#else</span>
+<a id="line-35" name="line-35"></a><span class="cp"># define TRACE(x) do {} while (FALSE);</span>
+<a id="line-36" name="line-36"></a><span class="cp">#endif</span>
+<a id="line-37" name="line-37"></a>
+<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">_Binding</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">TomboyBindkeyHandler</span><span class="w"> </span><span class="n">handler</span><span class="p">;</span><span class="w"></span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span><span class="w"></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">keystring</span><span class="p">;</span><span class="w"></span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">uint</span><span class="w"> </span><span class="n">keycode</span><span class="p">;</span><span class="w"></span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">uint</span><span class="w"> </span><span class="n">modifiers</span><span class="p">;</span><span class="w"></span>
+<a id="line-44" name="line-44"></a><span class="p">}</span><span class="w"> </span><span class="n">Binding</span><span class="p">;</span><span class="w"></span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">bindings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-47" name="line-47"></a><span class="k">static</span><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">last_event_time</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>
+<a id="line-48" name="line-48"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">processing_event</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>
+<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="n">guint</span><span class="w"> </span><span class="n">num_lock_mask</span><span class="p">,</span><span class="w"> </span><span class="n">caps_lock_mask</span><span class="p">,</span><span class="w"> </span><span class="n">scroll_lock_mask</span><span class="p">;</span><span class="w"></span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-53" name="line-53"></a><span class="nf">lookup_ignorable_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="p">)</span><span class="w"></span>
+<a id="line-54" name="line-54"></a><span class="p">{</span><span class="w"></span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">egg_keymap_resolve_virtual_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">,</span><span class="w"> </span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">EGG_VIRTUAL_LOCK_MASK</span><span class="p">,</span><span class="w"></span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">caps_lock_mask</span><span class="p">);</span><span class="w"></span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">egg_keymap_resolve_virtual_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">,</span><span class="w"> </span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">EGG_VIRTUAL_NUM_LOCK_MASK</span><span class="p">,</span><span class="w"></span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">num_lock_mask</span><span class="p">);</span><span class="w"></span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">egg_keymap_resolve_virtual_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">,</span><span class="w"> </span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">EGG_VIRTUAL_SCROLL_LOCK_MASK</span><span class="p">,</span><span class="w"></span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">scroll_lock_mask</span><span class="p">);</span><span class="w"></span>
+<a id="line-66" name="line-66"></a><span class="p">}</span><span class="w"></span>
+<a id="line-67" name="line-67"></a>
+<a id="line-68" name="line-68"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-69" name="line-69"></a><span class="nf">grab_ungrab_with_ignorable_modifiers</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">rootwin</span><span class="p">,</span><span class="w"> </span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="p">,</span><span class="w"></span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">grab</span><span class="p">)</span><span class="w"></span>
+<a id="line-72" name="line-72"></a><span class="p">{</span><span class="w"></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">mod_masks</span><span class="w"> </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>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="cm">/* modifier only */</span><span class="w"></span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">num_lock_mask</span><span class="p">,</span><span class="w"></span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">caps_lock_mask</span><span class="p">,</span><span class="w"></span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">scroll_lock_mask</span><span class="p">,</span><span class="w"></span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">num_lock_mask</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">caps_lock_mask</span><span class="p">,</span><span class="w"></span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">num_lock_mask</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">scroll_lock_mask</span><span class="p">,</span><span class="w"></span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">caps_lock_mask</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">scroll_lock_mask</span><span class="p">,</span><span class="w"></span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">num_lock_mask</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">caps_lock_mask</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">scroll_lock_mask</span><span class="p">,</span><span class="w"></span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="p">};</span><span class="w"></span>
+<a id="line-83" name="line-83"></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>
+<a id="line-84" name="line-84"></a>
+<a id="line-85" name="line-85"></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">mod_masks</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><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">grab</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">XGrabKey</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">rootwin</span><span class="p">),</span><span class="w"> </span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keycode</span><span class="p">,</span><span class="w"> </span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">modifiers</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">mod_masks</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">GDK_WINDOW_XID</span><span class="w"> </span><span class="p">(</span><span class="n">rootwin</span><span class="p">),</span><span class="w"> </span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">False</span><span class="p">,</span><span class="w"> </span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">GrabModeAsync</span><span class="p">,</span><span class="w"></span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">GrabModeAsync</span><span class="p">);</span><span class="w"></span>
+<a id="line-94" name="line-94"></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><span class="w"></span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">XUngrabKey</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">rootwin</span><span class="p">),</span><span class="w"></span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keycode</span><span class="p">,</span><span class="w"></span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">modifiers</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">mod_masks</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">GDK_WINDOW_XID</span><span class="w"> </span><span class="p">(</span><span class="n">rootwin</span><span class="p">));</span><span class="w"></span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-101" name="line-101"></a><span class="p">}</span><span class="w"></span>
+<a id="line-102" name="line-102"></a>
+<a id="line-103" name="line-103"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span>
+<a id="line-104" name="line-104"></a><span class="nf">do_grab_key</span><span class="w"> </span><span class="p">(</span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="p">)</span><span class="w"></span>
+<a id="line-105" name="line-105"></a><span class="p">{</span><span class="w"></span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdk_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><span class="w"></span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_keymap_get_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">rootwin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_get_default_root_window</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-109" name="line-109"></a>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">EggVirtualModifierType</span><span class="w"> </span><span class="n">virtual_mods</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>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">keysym</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>
+<a id="line-112" name="line-112"></a>
+<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">keymap</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">rootwin</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-114" name="line-114"></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>
+<a id="line-115" name="line-115"></a>
+<a id="line-116" name="line-116"></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">egg_accelerator_parse_virtual</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</span><span class="p">,</span><span class="w"> </span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">keysym</span><span class="p">,</span><span class="w"> </span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">virtual_mods</span><span class="p">))</span><span class="w"></span>
+<a id="line-119" name="line-119"></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>
+<a id="line-120" name="line-120"></a>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Got accel %d, %d</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">keysym</span><span class="p">,</span><span class="w"> </span><span class="n">virtual_mods</span><span class="p">));</span><span class="w"></span>
+<a id="line-122" name="line-122"></a>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keycode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XKeysymToKeycode</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">rootwin</span><span class="p">),</span><span class="w"> </span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">keysym</span><span class="p">);</span><span class="w"></span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keycode</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>
+<a id="line-126" name="line-126"></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>
+<a id="line-127" name="line-127"></a>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Got keycode %d</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keycode</span><span class="p">));</span><span class="w"></span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">egg_keymap_resolve_virtual_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">,</span><span class="w"></span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">virtual_mods</span><span class="p">,</span><span class="w"></span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">modifiers</span><span class="p">);</span><span class="w"></span>
+<a id="line-133" name="line-133"></a>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Got modmask %d</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">modifiers</span><span class="p">));</span><span class="w"></span>
+<a id="line-135" name="line-135"></a>
+<a id="line-136" name="line-136"></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">gdk_display</span><span class="p">);</span><span class="w"></span>
+<a id="line-137" name="line-137"></a>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">grab_ungrab_with_ignorable_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">rootwin</span><span class="p">,</span><span class="w"> </span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">binding</span><span class="p">,</span><span class="w"> </span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="cm">/* grab */</span><span class="p">);</span><span class="w"></span>
+<a id="line-141" name="line-141"></a>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display</span><span class="p">);</span><span class="w"></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">gdk_x11_display_error_trap_pop</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display</span><span class="p">))</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Binding &#39;%s&#39; failed!</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</span><span class="p">);</span><span class="w"></span>
+<a id="line-146" name="line-146"></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>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-148" name="line-148"></a>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-150" name="line-150"></a><span class="p">}</span><span class="w"></span>
+<a id="line-151" name="line-151"></a>
+<a id="line-152" name="line-152"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span>
+<a id="line-153" name="line-153"></a><span class="nf">do_ungrab_key</span><span class="w"> </span><span class="p">(</span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="p">)</span><span class="w"></span>
+<a id="line-154" name="line-154"></a><span class="p">{</span><span class="w"></span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">rootwin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_get_default_root_window</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-156" name="line-156"></a>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Removing grab for &#39;%s&#39;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</span><span class="p">));</span><span class="w"></span>
+<a id="line-158" name="line-158"></a>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">grab_ungrab_with_ignorable_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">rootwin</span><span class="p">,</span><span class="w"> </span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">binding</span><span class="p">,</span><span class="w"> </span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">FALSE</span><span class="w"> </span><span class="cm">/* ungrab */</span><span class="p">);</span><span class="w"></span>
+<a id="line-162" name="line-162"></a>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-164" name="line-164"></a><span class="p">}</span><span class="w"></span>
+<a id="line-165" name="line-165"></a>
+<a id="line-166" name="line-166"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkFilterReturn</span><span class="w"></span>
+<a id="line-167" name="line-167"></a><span class="nf">filter_func</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">gdk_xevent</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">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span><span class="w"></span>
+<a id="line-168" name="line-168"></a><span class="p">{</span><span class="w"></span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">GdkFilterReturn</span><span class="w"> </span><span class="n">return_val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_FILTER_CONTINUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">XEvent</span><span class="w"> </span><span class="o">*</span><span class="n">xevent</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">gdk_xevent</span><span class="p">;</span><span class="w"></span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">event_mods</span><span class="p">;</span><span class="w"></span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span><span class="w"></span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Got Event! %d, %d</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">xevent</span><span class="o">-&gt;</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">type</span><span class="p">));</span><span class="w"></span>
+<a id="line-175" name="line-175"></a>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">xevent</span><span class="o">-&gt;</span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="nl">KeyPress</span><span class="p">:</span><span class="w"></span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Got KeyPress! keycode: %d, modifiers: %d</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">xevent</span><span class="o">-&gt;</span><span class="n">xkey</span><span class="p">.</span><span class="n">keycode</span><span class="p">,</span><span class="w"> </span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">xevent</span><span class="o">-&gt;</span><span class="n">xkey</span><span class="p">.</span><span class="n">state</span><span class="p">));</span><span class="w"></span>
+<a id="line-181" name="line-181"></a>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="cm">/* </span>
+<a id="line-183" name="line-183"></a><span class="cm"> * Set the last event time for use when showing</span>
+<a id="line-184" name="line-184"></a><span class="cm"> * windows to avoid anti-focus-stealing code.</span>
+<a id="line-185" name="line-185"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">processing_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">last_event_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xevent</span><span class="o">-&gt;</span><span class="n">xkey</span><span class="p">.</span><span class="n">time</span><span class="p">;</span><span class="w"></span>
+<a id="line-188" name="line-188"></a>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">event_mods</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xevent</span><span class="o">-&gt;</span><span class="n">xkey</span><span class="p">.</span><span class="n">state</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="o">~</span><span class="p">(</span><span class="n">num_lock_mask</span><span class="w"> </span><span class="o">|</span><span class="w"> </span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">caps_lock_mask</span><span class="w"> </span><span class="o">|</span><span class="w"> </span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">scroll_lock_mask</span><span class="p">);</span><span class="w"></span>
+<a id="line-192" name="line-192"></a>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bindings</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </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">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">iter</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span><span class="w"></span>
+<a id="line-195" name="line-195"></a><span class="w"> </span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keycode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">xevent</span><span class="o">-&gt;</span><span class="n">xkey</span><span class="p">.</span><span class="n">keycode</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"></span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">modifiers</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">event_mods</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-198" name="line-198"></a>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Calling handler for &#39;%s&#39;...</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</span><span class="p">));</span><span class="w"></span>
+<a id="line-201" name="line-201"></a>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">handler</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</span><span class="p">,</span><span class="w"> </span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">user_data</span><span class="p">);</span><span class="w"></span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">processing_event</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>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span><span class="w"></span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="nl">KeyRelease</span><span class="p">:</span><span class="w"></span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Got KeyRelease! </span><span class="se">\n</span><span class="s">&quot;</span><span class="p">));</span><span class="w"></span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span><span class="w"></span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-213" name="line-213"></a>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">return_val</span><span class="p">;</span><span class="w"></span>
+<a id="line-215" name="line-215"></a><span class="p">}</span><span class="w"></span>
+<a id="line-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span>
+<a id="line-218" name="line-218"></a><span class="nf">keymap_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">map</span><span class="p">)</span><span class="w"></span>
+<a id="line-219" name="line-219"></a><span class="p">{</span><span class="w"></span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_keymap_get_for_display</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><span class="w"></span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span><span class="w"></span>
+<a id="line-222" name="line-222"></a>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">TRACE</span><span class="w"> </span><span class="p">(</span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Keymap changed! Regrabbing keys...&quot;</span><span class="p">));</span><span class="w"></span>
+<a id="line-224" name="line-224"></a>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bindings</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </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">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">iter</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span><span class="w"></span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">do_ungrab_key</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">lookup_ignorable_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">);</span><span class="w"></span>
+<a id="line-231" name="line-231"></a>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bindings</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </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">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">iter</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span><span class="w"></span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">do_grab_key</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-236" name="line-236"></a><span class="p">}</span><span class="w"></span>
+<a id="line-237" name="line-237"></a>
+<a id="line-238" name="line-238"></a><span class="kt">void</span><span class="w"> </span>
+<a id="line-239" name="line-239"></a><span class="nf">tomboy_keybinder_init</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-240" name="line-240"></a><span class="p">{</span><span class="w"></span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">GdkKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">keymap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_keymap_get_for_display</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><span class="w"></span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">rootwin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_get_default_root_window</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">lookup_ignorable_modifiers</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">);</span><span class="w"></span>
+<a id="line-245" name="line-245"></a>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">gdk_window_add_filter</span><span class="w"> </span><span class="p">(</span><span class="n">rootwin</span><span class="p">,</span><span class="w"> </span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">filter_func</span><span class="p">,</span><span class="w"> </span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">keymap</span><span class="p">,</span><span class="w"> </span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="s">&quot;keys_changed&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">keymap_changed</span><span class="p">),</span><span class="w"></span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-254" name="line-254"></a><span class="p">}</span><span class="w"></span>
+<a id="line-255" name="line-255"></a>
+<a id="line-256" name="line-256"></a><span class="kt">void</span><span class="w"> </span>
+<a id="line-257" name="line-257"></a><span class="nf">tomboy_keybinder_bind</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">keystring</span><span class="p">,</span><span class="w"></span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">TomboyBindkeyHandler</span><span class="w"> </span><span class="n">handler</span><span class="p">,</span><span class="w"></span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-260" name="line-260"></a><span class="p">{</span><span class="w"></span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="p">;</span><span class="w"></span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="p">;</span><span class="w"></span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">binding</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">Binding</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span><span class="w"></span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</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">keystring</span><span class="p">);</span><span class="w"></span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">handler</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">handler</span><span class="p">;</span><span class="w"></span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">user_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span><span class="w"></span>
+<a id="line-268" name="line-268"></a>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="cm">/* Sets the binding&#39;s keycode and modifiers */</span><span class="w"></span>
+<a id="line-270" name="line-270"></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">do_grab_key</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-271" name="line-271"></a>
+<a id="line-272" name="line-272"></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><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">bindings</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">bindings</span><span class="p">,</span><span class="w"> </span><span class="n">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-274" name="line-274"></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><span class="w"></span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</span><span class="p">);</span><span class="w"></span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-278" name="line-278"></a><span class="p">}</span><span class="w"></span>
+<a id="line-279" name="line-279"></a>
+<a id="line-280" name="line-280"></a><span class="kt">void</span><span class="w"></span>
+<a id="line-281" name="line-281"></a><span class="nf">tomboy_keybinder_unbind</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">keystring</span><span class="p">,</span><span class="w"> </span>
+<a id="line-282" name="line-282"></a><span class="hll"><span class="w"> </span><span class="n">TomboyBindkeyHandler</span><span class="w"> </span><span class="n">handler</span><span class="p">)</span><span class="w"></span><span class="error2">&lt;--- Parameter 'handler' can be declared with const</span>
+</span><a id="line-283" name="line-283"></a><span class="p">{</span><span class="w"></span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span><span class="w"></span>
+<a id="line-285" name="line-285"></a>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bindings</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </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">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="n">binding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">Binding</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">iter</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span><span class="w"></span>
+<a id="line-288" name="line-288"></a>
+<a id="line-289" name="line-289"></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">keystring</span><span class="p">,</span><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</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>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">handler</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">handler</span><span class="p">)</span><span class="w"> </span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span><span class="w"></span>
+<a id="line-292" name="line-292"></a>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">do_ungrab_key</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-294" name="line-294"></a>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">bindings</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">bindings</span><span class="p">,</span><span class="w"> </span><span class="n">binding</span><span class="p">);</span><span class="w"></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_free</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="o">-&gt;</span><span class="n">keystring</span><span class="p">);</span><span class="w"></span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">binding</span><span class="p">);</span><span class="w"></span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span><span class="w"></span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-301" name="line-301"></a><span class="p">}</span><span class="w"></span>
+<a id="line-302" name="line-302"></a>
+<a id="line-303" name="line-303"></a><span class="cm">/* </span>
+<a id="line-304" name="line-304"></a><span class="cm"> * From eggcellrenderkeys.c.</span>
+<a id="line-305" name="line-305"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-306" name="line-306"></a><span class="n">gboolean</span><span class="w"></span>
+<a id="line-307" name="line-307"></a><span class="nf">tomboy_keybinder_is_modifier</span><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="w"> </span><span class="n">keycode</span><span class="p">)</span><span class="w"></span>
+<a id="line-308" name="line-308"></a><span class="p">{</span><span class="w"></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">i</span><span class="p">;</span><span class="w"></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">map_size</span><span class="p">;</span><span class="w"></span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">XModifierKeymap</span><span class="w"> </span><span class="o">*</span><span class="n">mod_keymap</span><span class="p">;</span><span class="w"></span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gboolean</span><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><span class="w"></span>
+<a id="line-313" name="line-313"></a>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">mod_keymap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetModifierMapping</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><span class="w"></span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">map_size</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="n">mod_keymap</span><span class="o">-&gt;</span><span class="n">max_keypermod</span><span class="p">;</span><span class="w"></span>
+<a id="line-317" name="line-317"></a>
+<a id="line-318" name="line-318"></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><span class="w"></span>
+<a id="line-319" name="line-319"></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">map_size</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></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">keycode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mod_keymap</span><span class="o">-&gt;</span><span class="n">modifiermap</span><span class="p">[</span><span class="n">i</span><span class="p">])</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-321" name="line-321"></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><span class="w"></span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span><span class="w"></span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">;</span><span class="w"></span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-326" name="line-326"></a>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">XFreeModifiermap</span><span class="w"> </span><span class="p">(</span><span class="n">mod_keymap</span><span class="p">);</span><span class="w"></span>
+<a id="line-328" name="line-328"></a>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span><span class="w"></span>
+<a id="line-330" name="line-330"></a><span class="p">}</span><span class="w"></span>
+<a id="line-331" name="line-331"></a>
+<a id="line-332" name="line-332"></a><span class="n">guint32</span><span class="w"></span>
+<a id="line-333" name="line-333"></a><span class="nf">tomboy_keybinder_get_current_event_time</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-334" name="line-334"></a><span class="p">{</span><span class="w"></span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">processing_event</span><span class="p">)</span><span class="w"> </span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">last_event_time</span><span class="p">;</span><span class="w"></span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="k">else</span><span class="w"></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">GDK_CURRENT_TIME</span><span class="p">;</span><span class="w"></span>
+<a id="line-339" name="line-339"></a><span class="p">}</span><span class="w"></span>
+</pre></div>
+</td></tr></table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<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/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/index.html b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/index.html
new file mode 100644
index 0000000..b09bd8f
--- /dev/null
+++ b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/index.html
@@ -0,0 +1,216 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-netbook</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-netbook</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>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="unreadVariable" name="unreadVariable" checked></td><td>6</td><td>unreadVariable</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameter" name="constParameter" checked></td><td>1</td><td>constParameter</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="duplicateExpression" name="duplicateExpression" checked></td><td>1</td><td>duplicateExpression</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="knownConditionTrueFalse" name="knownConditionTrueFalse" checked></td><td>1</td><td>knownConditionTrueFalse</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>1</td><td>missingIncludeSystem</td></tr>
+ <tr><td></td><td>10</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="5.html"></a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Cppcheck cannot find all the include files (use --check-config for details)</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html">maximus/eggaccelerators.c</a></td></tr>
+ <tr class="duplicateExpression sev_style issue"><td><a href="0.html#line-322">322</a></td><td>duplicateExpression</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Same expression on both sides of &apos;-=&apos;.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="1.html">maximus/main.c</a></td></tr>
+ <tr class="unreadVariable sev_style issue"><td><a href="1.html#line-96">96</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable &apos;app&apos; is assigned a value that is never used.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="2.html">maximus/maximus-app.c</a></td></tr>
+ <tr class="knownConditionTrueFalse sev_style issue"><td><a href="2.html#line-124">124</a></td><td>knownConditionTrueFalse</td><td><a href="https://cwe.mitre.org/data/definitions/571.html">571</a></td><td>style</td><td>Condition &apos;data&apos; is always true</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="3.html">maximus/maximus-bind.c</a></td></tr>
+ <tr class="unreadVariable sev_style issue"><td><a href="3.html#line-144">144</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable &apos;display&apos; is assigned a value that is never used.</td></tr>
+ <tr class="unreadVariable sev_style issue"><td><a href="3.html#line-203">203</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable &apos;priv&apos; is assigned a value that is never used.</td></tr>
+ <tr class="unreadVariable sev_style issue"><td><a href="3.html#line-218">218</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable &apos;display&apos; is assigned a value that is never used.</td></tr>
+ <tr class="unreadVariable sev_style issue"><td><a href="3.html#line-276">276</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable &apos;priv&apos; is assigned a value that is never used.</td></tr>
+ <tr class="unreadVariable sev_style issue"><td><a href="3.html#line-400">400</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable &apos;priv&apos; is assigned a value that is never used.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="4.html">maximus/tomboykeybinder.c</a></td></tr>
+ <tr class="constParameter sev_style issue"><td><a href="4.html#line-282">282</a></td><td>constParameter</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;handler&apos; can be declared with const</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<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/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/stats.html b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/stats.html
new file mode 100644
index 0000000..5bd0965
--- /dev/null
+++ b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/stats.html
@@ -0,0 +1,171 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-netbook</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-netbook: 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 style severity, total findings: 9</span><br>
+&#160;&#160;&#160;5&#160;<a href="3.html"> maximus/maximus-bind.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="4.html"> maximus/tomboykeybinder.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="2.html"> maximus/maximus-app.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="1.html"> maximus/main.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> maximus/eggaccelerators.c</a><br>
+</p>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<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/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/style.css b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2022-11-11-180332-3296-cppcheck@6a7e6a9ee214_master/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;
+}