diff options
author | raveit65 (via Travis CI) <[email protected]> | 2024-02-14 00:09:13 +0000 |
---|---|---|
committer | raveit65 (via Travis CI) <[email protected]> | 2024-02-14 00:09:13 +0000 |
commit | 30fe652caeb61c41de256d94f9d5b264bd8e6152 (patch) | |
tree | 6705406ff73ba02118df3b373af0440096ef94f5 /2023-09-15-213256-2422-cppcheck@e75323cd4a24_master | |
download | eom-gh-pages.tar.bz2 eom-gh-pages.tar.xz |
Deploy mate-desktop/eom to github.com/mate-desktop/eom.git:gh-pagesgh-pages
Diffstat (limited to '2023-09-15-213256-2422-cppcheck@e75323cd4a24_master')
37 files changed, 70313 insertions, 0 deletions
diff --git a/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/0.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/0.html new file mode 100644 index 0000000..a3437c0 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/0.html @@ -0,0 +1,3893 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: cut-n-paste/toolbar-editor/egg-editable-toolbar.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> egg-editable-toolbar.c</p> +<a href="0.html#line-82"> unknownMacro 82</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span> +<span class="normal">1125</span> +<span class="normal">1126</span> +<span class="normal">1127</span> +<span class="normal">1128</span> +<span class="normal">1129</span> +<span class="normal">1130</span> +<span class="normal">1131</span> +<span class="normal">1132</span> +<span class="normal">1133</span> +<span class="normal">1134</span> +<span class="normal">1135</span> +<span class="normal">1136</span> +<span class="normal">1137</span> +<span class="normal">1138</span> +<span class="normal">1139</span> +<span class="normal">1140</span> +<span class="normal">1141</span> +<span class="normal">1142</span> +<span class="normal">1143</span> +<span class="normal">1144</span> +<span class="normal">1145</span> +<span class="normal">1146</span> +<span class="normal">1147</span> +<span class="normal">1148</span> +<span class="normal">1149</span> +<span class="normal">1150</span> +<span class="normal">1151</span> +<span class="normal">1152</span> +<span class="normal">1153</span> +<span class="normal">1154</span> +<span class="normal">1155</span> +<span class="normal">1156</span> +<span class="normal">1157</span> +<span class="normal">1158</span> +<span class="normal">1159</span> +<span class="normal">1160</span> +<span class="normal">1161</span> +<span class="normal">1162</span> +<span class="normal">1163</span> +<span class="normal">1164</span> +<span class="normal">1165</span> +<span class="normal">1166</span> +<span class="normal">1167</span> +<span class="normal">1168</span> +<span class="normal">1169</span> +<span class="normal">1170</span> +<span class="normal">1171</span> +<span class="normal">1172</span> +<span class="normal">1173</span> +<span class="normal">1174</span> +<span class="normal">1175</span> +<span class="normal">1176</span> +<span class="normal">1177</span> +<span class="normal">1178</span> +<span class="normal">1179</span> +<span class="normal">1180</span> +<span class="normal">1181</span> +<span class="normal">1182</span> +<span class="normal">1183</span> +<span class="normal">1184</span> +<span class="normal">1185</span> +<span class="normal">1186</span> +<span class="normal">1187</span> +<span class="normal">1188</span> +<span class="normal">1189</span> +<span class="normal">1190</span> +<span class="normal">1191</span> +<span class="normal">1192</span> +<span class="normal">1193</span> +<span class="normal">1194</span> +<span class="normal">1195</span> +<span class="normal">1196</span> +<span class="normal">1197</span> +<span class="normal">1198</span> +<span class="normal">1199</span> +<span class="normal">1200</span> +<span class="normal">1201</span> +<span class="normal">1202</span> +<span class="normal">1203</span> +<span class="normal">1204</span> +<span class="normal">1205</span> +<span class="normal">1206</span> +<span class="normal">1207</span> +<span class="normal">1208</span> +<span class="normal">1209</span> +<span class="normal">1210</span> +<span class="normal">1211</span> +<span class="normal">1212</span> +<span class="normal">1213</span> +<span class="normal">1214</span> +<span class="normal">1215</span> +<span class="normal">1216</span> +<span class="normal">1217</span> +<span class="normal">1218</span> +<span class="normal">1219</span> +<span class="normal">1220</span> +<span class="normal">1221</span> +<span class="normal">1222</span> +<span class="normal">1223</span> +<span class="normal">1224</span> +<span class="normal">1225</span> +<span class="normal">1226</span> +<span class="normal">1227</span> +<span class="normal">1228</span> +<span class="normal">1229</span> +<span class="normal">1230</span> +<span class="normal">1231</span> +<span class="normal">1232</span> +<span class="normal">1233</span> +<span class="normal">1234</span> +<span class="normal">1235</span> +<span class="normal">1236</span> +<span class="normal">1237</span> +<span class="normal">1238</span> +<span class="normal">1239</span> +<span class="normal">1240</span> +<span class="normal">1241</span> +<span class="normal">1242</span> +<span class="normal">1243</span> +<span class="normal">1244</span> +<span class="normal">1245</span> +<span class="normal">1246</span> +<span class="normal">1247</span> +<span class="normal">1248</span> +<span class="normal">1249</span> +<span class="normal">1250</span> +<span class="normal">1251</span> +<span class="normal">1252</span> +<span class="normal">1253</span> +<span class="normal">1254</span> +<span class="normal">1255</span> +<span class="normal">1256</span> +<span class="normal">1257</span> +<span class="normal">1258</span> +<span class="normal">1259</span> +<span class="normal">1260</span> +<span class="normal">1261</span> +<span class="normal">1262</span> +<span class="normal">1263</span> +<span class="normal">1264</span> +<span class="normal">1265</span> +<span class="normal">1266</span> +<span class="normal">1267</span> +<span class="normal">1268</span> +<span class="normal">1269</span> +<span class="normal">1270</span> +<span class="normal">1271</span> +<span class="normal">1272</span> +<span class="normal">1273</span> +<span class="normal">1274</span> +<span class="normal">1275</span> +<span class="normal">1276</span> +<span class="normal">1277</span> +<span class="normal">1278</span> +<span class="normal">1279</span> +<span class="normal">1280</span> +<span class="normal">1281</span> +<span class="normal">1282</span> +<span class="normal">1283</span> +<span class="normal">1284</span> +<span class="normal">1285</span> +<span class="normal">1286</span> +<span class="normal">1287</span> +<span class="normal">1288</span> +<span class="normal">1289</span> +<span class="normal">1290</span> +<span class="normal">1291</span> +<span class="normal">1292</span> +<span class="normal">1293</span> +<span class="normal">1294</span> +<span class="normal">1295</span> +<span class="normal">1296</span> +<span class="normal">1297</span> +<span class="normal">1298</span> +<span class="normal">1299</span> +<span class="normal">1300</span> +<span class="normal">1301</span> +<span class="normal">1302</span> +<span class="normal">1303</span> +<span class="normal">1304</span> +<span class="normal">1305</span> +<span class="normal">1306</span> +<span class="normal">1307</span> +<span class="normal">1308</span> +<span class="normal">1309</span> +<span class="normal">1310</span> +<span class="normal">1311</span> +<span class="normal">1312</span> +<span class="normal">1313</span> +<span class="normal">1314</span> +<span class="normal">1315</span> +<span class="normal">1316</span> +<span class="normal">1317</span> +<span class="normal">1318</span> +<span class="normal">1319</span> +<span class="normal">1320</span> +<span class="normal">1321</span> +<span class="normal">1322</span> +<span class="normal">1323</span> +<span class="normal">1324</span> +<span class="normal">1325</span> +<span class="normal">1326</span> +<span class="normal">1327</span> +<span class="normal">1328</span> +<span class="normal">1329</span> +<span class="normal">1330</span> +<span class="normal">1331</span> +<span class="normal">1332</span> +<span class="normal">1333</span> +<span class="normal">1334</span> +<span class="normal">1335</span> +<span class="normal">1336</span> +<span class="normal">1337</span> +<span class="normal">1338</span> +<span class="normal">1339</span> +<span class="normal">1340</span> +<span class="normal">1341</span> +<span class="normal">1342</span> +<span class="normal">1343</span> +<span class="normal">1344</span> +<span class="normal">1345</span> +<span class="normal">1346</span> +<span class="normal">1347</span> +<span class="normal">1348</span> +<span class="normal">1349</span> +<span class="normal">1350</span> +<span class="normal">1351</span> +<span class="normal">1352</span> +<span class="normal">1353</span> +<span class="normal">1354</span> +<span class="normal">1355</span> +<span class="normal">1356</span> +<span class="normal">1357</span> +<span class="normal">1358</span> +<span class="normal">1359</span> +<span class="normal">1360</span> +<span class="normal">1361</span> +<span class="normal">1362</span> +<span class="normal">1363</span> +<span class="normal">1364</span> +<span class="normal">1365</span> +<span class="normal">1366</span> +<span class="normal">1367</span> +<span class="normal">1368</span> +<span class="normal">1369</span> +<span class="normal">1370</span> +<span class="normal">1371</span> +<span class="normal">1372</span> +<span class="normal">1373</span> +<span class="normal">1374</span> +<span class="normal">1375</span> +<span class="normal">1376</span> +<span class="normal">1377</span> +<span class="normal">1378</span> +<span class="normal">1379</span> +<span class="normal">1380</span> +<span class="normal">1381</span> +<span class="normal">1382</span> +<span class="normal">1383</span> +<span class="normal">1384</span> +<span class="normal">1385</span> +<span class="normal">1386</span> +<span class="normal">1387</span> +<span class="normal">1388</span> +<span class="normal">1389</span> +<span class="normal">1390</span> +<span class="normal">1391</span> +<span class="normal">1392</span> +<span class="normal">1393</span> +<span class="normal">1394</span> +<span class="normal">1395</span> +<span class="normal">1396</span> +<span class="normal">1397</span> +<span class="normal">1398</span> +<span class="normal">1399</span> +<span class="normal">1400</span> +<span class="normal">1401</span> +<span class="normal">1402</span> +<span class="normal">1403</span> +<span class="normal">1404</span> +<span class="normal">1405</span> +<span class="normal">1406</span> +<span class="normal">1407</span> +<span class="normal">1408</span> +<span class="normal">1409</span> +<span class="normal">1410</span> +<span class="normal">1411</span> +<span class="normal">1412</span> +<span class="normal">1413</span> +<span class="normal">1414</span> +<span class="normal">1415</span> +<span class="normal">1416</span> +<span class="normal">1417</span> +<span class="normal">1418</span> +<span class="normal">1419</span> +<span class="normal">1420</span> +<span class="normal">1421</span> +<span class="normal">1422</span> +<span class="normal">1423</span> +<span class="normal">1424</span> +<span class="normal">1425</span> +<span class="normal">1426</span> +<span class="normal">1427</span> +<span class="normal">1428</span> +<span class="normal">1429</span> +<span class="normal">1430</span> +<span class="normal">1431</span> +<span class="normal">1432</span> +<span class="normal">1433</span> +<span class="normal">1434</span> +<span class="normal">1435</span> +<span class="normal">1436</span> +<span class="normal">1437</span> +<span class="normal">1438</span> +<span class="normal">1439</span> +<span class="normal">1440</span> +<span class="normal">1441</span> +<span class="normal">1442</span> +<span class="normal">1443</span> +<span class="normal">1444</span> +<span class="normal">1445</span> +<span class="normal">1446</span> +<span class="normal">1447</span> +<span class="normal">1448</span> +<span class="normal">1449</span> +<span class="normal">1450</span> +<span class="normal">1451</span> +<span class="normal">1452</span> +<span class="normal">1453</span> +<span class="normal">1454</span> +<span class="normal">1455</span> +<span class="normal">1456</span> +<span class="normal">1457</span> +<span class="normal">1458</span> +<span class="normal">1459</span> +<span class="normal">1460</span> +<span class="normal">1461</span> +<span class="normal">1462</span> +<span class="normal">1463</span> +<span class="normal">1464</span> +<span class="normal">1465</span> +<span class="normal">1466</span> +<span class="normal">1467</span> +<span class="normal">1468</span> +<span class="normal">1469</span> +<span class="normal">1470</span> +<span class="normal">1471</span> +<span class="normal">1472</span> +<span class="normal">1473</span> +<span class="normal">1474</span> +<span class="normal">1475</span> +<span class="normal">1476</span> +<span class="normal">1477</span> +<span class="normal">1478</span> +<span class="normal">1479</span> +<span class="normal">1480</span> +<span class="normal">1481</span> +<span class="normal">1482</span> +<span class="normal">1483</span> +<span class="normal">1484</span> +<span class="normal">1485</span> +<span class="normal">1486</span> +<span class="normal">1487</span> +<span class="normal">1488</span> +<span class="normal">1489</span> +<span class="normal">1490</span> +<span class="normal">1491</span> +<span class="normal">1492</span> +<span class="normal">1493</span> +<span class="normal">1494</span> +<span class="normal">1495</span> +<span class="normal">1496</span> +<span class="normal">1497</span> +<span class="normal">1498</span> +<span class="normal">1499</span> +<span class="normal">1500</span> +<span class="normal">1501</span> +<span class="normal">1502</span> +<span class="normal">1503</span> +<span class="normal">1504</span> +<span class="normal">1505</span> +<span class="normal">1506</span> +<span class="normal">1507</span> +<span class="normal">1508</span> +<span class="normal">1509</span> +<span class="normal">1510</span> +<span class="normal">1511</span> +<span class="normal">1512</span> +<span class="normal">1513</span> +<span class="normal">1514</span> +<span class="normal">1515</span> +<span class="normal">1516</span> +<span class="normal">1517</span> +<span class="normal">1518</span> +<span class="normal">1519</span> +<span class="normal">1520</span> +<span class="normal">1521</span> +<span class="normal">1522</span> +<span class="normal">1523</span> +<span class="normal">1524</span> +<span class="normal">1525</span> +<span class="normal">1526</span> +<span class="normal">1527</span> +<span class="normal">1528</span> +<span class="normal">1529</span> +<span class="normal">1530</span> +<span class="normal">1531</span> +<span class="normal">1532</span> +<span class="normal">1533</span> +<span class="normal">1534</span> +<span class="normal">1535</span> +<span class="normal">1536</span> +<span class="normal">1537</span> +<span class="normal">1538</span> +<span class="normal">1539</span> +<span class="normal">1540</span> +<span class="normal">1541</span> +<span class="normal">1542</span> +<span class="normal">1543</span> +<span class="normal">1544</span> +<span class="normal">1545</span> +<span class="normal">1546</span> +<span class="normal">1547</span> +<span class="normal">1548</span> +<span class="normal">1549</span> +<span class="normal">1550</span> +<span class="normal">1551</span> +<span class="normal">1552</span> +<span class="normal">1553</span> +<span class="normal">1554</span> +<span class="normal">1555</span> +<span class="normal">1556</span> +<span class="normal">1557</span> +<span class="normal">1558</span> +<span class="normal">1559</span> +<span class="normal">1560</span> +<span class="normal">1561</span> +<span class="normal">1562</span> +<span class="normal">1563</span> +<span class="normal">1564</span> +<span class="normal">1565</span> +<span class="normal">1566</span> +<span class="normal">1567</span> +<span class="normal">1568</span> +<span class="normal">1569</span> +<span class="normal">1570</span> +<span class="normal">1571</span> +<span class="normal">1572</span> +<span class="normal">1573</span> +<span class="normal">1574</span> +<span class="normal">1575</span> +<span class="normal">1576</span> +<span class="normal">1577</span> +<span class="normal">1578</span> +<span class="normal">1579</span> +<span class="normal">1580</span> +<span class="normal">1581</span> +<span class="normal">1582</span> +<span class="normal">1583</span> +<span class="normal">1584</span> +<span class="normal">1585</span> +<span class="normal">1586</span> +<span class="normal">1587</span> +<span class="normal">1588</span> +<span class="normal">1589</span> +<span class="normal">1590</span> +<span class="normal">1591</span> +<span class="normal">1592</span> +<span class="normal">1593</span> +<span class="normal">1594</span> +<span class="normal">1595</span> +<span class="normal">1596</span> +<span class="normal">1597</span> +<span class="normal">1598</span> +<span class="normal">1599</span> +<span class="normal">1600</span> +<span class="normal">1601</span> +<span class="normal">1602</span> +<span class="normal">1603</span> +<span class="normal">1604</span> +<span class="normal">1605</span> +<span class="normal">1606</span> +<span class="normal">1607</span> +<span class="normal">1608</span> +<span class="normal">1609</span> +<span class="normal">1610</span> +<span class="normal">1611</span> +<span class="normal">1612</span> +<span class="normal">1613</span> +<span class="normal">1614</span> +<span class="normal">1615</span> +<span class="normal">1616</span> +<span class="normal">1617</span> +<span class="normal">1618</span> +<span class="normal">1619</span> +<span class="normal">1620</span> +<span class="normal">1621</span> +<span class="normal">1622</span> +<span class="normal">1623</span> +<span class="normal">1624</span> +<span class="normal">1625</span> +<span class="normal">1626</span> +<span class="normal">1627</span> +<span class="normal">1628</span> +<span class="normal">1629</span> +<span class="normal">1630</span> +<span class="normal">1631</span> +<span class="normal">1632</span> +<span class="normal">1633</span> +<span class="normal">1634</span> +<span class="normal">1635</span> +<span class="normal">1636</span> +<span class="normal">1637</span> +<span class="normal">1638</span> +<span class="normal">1639</span> +<span class="normal">1640</span> +<span class="normal">1641</span> +<span class="normal">1642</span> +<span class="normal">1643</span> +<span class="normal">1644</span> +<span class="normal">1645</span> +<span class="normal">1646</span> +<span class="normal">1647</span> +<span class="normal">1648</span> +<span class="normal">1649</span> +<span class="normal">1650</span> +<span class="normal">1651</span> +<span class="normal">1652</span> +<span class="normal">1653</span> +<span class="normal">1654</span> +<span class="normal">1655</span> +<span class="normal">1656</span> +<span class="normal">1657</span> +<span class="normal">1658</span> +<span class="normal">1659</span> +<span class="normal">1660</span> +<span class="normal">1661</span> +<span class="normal">1662</span> +<span class="normal">1663</span> +<span class="normal">1664</span> +<span class="normal">1665</span> +<span class="normal">1666</span> +<span class="normal">1667</span> +<span class="normal">1668</span> +<span class="normal">1669</span> +<span class="normal">1670</span> +<span class="normal">1671</span> +<span class="normal">1672</span> +<span class="normal">1673</span> +<span class="normal">1674</span> +<span class="normal">1675</span> +<span class="normal">1676</span> +<span class="normal">1677</span> +<span class="normal">1678</span> +<span class="normal">1679</span> +<span class="normal">1680</span> +<span class="normal">1681</span> +<span class="normal">1682</span> +<span class="normal">1683</span> +<span class="normal">1684</span> +<span class="normal">1685</span> +<span class="normal">1686</span> +<span class="normal">1687</span> +<span class="normal">1688</span> +<span class="normal">1689</span> +<span class="normal">1690</span> +<span class="normal">1691</span> +<span class="normal">1692</span> +<span class="normal">1693</span> +<span class="normal">1694</span> +<span class="normal">1695</span> +<span class="normal">1696</span> +<span class="normal">1697</span> +<span class="normal">1698</span> +<span class="normal">1699</span> +<span class="normal">1700</span> +<span class="normal">1701</span> +<span class="normal">1702</span> +<span class="normal">1703</span> +<span class="normal">1704</span> +<span class="normal">1705</span> +<span class="normal">1706</span> +<span class="normal">1707</span> +<span class="normal">1708</span> +<span class="normal">1709</span> +<span class="normal">1710</span> +<span class="normal">1711</span> +<span class="normal">1712</span> +<span class="normal">1713</span> +<span class="normal">1714</span> +<span class="normal">1715</span> +<span class="normal">1716</span> +<span class="normal">1717</span> +<span class="normal">1718</span> +<span class="normal">1719</span> +<span class="normal">1720</span> +<span class="normal">1721</span> +<span class="normal">1722</span> +<span class="normal">1723</span> +<span class="normal">1724</span> +<span class="normal">1725</span> +<span class="normal">1726</span> +<span class="normal">1727</span> +<span class="normal">1728</span> +<span class="normal">1729</span> +<span class="normal">1730</span> +<span class="normal">1731</span> +<span class="normal">1732</span> +<span class="normal">1733</span> +<span class="normal">1734</span> +<span class="normal">1735</span> +<span class="normal">1736</span> +<span class="normal">1737</span> +<span class="normal">1738</span> +<span class="normal">1739</span> +<span class="normal">1740</span> +<span class="normal">1741</span> +<span class="normal">1742</span> +<span class="normal">1743</span> +<span class="normal">1744</span> +<span class="normal">1745</span> +<span class="normal">1746</span> +<span class="normal">1747</span> +<span class="normal">1748</span> +<span class="normal">1749</span> +<span class="normal">1750</span> +<span class="normal">1751</span> +<span class="normal">1752</span> +<span class="normal">1753</span> +<span class="normal">1754</span> +<span class="normal">1755</span> +<span class="normal">1756</span> +<span class="normal">1757</span> +<span class="normal">1758</span> +<span class="normal">1759</span> +<span class="normal">1760</span> +<span class="normal">1761</span> +<span class="normal">1762</span> +<span class="normal">1763</span> +<span class="normal">1764</span> +<span class="normal">1765</span> +<span class="normal">1766</span> +<span class="normal">1767</span> +<span class="normal">1768</span> +<span class="normal">1769</span> +<span class="normal">1770</span> +<span class="normal">1771</span> +<span class="normal">1772</span> +<span class="normal">1773</span> +<span class="normal">1774</span> +<span class="normal">1775</span> +<span class="normal">1776</span> +<span class="normal">1777</span> +<span class="normal">1778</span> +<span class="normal">1779</span> +<span class="normal">1780</span> +<span class="normal">1781</span> +<span class="normal">1782</span> +<span class="normal">1783</span> +<span class="normal">1784</span> +<span class="normal">1785</span> +<span class="normal">1786</span> +<span class="normal">1787</span> +<span class="normal">1788</span> +<span class="normal">1789</span> +<span class="normal">1790</span> +<span class="normal">1791</span> +<span class="normal">1792</span> +<span class="normal">1793</span> +<span class="normal">1794</span> +<span class="normal">1795</span> +<span class="normal">1796</span> +<span class="normal">1797</span> +<span class="normal">1798</span> +<span class="normal">1799</span> +<span class="normal">1800</span> +<span class="normal">1801</span> +<span class="normal">1802</span> +<span class="normal">1803</span> +<span class="normal">1804</span> +<span class="normal">1805</span> +<span class="normal">1806</span> +<span class="normal">1807</span> +<span class="normal">1808</span> +<span class="normal">1809</span> +<span class="normal">1810</span> +<span class="normal">1811</span> +<span class="normal">1812</span> +<span class="normal">1813</span> +<span class="normal">1814</span> +<span class="normal">1815</span> +<span class="normal">1816</span> +<span class="normal">1817</span> +<span class="normal">1818</span> +<span class="normal">1819</span> +<span class="normal">1820</span> +<span class="normal">1821</span> +<span class="normal">1822</span> +<span class="normal">1823</span> +<span class="normal">1824</span> +<span class="normal">1825</span> +<span class="normal">1826</span> +<span class="normal">1827</span> +<span class="normal">1828</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2003, 2004 Marco Pesenti Gritti</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2003, 2004, 2005 Christian Persch</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 as published by</span> +<a id="line-7" name="line-7"></a><span class="cm"> * the Free Software Foundation; either version 2, or (at your option)</span> +<a id="line-8" name="line-8"></a><span class="cm"> * any later version.</span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</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</span> +<a id="line-13" name="line-13"></a><span class="cm"> * GNU 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 General Public License</span> +<a id="line-16" name="line-16"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-17" name="line-17"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-18" name="line-18"></a><span class="cm"> *</span> +<a id="line-19" name="line-19"></a><span class="cm"> * $Id: egg-editable-toolbar.c 937 2009-04-07 11:16:53Z friemann $</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</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">"egg-editable-toolbar.h"</span> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"egg-toolbars-model.h"</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"egg-toolbar-editor.h"</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">new_separator_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="cp">#define MIN_TOOLBAR_HEIGHT 20</span> +<a id="line-35" name="line-35"></a><span class="cp">#define EGG_ITEM_NAME "egg-item-name"</span> +<a id="line-36" name="line-36"></a><span class="cp">#define STOCK_DRAG_MODE "stock_drag-mode"</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkTargetEntry</span><span class="w"> </span><span class="n">dest_drag_types</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="p">{</span><span class="n">EGG_TOOLBAR_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TARGET_SAME_APP</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span> +<a id="line-40" name="line-40"></a><span class="p">};</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="k">enum</span> +<a id="line-43" name="line-43"></a><span class="p">{</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">PROP_TOOLBARS_MODEL</span><span class="p">,</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PROP_UI_MANAGER</span><span class="p">,</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">PROP_POPUP_PATH</span><span class="p">,</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">PROP_SELECTED</span><span class="p">,</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">PROP_EDIT_MODE</span> +<a id="line-50" name="line-50"></a><span class="p">};</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="k">enum</span> +<a id="line-53" name="line-53"></a><span class="p">{</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">ACTION_REQUEST</span><span class="p">,</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span> +<a id="line-56" name="line-56"></a><span class="p">};</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">egg_editable_toolbar_signals</span><span class="p">[</span><span class="n">LAST_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EggEditableToolbarPrivate</span> +<a id="line-61" name="line-61"></a><span class="p">{</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">;</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">edit_mode</span><span class="p">;</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">save_hidden</span><span class="p">;</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">fixed_toolbar</span><span class="p">;</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">selected</span><span class="p">;</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">actions</span><span class="p">;</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">visibility_id</span><span class="p">;</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">visibility_paths</span><span class="p">;</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">visibility_actions</span><span class="p">;</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">popup_path</span><span class="p">;</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">dnd_pending</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">GtkToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">dnd_toolbar</span><span class="p">;</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">dnd_toolitem</span><span class="p">;</span> +<a id="line-80" name="line-80"></a><span class="p">};</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="p">,</span><span class="w"> </span><span class="n">egg_editable_toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_BOX</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-85" name="line-85"></a><span class="n">get_dock_position</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">)</span> +<a id="line-87" name="line-87"></a><span class="p">{</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></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">gtk_container_get_children</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">));</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_index</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">dock</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">);</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="p">}</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-99" name="line-99"></a><span class="n">get_toolbar_position</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">)</span> +<a id="line-100" name="line-100"></a><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">get_dock_position</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-102" name="line-102"></a><span class="p">}</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-105" name="line-105"></a><span class="n">get_n_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-106" name="line-106"></a><span class="p">{</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-109" name="line-109"></a> +<a id="line-110" name="line-110"></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">gtk_container_get_children</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">));</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">);</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-115" name="line-115"></a><span class="p">}</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-118" name="line-118"></a><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">)</span> +<a id="line-120" name="line-120"></a><span class="p">{</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_container_get_children</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">));</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_nth_data</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">);</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-129" name="line-129"></a><span class="p">}</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-132" name="line-132"></a><span class="n">get_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">)</span> +<a id="line-134" name="line-134"></a><span class="p">{</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">;</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">dock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-140" name="line-140"></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">dock</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></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">gtk_container_get_children</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">));</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">);</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="p">}</span> +<a id="line-148" name="line-148"></a> +<a id="line-149" name="line-149"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span> +<a id="line-150" name="line-150"></a><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-152" name="line-152"></a><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_action_groups</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">);</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">{</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span> +<a id="line-164" name="line-164"></a> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTION_GROUP</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-></span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">);</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">tmp</span><span class="p">)</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="p">}</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">action</span><span class="p">;</span> +<a id="line-172" name="line-172"></a><span class="p">}</span> +<a id="line-173" name="line-173"></a> +<a id="line-174" name="line-174"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-175" name="line-175"></a><span class="n">drag_data_delete_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-178" name="line-178"></a><span class="p">{</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">pos</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_pos</span><span class="p">;</span> +<a id="line-180" name="line-180"></a> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_TOOL_ITEM</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">));</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toolbar_get_item_index</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)),</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">GTK_TOOL_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">toolbar_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_position</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">egg_toolbars_model_remove_item</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">toolbar_pos</span><span class="p">,</span><span class="w"> </span><span class="n">pos</span><span class="p">);</span> +<a id="line-191" name="line-191"></a><span class="p">}</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-194" name="line-194"></a><span class="n">drag_begin_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-197" name="line-197"></a><span class="p">{</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-199" name="line-199"></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">action_name</span><span class="p">;</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-201" name="line-201"></a> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-203" name="line-203"></a> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_activatable_get_related_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTIVATABLE</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">action_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">action_name</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_INFINITE</span><span class="p">))</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="p">{</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">&=</span><span class="w"> </span><span class="o">~</span><span class="n">EGG_TB_MODEL_NAME_USED</span><span class="p">;</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">egg_toolbars_model_set_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">action_name</span><span class="p">,</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">flags</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="p">}</span> +<a id="line-221" name="line-221"></a><span class="p">}</span> +<a id="line-222" name="line-222"></a> +<a id="line-223" name="line-223"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-224" name="line-224"></a><span class="n">drag_end_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-227" name="line-227"></a><span class="p">{</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-229" name="line-229"></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">action_name</span><span class="p">;</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-231" name="line-231"></a> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="p">{</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-235" name="line-235"></a> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_activatable_get_related_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTIVATABLE</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-238" name="line-238"></a> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">action_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">);</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">action_name</span><span class="p">);</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_INFINITE</span><span class="p">))</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="p">{</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_USED</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">egg_toolbars_model_set_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">action_name</span><span class="p">,</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">flags</span><span class="p">);</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="p">}</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="p">}</span> +<a id="line-254" name="line-254"></a><span class="p">}</span> +<a id="line-255" name="line-255"></a> +<a id="line-256" name="line-256"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-257" name="line-257"></a><span class="n">drag_data_get_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection_data</span><span class="p">,</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-263" name="line-263"></a><span class="p">{</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">;</span> +<a id="line-267" name="line-267"></a> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">));</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_editable_toolbar_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">EGG_ITEM_NAME</span><span class="p">);</span> +<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">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">{</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">name</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">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)),</span><span class="w"> </span><span class="n">EGG_ITEM_NAME</span><span class="p">);</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="p">}</span> +<a id="line-277" name="line-277"></a> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_selection_data_get_target</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="p">{</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gtk_selection_data_set</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_selection_data_get_target</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">),</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="p">}</span> +<a id="line-284" name="line-284"></a><span class="p">}</span> +<a id="line-285" name="line-285"></a> +<a id="line-286" name="line-286"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-287" name="line-287"></a><span class="n">move_item_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-289" name="line-289"></a><span class="p">{</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">egg_editable_toolbar_get_selected</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_TYPE_TOOL_ITEM</span><span class="p">);</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">GtkTargetList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_target_list_new</span><span class="w"> </span><span class="p">(</span><span class="n">dest_drag_types</span><span class="p">,</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">dest_drag_types</span><span class="p">));</span> +<a id="line-292" name="line-292"></a> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">realevent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_get_current_event</span><span class="p">();</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">GdkEventMotion</span><span class="w"> </span><span class="n">event</span><span class="p">;</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">event</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">GDK_MOTION_NOTIFY</span><span class="p">;</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">event</span><span class="p">.</span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">realevent</span><span class="o">-></span><span class="n">any</span><span class="p">.</span><span class="n">window</span><span class="p">;</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">event</span><span class="p">.</span><span class="n">send_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">event</span><span class="p">.</span><span class="n">axes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">event</span><span class="p">.</span><span class="n">time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_event_get_time</span><span class="w"> </span><span class="p">(</span><span class="n">realevent</span><span class="p">);</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">gdk_event_get_state</span><span class="w"> </span><span class="p">(</span><span class="n">realevent</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">event</span><span class="p">.</span><span class="n">state</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">gdk_event_get_coords</span><span class="w"> </span><span class="p">(</span><span class="n">realevent</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">event</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">event</span><span class="p">.</span><span class="n">y</span><span class="p">);</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">gdk_event_get_root_coords</span><span class="w"> </span><span class="p">(</span><span class="n">realevent</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">event</span><span class="p">.</span><span class="n">x_root</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">event</span><span class="p">.</span><span class="n">y_root</span><span class="p">);</span> +<a id="line-303" name="line-303"></a> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gtk_drag_begin_with_coordinates</span><span class="w"> </span><span class="p">(</span><span class="n">toolitem</span><span class="p">,</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">list</span><span class="p">,</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="p">,</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="p">(</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="o">&</span><span class="n">event</span><span class="p">,</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">event</span><span class="p">.</span><span class="n">x</span><span class="p">,</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">event</span><span class="p">.</span><span class="n">y</span><span class="p">);</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_target_list_unref</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="p">}</span> +<a id="line-313" name="line-313"></a> +<a id="line-314" name="line-314"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-315" name="line-315"></a><span class="n">remove_item_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-317" name="line-317"></a><span class="p">{</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">egg_editable_toolbar_get_selected</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_TYPE_TOOL_ITEM</span><span class="p">);</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">pos</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_pos</span><span class="p">;</span> +<a id="line-320" name="line-320"></a> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">toolbar_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_position</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">toolitem</span><span class="p">));</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toolbar_get_item_index</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">toolitem</span><span class="p">)),</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">GTK_TOOL_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">toolitem</span><span class="p">));</span> +<a id="line-324" name="line-324"></a> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">egg_toolbars_model_remove_item</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">toolbar_pos</span><span class="p">,</span><span class="w"> </span><span class="n">pos</span><span class="p">);</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">egg_toolbars_model_n_items</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_pos</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">{</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">egg_toolbars_model_remove_toolbar</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_pos</span><span class="p">);</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="p">}</span> +<a id="line-332" name="line-332"></a><span class="p">}</span> +<a id="line-333" name="line-333"></a> +<a id="line-334" name="line-334"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-335" name="line-335"></a><span class="n">remove_toolbar_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-337" name="line-337"></a><span class="p">{</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_editable_toolbar_get_selected</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">selected</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_TOOLBAR</span><span class="p">);</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_pos</span><span class="p">;</span> +<a id="line-341" name="line-341"></a> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">toolbar_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_position</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">egg_toolbars_model_remove_toolbar</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_pos</span><span class="p">);</span> +<a id="line-344" name="line-344"></a><span class="p">}</span> +<a id="line-345" name="line-345"></a> +<a id="line-346" name="line-346"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-347" name="line-347"></a><span class="n">popup_context_deactivate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuShell</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">,</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-349" name="line-349"></a><span class="p">{</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_selected</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="s">"selected"</span><span class="p">);</span> +<a id="line-352" name="line-352"></a><span class="p">}</span> +<a id="line-353" name="line-353"></a> +<a id="line-354" name="line-354"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-355" name="line-355"></a><span class="n">popup_context_menu_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">button_number</span><span class="p">,</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-360" name="line-360"></a><span class="p">{</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">popup_path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="p">{</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">GtkMenu</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_selected</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="s">"selected"</span><span class="p">);</span> +<a id="line-367" name="line-367"></a> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">,</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">popup_path</span><span class="p">));</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="s">"selection-done"</span><span class="p">,</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">popup_context_deactivate</span><span class="p">),</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="p">}</span> +<a id="line-376" name="line-376"></a><span class="p">}</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-379" name="line-379"></a><span class="n">button_press_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-382" name="line-382"></a><span class="p">{</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">popup_path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="p">{</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">GtkMenu</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_selected</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">widget</span><span class="p">);</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="s">"selected"</span><span class="p">);</span> +<a id="line-389" name="line-389"></a> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">,</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">popup_path</span><span class="p">));</span> +<a id="line-392" name="line-392"></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">menu</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkEvent</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="s">"selection-done"</span><span class="p">,</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">popup_context_deactivate</span><span class="p">),</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-397" name="line-397"></a> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="p">}</span> +<a id="line-400" name="line-400"></a> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-402" name="line-402"></a><span class="p">}</span> +<a id="line-403" name="line-403"></a> +<a id="line-404" name="line-404"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-405" name="line-405"></a><span class="n">configure_item_sensitivity</span><span class="w"> </span><span class="p">(</span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-406" name="line-406"></a><span class="p">{</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-409" name="line-409"></a> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_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">item</span><span class="p">),</span><span class="w"> </span><span class="n">EGG_ITEM_NAME</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">)</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="p">{</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="s">"sensitive"</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="p">}</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">gtk_tool_item_set_use_drag_window</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">GTK_IS_SEPARATOR_TOOL_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">));</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="p">}</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-425" name="line-425"></a><span class="n">configure_item_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-427" name="line-427"></a><span class="p">{</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-430" name="line-430"></a> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="p">{</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="p">{</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">GdkCursor</span><span class="w"> </span><span class="o">*</span><span class="n">cursor</span><span class="p">;</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-438" name="line-438"></a> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">));</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cursor_new_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">GDK_HAND2</span><span class="p">);</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">gdk_window_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">cursor</span><span class="p">);</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">cursor</span><span class="p">);</span> +<a id="line-445" name="line-445"></a> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">gtk_drag_source_set</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_BUTTON1_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">dest_drag_types</span><span class="p">,</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">dest_drag_types</span><span class="p">),</span><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="p">);</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_SEPARATOR_TOOL_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">))</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="p">{</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_separator_pixbuf</span><span class="w"> </span><span class="p">();</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">}</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">else</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="p">{</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="o">=</span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">stock_id</span><span class="o">=</span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-458" name="line-458"></a> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">EGG_ITEM_NAME</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-461" name="line-461"></a> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">)</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="p">{</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">g_object_get</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="s">"icon-name"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="s">"stock-id"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">stock_id</span><span class="p">,</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="p">}</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">icon_name</span><span class="p">)</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">{</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">GtkIconTheme</span><span class="w"> </span><span class="o">*</span><span class="n">icon_theme</span><span class="p">;</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-473" name="line-473"></a> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">icon_theme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_get_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span> +<a id="line-475" name="line-475"></a> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_icon_size_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_SIZE_LARGE_TOOLBAR</span><span class="p">,</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">))</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">{</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">24</span><span class="p">;</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="p">}</span> +<a id="line-481" name="line-481"></a> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_load_icon</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="p">,</span><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="p">}</span> +<a id="line-485" name="line-485"></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">stock_id</span><span class="p">)</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="p">{</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_render_icon</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">stock_id</span><span class="p">,</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_LARGE_TOOLBAR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="p">}</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">icon_name</span><span class="p">);</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">stock_id</span><span class="p">);</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="p">}</span> +<a id="line-493" name="line-493"></a> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">))</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="p">{</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="p">}</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">gtk_drag_source_set_icon_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-500" name="line-500"></a> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="p">}</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="k">else</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="p">{</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">gdk_window_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">item</span><span class="p">)),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="p">}</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="p">}</span> +<a id="line-507" name="line-507"></a><span class="p">}</span> +<a id="line-508" name="line-508"></a> +<a id="line-509" name="line-509"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-510" name="line-510"></a><span class="n">configure_item_tooltip</span><span class="w"> </span><span class="p">(</span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span> +<a id="line-511" name="line-511"></a><span class="p">{</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-513" name="line-513"></a> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_activatable_get_related_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTIVATABLE</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">));</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-517" name="line-517"></a> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="p">{</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="s">"tooltip"</span><span class="p">);</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="p">}</span> +<a id="line-522" name="line-522"></a><span class="p">}</span> +<a id="line-523" name="line-523"></a> +<a id="line-524" name="line-524"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-525" name="line-525"></a><span class="n">connect_widget_signals</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-526" name="line-526"></a><span class="p">{</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">))</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="p">{</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">gtk_container_forall</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">),</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="p">(</span><span class="n">GtkCallback</span><span class="p">)</span><span class="w"> </span><span class="n">connect_widget_signals</span><span class="p">,</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="p">}</span> +<a id="line-533" name="line-533"></a> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_TOOL_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">))</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="p">{</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_begin"</span><span class="p">,</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">drag_begin_cb</span><span class="p">),</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_end"</span><span class="p">,</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">drag_end_cb</span><span class="p">),</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_data_get"</span><span class="p">,</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">drag_data_get_cb</span><span class="p">),</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_data_delete"</span><span class="p">,</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">drag_data_delete_cb</span><span class="p">),</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="p">}</span> +<a id="line-549" name="line-549"></a> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">GTK_IS_TOOL_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">))</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="p">{</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="s">"button-press-event"</span><span class="p">,</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">button_press_event_cb</span><span class="p">),</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="p">}</span> +<a id="line-556" name="line-556"></a><span class="p">}</span> +<a id="line-557" name="line-557"></a> +<a id="line-558" name="line-558"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-559" name="line-559"></a><span class="n">action_sensitive_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">,</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span> +<a id="line-562" name="line-562"></a><span class="p">{</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">;</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">ancestor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="n">EGG_TYPE_EDITABLE_TOOLBAR</span><span class="p">);</span> +<a id="line-565" name="line-565"></a> +<a id="line-566" name="line-566"></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">ancestor</span><span class="p">)</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">etoolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">ancestor</span><span class="p">);</span> +<a id="line-570" name="line-570"></a> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="p">{</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="p">}</span> +<a id="line-575" name="line-575"></a><span class="p">}</span> +<a id="line-576" name="line-576"></a> +<a id="line-577" name="line-577"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span> +<a id="line-578" name="line-578"></a><span class="n">create_item_from_action</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-580" name="line-580"></a><span class="p">{</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-582" name="line-582"></a> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-584" name="line-584"></a> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"_separator"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="p">{</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_separator_tool_item_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="p">}</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="k">else</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="p">{</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-593" name="line-593"></a> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TOOL_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_action_create_tool_item</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">));</span> +<a id="line-596" name="line-596"></a> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="cm">/* Normally done on-demand by the GtkUIManager, but no</span> +<a id="line-598" name="line-598"></a><span class="cm"> * such demand may have been made yet, so do it ourselves.</span> +<a id="line-599" name="line-599"></a><span class="cm"> */</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">gtk_action_set_accel_group</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_ui_manager_get_accel_group</span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">));</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-603" name="line-603"></a> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::sensitive"</span><span class="p">,</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">action_sensitive_cb</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="p">}</span> +<a id="line-607" name="line-607"></a> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">));</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">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">item</span><span class="p">),</span><span class="w"> </span><span class="n">EGG_ITEM_NAME</span><span class="p">,</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">),</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-612" name="line-612"></a> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="p">;</span> +<a id="line-614" name="line-614"></a><span class="p">}</span> +<a id="line-615" name="line-615"></a> +<a id="line-616" name="line-616"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span> +<a id="line-617" name="line-617"></a><span class="n">create_item_from_position</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">)</span> +<a id="line-620" name="line-620"></a><span class="p">{</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-623" name="line-623"></a> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_item_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_item_from_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-626" name="line-626"></a> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="p">;</span> +<a id="line-628" name="line-628"></a><span class="p">}</span> +<a id="line-629" name="line-629"></a> +<a id="line-630" name="line-630"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-631" name="line-631"></a><span class="n">toolbar_drag_data_received_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection_data</span><span class="p">,</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-639" name="line-639"></a><span class="p">{</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="cm">/* This function can be called for two reasons</span> +<a id="line-641" name="line-641"></a><span class="cm"> *</span> +<a id="line-642" name="line-642"></a><span class="cm"> * (1) drag_motion() needs an item to pass to</span> +<a id="line-643" name="line-643"></a><span class="cm"> * gtk_toolbar_set_drop_highlight_item(). We can</span> +<a id="line-644" name="line-644"></a><span class="cm"> * recognize this case by etoolbar->priv->pending being TRUE</span> +<a id="line-645" name="line-645"></a><span class="cm"> * We should just create an item and return.</span> +<a id="line-646" name="line-646"></a><span class="cm"> *</span> +<a id="line-647" name="line-647"></a><span class="cm"> * (2) The drag has finished, and drag_drop() wants us to</span> +<a id="line-648" name="line-648"></a><span class="cm"> * actually add a new item to the toolbar.</span> +<a id="line-649" name="line-649"></a><span class="cm"> */</span> +<a id="line-650" name="line-650"></a> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">GdkAtom</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">gtk_selection_data_get_data_type</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">);</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">gtk_selection_data_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">);</span> +<a id="line-653" name="line-653"></a> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ipos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="cm">/* Find out where the drop is occurring, and the name of what is being dropped. */</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_selection_data_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">)</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="p">{</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">ipos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toolbar_get_drop_index</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="p">{</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">egg_toolbars_model_get_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_USED</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="p">}</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="p">}</span> +<a id="line-668" name="line-668"></a> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="cm">/* If we just want a highlight item, then . */</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_pending</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="p">{</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_pending</span><span class="o">--</span><span class="p">;</span> +<a id="line-673" name="line-673"></a> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">used</span><span class="p">)</span> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="p">{</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_item_from_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">gtk_toolbar_set_drop_highlight_item</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="p">,</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolitem</span><span class="p">,</span><span class="w"> </span><span class="n">ipos</span><span class="p">);</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="p">}</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="p">}</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="k">else</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="p">{</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">gtk_toolbar_set_drop_highlight_item</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-686" name="line-686"></a> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="cm">/* If we don't have a name to use yet, try to create one. */</span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">gtk_selection_data_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">)</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="p">{</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="p">}</span> +<a id="line-692" name="line-692"></a> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">used</span><span class="p">)</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="p">{</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">tpos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_position</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">egg_toolbars_model_add_item</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">tpos</span><span class="p">,</span><span class="w"> </span><span class="n">ipos</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">gtk_drag_finish</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">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_drag_context_get_selected_action</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">==</span><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="p">,</span><span class="w"> </span><span class="n">time</span><span class="p">);</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="p">}</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="k">else</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="p">{</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">gtk_drag_finish</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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_drag_context_get_selected_action</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">==</span><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="p">,</span><span class="w"> </span><span class="n">time</span><span class="p">);</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="p">}</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="p">}</span> +<a id="line-704" name="line-704"></a> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-706" name="line-706"></a><span class="p">}</span> +<a id="line-707" name="line-707"></a> +<a id="line-708" name="line-708"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-709" name="line-709"></a><span class="n">toolbar_drag_drop_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span> +<a id="line-710" name="line-710"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-715" name="line-715"></a><span class="p">{</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">GdkAtom</span><span class="w"> </span><span class="n">target</span><span class="p">;</span> +<a id="line-717" name="line-717"></a> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">target</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_drag_dest_find_target</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GDK_NONE</span><span class="p">)</span> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="p">{</span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">gtk_drag_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">time</span><span class="p">);</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="p">}</span> +<a id="line-724" name="line-724"></a> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-726" name="line-726"></a><span class="p">}</span> +<a id="line-727" name="line-727"></a> +<a id="line-728" name="line-728"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-729" name="line-729"></a><span class="n">toolbar_drag_motion_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-735" name="line-735"></a><span class="p">{</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">GdkAtom</span><span class="w"> </span><span class="n">target</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_drag_dest_find_target</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_NONE</span><span class="p">)</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="p">{</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">gdk_drag_status</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">time</span><span class="p">);</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="p">}</span> +<a id="line-742" name="line-742"></a> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="cm">/* Make ourselves the current dnd toolbar, and request a highlight item. */</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">toolbar</span><span class="p">)</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="p">{</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_pending</span><span class="o">++</span><span class="p">;</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="n">gtk_drag_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">time</span><span class="p">);</span> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="p">}</span> +<a id="line-751" name="line-751"></a> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="cm">/* If a highlight item is available, use it. */</span> +<a id="line-753" name="line-753"></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">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolitem</span><span class="p">)</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="p">{</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ipos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toolbar_get_drop_index</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">gtk_toolbar_set_drop_highlight_item</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="p">,</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolitem</span><span class="p">,</span><span class="w"> </span><span class="n">ipos</span><span class="p">);</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="p">}</span> +<a id="line-759" name="line-759"></a> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">gdk_drag_status</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">gdk_drag_context_get_suggested_action</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">time</span><span class="p">);</span> +<a id="line-761" name="line-761"></a> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-763" name="line-763"></a><span class="p">}</span> +<a id="line-764" name="line-764"></a> +<a id="line-765" name="line-765"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-766" name="line-766"></a><span class="n">toolbar_drag_leave_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-770" name="line-770"></a><span class="p">{</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">gtk_toolbar_set_drop_highlight_item</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-772" name="line-772"></a> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="cm">/* If we were the current dnd toolbar target, remove the item. */</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">toolbar</span><span class="p">)</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="p">{</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">dnd_toolitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="p">}</span> +<a id="line-779" name="line-779"></a><span class="p">}</span> +<a id="line-780" name="line-780"></a> +<a id="line-781" name="line-781"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-782" name="line-782"></a><span class="n">configure_drag_dest</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">GtkToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">)</span> +<a id="line-784" name="line-784"></a><span class="p">{</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">EggToolbarsItemType</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="p">;</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">GtkTargetList</span><span class="w"> </span><span class="o">*</span><span class="n">targets</span><span class="p">;</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span> +<a id="line-788" name="line-788"></a> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="cm">/* Make every toolbar able to receive drag-drops. */</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">gtk_drag_dest_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">dest_drag_types</span><span class="p">,</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">dest_drag_types</span><span class="p">),</span> +<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="p">);</span> +<a id="line-793" name="line-793"></a> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="cm">/* Add any specialist drag-drop abilities. */</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">targets</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_drag_dest_get_target_list</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_types</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">)</span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="p">{</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-800" name="line-800"></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="o">-></span><span class="n">new_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="o">-></span><span class="n">get_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">gtk_target_list_add</span><span class="w"> </span><span class="p">(</span><span class="n">targets</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="o">-></span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-></span><span class="n">next</span><span class="p">;</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="p">}</span> +<a id="line-804" name="line-804"></a><span class="p">}</span> +<a id="line-805" name="line-805"></a> +<a id="line-806" name="line-806"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-807" name="line-807"></a><span class="n">toggled_visibility_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkToggleAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-809" name="line-809"></a><span class="p">{</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">;</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="n">EggTbModelFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">;</span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-815" name="line-815"></a> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_action_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">);</span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-819" name="line-819"></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"><</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="o">-></span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ptr_array_index</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">action</span><span class="p">)</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-822" name="line-822"></a> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="o">-></span><span class="n">len</span><span class="p">);</span> +<a id="line-824" name="line-824"></a> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">dock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">visible</span><span class="p">)</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="p">{</span> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">);</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="p">}</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="k">else</span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="p">{</span> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">);</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="p">}</span> +<a id="line-834" name="line-834"></a> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">save_hidden</span><span class="p">)</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="p">{</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-838" name="line-838"></a> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">visible</span><span class="p">)</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="p">{</span> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">&=</span><span class="w"> </span><span class="o">~</span><span class="p">(</span><span class="n">EGG_TB_MODEL_HIDDEN</span><span class="p">);</span> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="p">}</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="k">else</span> +<a id="line-844" name="line-844"></a><span class="w"> </span><span class="p">{</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TB_MODEL_HIDDEN</span><span class="p">);</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="p">}</span> +<a id="line-847" name="line-847"></a> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">egg_toolbars_model_set_flags</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">);</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="p">}</span> +<a id="line-850" name="line-850"></a><span class="p">}</span> +<a id="line-851" name="line-851"></a> +<a id="line-852" name="line-852"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-853" name="line-853"></a><span class="n">toolbar_visibility_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-854" name="line-854"></a><span class="p">{</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">n_items</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">k</span><span class="p">;</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">GtkToggleAction</span><span class="w"> </span><span class="o">*</span><span class="n">toggle_action</span><span class="p">;</span> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">;</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">showing</span><span class="p">;</span> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">action_name</span><span class="p">[</span><span class="mi">40</span><span class="p">];</span> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">action_label</span><span class="p">;</span> +<a id="line-863" name="line-863"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span> +<a id="line-864" name="line-864"></a> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</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">priv</span><span class="o">-></span><span class="n">model</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">priv</span><span class="o">-></span><span class="n">manager</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_paths</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">priv</span><span class="o">-></span><span class="n">actions</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="p">{</span> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="p">}</span> +<a id="line-870" name="line-870"></a> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="p">{</span> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="p">}</span> +<a id="line-875" name="line-875"></a> +<a id="line-876" name="line-876"></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">-></span><span class="n">visibility_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="p">{</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">gtk_ui_manager_remove_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_id</span><span class="p">);</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="p">}</span> +<a id="line-880" name="line-880"></a> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_new_merge_id</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">);</span> +<a id="line-882" name="line-882"></a> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">showing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">));</span> +<a id="line-884" name="line-884"></a> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">n_toolbars</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_n_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-886" name="line-886"></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"><</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="p">{</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_sized_new</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">n_items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_n_items</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">k</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">n_items</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="p">{</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="p">};</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-895" name="line-895"></a> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_item_nth</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">);</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-900" name="line-900"></a> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">g_value_init</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">);</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">g_object_get_property</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">action</span><span class="p">),</span><span class="w"> </span><span class="s">"label"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_string</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="p">{</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">g_value_unset</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="p">}</span> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">k</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">g_utf8_strlen</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="p">{</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">", "</span><span class="p">);</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">k</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">25</span><span class="p">)</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="p">{</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">g_value_unset</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="p">}</span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="p">}</span> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="n">g_value_unset</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="p">}</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">n_items</span><span class="p">)</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="p">{</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">" ..."</span><span class="p">);</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="p">}</span> +<a id="line-926" name="line-926"></a> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">k</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">tmp</span><span class="p">[</span><span class="n">j</span><span class="p">];</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="p">{</span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</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="sc">'_'</span><span class="p">)</span><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">tmp</span><span class="p">[</span><span class="n">k</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">[</span><span class="n">j</span><span class="p">];</span> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">k</span><span class="o">++</span><span class="p">;</span> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="p">}</span> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">tmp</span><span class="p">[</span><span class="n">k</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="cm">/* Translaters: This string is for a toggle to display a toolbar.</span> +<a id="line-936" name="line-936"></a><span class="cm"> * The name of the toolbar is automatically computed from the widgets</span> +<a id="line-937" name="line-937"></a><span class="cm"> * on the toolbar, and is placed at the %s. Note the _ before the %s</span> +<a id="line-938" name="line-938"></a><span class="cm"> * which is used to add mnemonics. We know that this is likely to</span> +<a id="line-939" name="line-939"></a><span class="cm"> * produce duplicates, but don't worry about it. If your language</span> +<a id="line-940" name="line-940"></a><span class="cm"> * normally has a mnemonic at the start, please use the _. If not,</span> +<a id="line-941" name="line-941"></a><span class="cm"> * please remove. */</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">action_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Show “_%s”"</span><span class="p">),</span><span class="w"> </span><span class="n">tmp</span><span class="p">);</span> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-944" name="line-944"></a> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">sprintf</span><span class="p">(</span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ToolbarToggle%d"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-946" name="line-946"></a> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="o">-></span><span class="n">len</span><span class="p">)</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="p">{</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">toggle_action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_action_new</span><span class="w"> </span><span class="p">(</span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="n">action_label</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="p">,</span><span class="w"> </span><span class="n">toggle_action</span><span class="p">);</span> +<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_action</span><span class="p">,</span><span class="w"> </span><span class="s">"toggled"</span><span class="p">,</span> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toggled_visibility_cb</span><span class="p">),</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">gtk_action_group_add_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_action</span><span class="p">));</span> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-959" name="line-959"></a><span class="w"> </span><span class="p">}</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="k">else</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="p">{</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">toggle_action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_index</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_action</span><span class="p">,</span><span class="w"> </span><span class="s">"label"</span><span class="p">,</span><span class="w"> </span><span class="n">action_label</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="p">}</span> +<a id="line-965" name="line-965"></a> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">gtk_action_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_action</span><span class="p">),</span> +<a id="line-968" name="line-968"></a><span class="w"> </span><span class="p">(</span><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">)</span> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NOT_REMOVABLE</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_action</span><span class="p">),</span><span class="w"> </span><span class="n">showing</span><span class="p">);</span> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_action</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="p">(</span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">)));</span> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-974" name="line-974"></a> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_paths</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_next</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">))</span> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="p">{</span> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">gtk_ui_manager_add_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_id</span><span class="p">,</span> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">list</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="n">action_name</span><span class="p">,</span> +<a id="line-979" name="line-979"></a><span class="w"> </span><span class="n">GTK_UI_MANAGER_MENUITEM</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-980" name="line-980"></a><span class="w"> </span><span class="p">}</span> +<a id="line-981" name="line-981"></a> +<a id="line-982" name="line-982"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">action_label</span><span class="p">);</span> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="p">}</span> +<a id="line-984" name="line-984"></a> +<a id="line-985" name="line-985"></a><span class="w"> </span><span class="n">gtk_ui_manager_ensure_update</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">);</span> +<a id="line-986" name="line-986"></a> +<a id="line-987" name="line-987"></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"><</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="o">-></span><span class="n">len</span><span class="p">)</span> +<a id="line-988" name="line-988"></a><span class="w"> </span><span class="p">{</span> +<a id="line-989" name="line-989"></a><span class="w"> </span><span class="n">toggle_action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_index</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">g_ptr_array_remove_index_fast</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_actions</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">gtk_action_group_remove_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_action</span><span class="p">));</span> +<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-995" name="line-995"></a><span class="w"> </span><span class="p">}</span> +<a id="line-996" name="line-996"></a><span class="p">}</span> +<a id="line-997" name="line-997"></a> +<a id="line-998" name="line-998"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-999" name="line-999"></a><span class="n">create_dock</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1000" name="line-1000"></a><span class="p">{</span> +<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">;</span> +<a id="line-1002" name="line-1002"></a> +<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1004" name="line-1004"></a> +<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toolbar_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">gtk_toolbar_set_show_arrow</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1009" name="line-1009"></a> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_drop"</span><span class="p">,</span> +<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_drag_drop_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_motion"</span><span class="p">,</span> +<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_drag_motion_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_leave"</span><span class="p">,</span> +<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_drag_leave_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1016" name="line-1016"></a> +<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_data_received"</span><span class="p">,</span> +<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_drag_data_received_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"popup_context_menu"</span><span class="p">,</span> +<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">popup_context_menu_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1021" name="line-1021"></a> +<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="n">configure_drag_dest</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-1023" name="line-1023"></a> +<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">hbox</span><span class="p">;</span> +<a id="line-1025" name="line-1025"></a><span class="p">}</span> +<a id="line-1026" name="line-1026"></a> +<a id="line-1027" name="line-1027"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1028" name="line-1028"></a><span class="n">set_fixed_style</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">GtkToolbarStyle</span><span class="w"> </span><span class="n">style</span><span class="p">)</span> +<a id="line-1029" name="line-1029"></a><span class="p">{</span> +<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">));</span> +<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="n">gtk_toolbar_set_style</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">),</span> +<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="n">style</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_TOOLBAR_ICONS</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">GTK_TOOLBAR_BOTH_HORIZ</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">style</span><span class="p">);</span> +<a id="line-1033" name="line-1033"></a><span class="p">}</span> +<a id="line-1034" name="line-1034"></a> +<a id="line-1035" name="line-1035"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1036" name="line-1036"></a><span class="n">unset_fixed_style</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">)</span> +<a id="line-1037" name="line-1037"></a><span class="p">{</span> +<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">));</span> +<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="n">gtk_toolbar_unset_style</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">));</span> +<a id="line-1040" name="line-1040"></a><span class="p">}</span> +<a id="line-1041" name="line-1041"></a> +<a id="line-1042" name="line-1042"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1043" name="line-1043"></a><span class="n">toolbar_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1046" name="line-1046"></a><span class="p">{</span> +<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">EggTbModelFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">GtkToolbarStyle</span><span class="w"> </span><span class="n">style</span><span class="p">;</span> +<a id="line-1050" name="line-1050"></a> +<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-1053" name="line-1053"></a> +<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_ICONS</span><span class="p">)</span> +<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="n">style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TOOLBAR_ICONS</span><span class="p">;</span> +<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1058" name="line-1058"></a><span class="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">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_TEXT</span><span class="p">)</span> +<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TOOLBAR_TEXT</span><span class="p">;</span> +<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1062" name="line-1062"></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">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_BOTH</span><span class="p">)</span> +<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TOOLBAR_BOTH</span><span class="p">;</span> +<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1066" name="line-1066"></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">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_BOTH_HORIZ</span><span class="p">)</span> +<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TOOLBAR_BOTH_HORIZ</span><span class="p">;</span> +<a id="line-1069" name="line-1069"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1072" name="line-1072"></a><span class="w"> </span><span class="n">gtk_toolbar_unset_style</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">position</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">)</span> +<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="n">unset_fixed_style</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1079" name="line-1079"></a> +<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">gtk_toolbar_set_style</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">style</span><span class="p">);</span> +<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">position</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">)</span> +<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1083" name="line-1083"></a><span class="w"> </span><span class="n">set_fixed_style</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">style</span><span class="p">);</span> +<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1085" name="line-1085"></a> +<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="n">toolbar_visibility_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1087" name="line-1087"></a><span class="p">}</span> +<a id="line-1088" name="line-1088"></a> +<a id="line-1089" name="line-1089"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1090" name="line-1090"></a><span class="n">unparent_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1091" name="line-1091"></a><span class="p">{</span> +<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">;</span> +<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">));</span> +<a id="line-1094" name="line-1094"></a> +<a id="line-1095" name="line-1095"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">;</span> +<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="n">dock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1097" name="line-1097"></a> +<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1102" name="line-1102"></a><span class="p">}</span> +<a id="line-1103" name="line-1103"></a> +<a id="line-1104" name="line-1104"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1105" name="line-1105"></a><span class="n">update_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1106" name="line-1106"></a><span class="p">{</span> +<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">;</span> +<a id="line-1108" name="line-1108"></a> +<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">)</span> +<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1111" name="line-1111"></a> +<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">;</span> +<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">dock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1114" name="line-1114"></a> +<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1118" name="line-1118"></a> +<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1120" name="line-1120"></a> +<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">gtk_widget_queue_resize_no_redraw</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">);</span> +<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1124" name="line-1124"></a><span class="p">}</span> +<a id="line-1125" name="line-1125"></a> +<a id="line-1126" name="line-1126"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1127" name="line-1127"></a><span class="n">toolbar_added_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1130" name="line-1130"></a><span class="p">{</span> +<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">;</span> +<a id="line-1132" name="line-1132"></a> +<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">dock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_dock</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1134" name="line-1134"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">)</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_HIDDEN</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">);</span> +<a id="line-1136" name="line-1136"></a> +<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">MIN_TOOLBAR_HEIGHT</span><span class="p">);</span> +<a id="line-1138" name="line-1138"></a> +<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="n">dock</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1140" name="line-1140"></a> +<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="n">gtk_box_reorder_child</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="n">dock</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-1142" name="line-1142"></a> +<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">);</span> +<a id="line-1144" name="line-1144"></a> +<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="n">update_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1146" name="line-1146"></a> +<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">toolbar_visibility_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1148" name="line-1148"></a><span class="p">}</span> +<a id="line-1149" name="line-1149"></a> +<a id="line-1150" name="line-1150"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1151" name="line-1151"></a><span class="n">toolbar_removed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1154" name="line-1154"></a><span class="p">{</span> +<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">;</span> +<a id="line-1156" name="line-1156"></a> +<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">position</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="n">unparent_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1161" name="line-1161"></a> +<a id="line-1162" name="line-1162"></a><span class="w"> </span><span class="n">dock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">);</span> +<a id="line-1164" name="line-1164"></a> +<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">update_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1166" name="line-1166"></a> +<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="n">toolbar_visibility_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1168" name="line-1168"></a><span class="p">}</span> +<a id="line-1169" name="line-1169"></a> +<a id="line-1170" name="line-1170"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1171" name="line-1171"></a><span class="n">item_added_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">tpos</span><span class="p">,</span> +<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ipos</span><span class="p">,</span> +<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1175" name="line-1175"></a><span class="p">{</span> +<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">;</span> +<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-1179" name="line-1179"></a> +<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">tpos</span><span class="p">);</span> +<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_item_from_position</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">tpos</span><span class="p">,</span><span class="w"> </span><span class="n">ipos</span><span class="p">);</span> +<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1183" name="line-1183"></a> +<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="n">gtk_toolbar_insert</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">ipos</span><span class="p">);</span> +<a id="line-1185" name="line-1185"></a> +<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="n">connect_widget_signals</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="n">configure_item_tooltip</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="n">configure_item_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="n">configure_item_sensitivity</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1190" name="line-1190"></a> +<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="n">dock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">tpos</span><span class="p">);</span> +<a id="line-1192" name="line-1192"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="n">gtk_widget_queue_resize_no_redraw</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">);</span> +<a id="line-1194" name="line-1194"></a> +<a id="line-1195" name="line-1195"></a><span class="w"> </span><span class="n">toolbar_visibility_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1196" name="line-1196"></a><span class="p">}</span> +<a id="line-1197" name="line-1197"></a> +<a id="line-1198" name="line-1198"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1199" name="line-1199"></a><span class="n">item_removed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-1200" name="line-1200"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span> +<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-1202" name="line-1202"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1203" name="line-1203"></a><span class="p">{</span> +<a id="line-1204" name="line-1204"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1205" name="line-1205"></a> +<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-1207" name="line-1207"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-1208" name="line-1208"></a> +<a id="line-1209" name="line-1209"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_toolbar_get_nth_item</span> +<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">position</span><span class="p">));</span> +<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1213" name="line-1213"></a> +<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">selected</span><span class="p">)</span> +<a id="line-1215" name="line-1215"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="cm">/* FIXME */</span> +<a id="line-1217" name="line-1217"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1218" name="line-1218"></a> +<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span> +<a id="line-1220" name="line-1220"></a> +<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="n">toolbar_visibility_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1222" name="line-1222"></a><span class="p">}</span> +<a id="line-1223" name="line-1223"></a> +<a id="line-1224" name="line-1224"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1225" name="line-1225"></a><span class="n">egg_editable_toolbar_build</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1226" name="line-1226"></a><span class="p">{</span> +<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">n_items</span><span class="p">,</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">;</span> +<a id="line-1228" name="line-1228"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">;</span> +<a id="line-1229" name="line-1229"></a> +<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1231" name="line-1231"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1232" name="line-1232"></a> +<a id="line-1233" name="line-1233"></a><span class="w"> </span><span class="n">n_toolbars</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_n_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">);</span> +<a id="line-1234" name="line-1234"></a> +<a id="line-1235" name="line-1235"></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"><</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1237" name="line-1237"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dock</span><span class="p">;</span> +<a id="line-1238" name="line-1238"></a> +<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="n">dock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_dock</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">)</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_HIDDEN</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">);</span> +<a id="line-1242" name="line-1242"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="n">dock</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-1244" name="line-1244"></a> +<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="n">n_items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_n_items</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">n_items</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="o">++</span><span class="p">)</span> +<a id="line-1247" name="line-1247"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-1249" name="line-1249"></a> +<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_item_from_position</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">);</span> +<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">)</span> +<a id="line-1252" name="line-1252"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1253" name="line-1253"></a><span class="w"> </span><span class="n">gtk_toolbar_insert</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">);</span> +<a id="line-1254" name="line-1254"></a> +<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="n">connect_widget_signals</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="n">configure_item_tooltip</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="n">configure_item_sensitivity</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1258" name="line-1258"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1261" name="line-1261"></a><span class="w"> </span><span class="n">egg_toolbars_model_remove_item</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">);</span> +<a id="line-1262" name="line-1262"></a><span class="w"> </span><span class="n">l</span><span class="o">--</span><span class="p">;</span> +<a id="line-1263" name="line-1263"></a><span class="w"> </span><span class="n">n_items</span><span class="o">--</span><span class="p">;</span> +<a id="line-1264" name="line-1264"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1266" name="line-1266"></a> +<a id="line-1267" name="line-1267"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_items</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">dock</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">MIN_TOOLBAR_HEIGHT</span><span class="p">);</span> +<a id="line-1270" name="line-1270"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1272" name="line-1272"></a> +<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="n">update_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1274" name="line-1274"></a> +<a id="line-1275" name="line-1275"></a><span class="w"> </span><span class="cm">/* apply styles */</span> +<a id="line-1276" name="line-1276"></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"><</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">++</span><span class="p">)</span> +<a id="line-1277" name="line-1277"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1278" name="line-1278"></a><span class="w"> </span><span class="n">toolbar_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1279" name="line-1279"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1280" name="line-1280"></a><span class="p">}</span> +<a id="line-1281" name="line-1281"></a> +<a id="line-1282" name="line-1282"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1283" name="line-1283"></a><span class="n">egg_editable_toolbar_disconnect_model</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">)</span> +<a id="line-1284" name="line-1284"></a><span class="p">{</span> +<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">;</span> +<a id="line-1286" name="line-1286"></a> +<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span> +<a id="line-1288" name="line-1288"></a><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">item_added_cb</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1289" name="line-1289"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span> +<a id="line-1290" name="line-1290"></a><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">item_removed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1291" name="line-1291"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span> +<a id="line-1292" name="line-1292"></a><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_added_cb</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span> +<a id="line-1294" name="line-1294"></a><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_removed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1295" name="line-1295"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span> +<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1297" name="line-1297"></a><span class="p">}</span> +<a id="line-1298" name="line-1298"></a> +<a id="line-1299" name="line-1299"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1300" name="line-1300"></a><span class="n">egg_editable_toolbar_deconstruct</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">)</span> +<a id="line-1301" name="line-1301"></a><span class="p">{</span> +<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">;</span> +<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">children</span><span class="p">;</span> +<a id="line-1304" name="line-1304"></a> +<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1306" name="line-1306"></a> +<a id="line-1307" name="line-1307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">)</span> +<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="n">unset_fixed_style</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="n">unparent_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1312" name="line-1312"></a> +<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="n">children</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_container_get_children</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-1314" name="line-1314"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">children</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="p">);</span> +<a id="line-1315" name="line-1315"></a><span class="p">}</span> +<a id="line-1316" name="line-1316"></a> +<a id="line-1317" name="line-1317"></a><span class="kt">void</span> +<a id="line-1318" name="line-1318"></a><span class="n">egg_editable_toolbar_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-1320" name="line-1320"></a><span class="p">{</span> +<a id="line-1321" name="line-1321"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1322" name="line-1322"></a> +<a id="line-1323" name="line-1323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">model</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1324" name="line-1324"></a> +<a id="line-1325" name="line-1325"></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">-></span><span class="n">model</span><span class="p">)</span> +<a id="line-1326" name="line-1326"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1327" name="line-1327"></a><span class="w"> </span><span class="n">egg_editable_toolbar_disconnect_model</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="n">egg_editable_toolbar_deconstruct</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1329" name="line-1329"></a> +<a id="line-1330" name="line-1330"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1332" name="line-1332"></a> +<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">);</span> +<a id="line-1334" name="line-1334"></a> +<a id="line-1335" name="line-1335"></a><span class="w"> </span><span class="n">egg_editable_toolbar_build</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1336" name="line-1336"></a> +<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="n">toolbar_visibility_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1338" name="line-1338"></a> +<a id="line-1339" name="line-1339"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"item_added"</span><span class="p">,</span> +<a id="line-1340" name="line-1340"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">item_added_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"item_removed"</span><span class="p">,</span> +<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">item_removed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1343" name="line-1343"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"toolbar_added"</span><span class="p">,</span> +<a id="line-1344" name="line-1344"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_added_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"toolbar_removed"</span><span class="p">,</span> +<a id="line-1346" name="line-1346"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_removed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1347" name="line-1347"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"toolbar_changed"</span><span class="p">,</span> +<a id="line-1348" name="line-1348"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1349" name="line-1349"></a><span class="p">}</span> +<a id="line-1350" name="line-1350"></a> +<a id="line-1351" name="line-1351"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1352" name="line-1352"></a><span class="n">egg_editable_toolbar_init</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1353" name="line-1353"></a><span class="p">{</span> +<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="n">gtk_orientable_set_orientation</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTABLE</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span> +<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">);</span> +<a id="line-1356" name="line-1356"></a> +<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1358" name="line-1358"></a> +<a id="line-1359" name="line-1359"></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">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_editable_toolbar_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1360" name="line-1360"></a> +<a id="line-1361" name="line-1361"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">save_hidden</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1362" name="line-1362"></a> +<a id="line-1363" name="line-1363"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::visible"</span><span class="p">,</span> +<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_visibility_refresh</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1365" name="line-1365"></a><span class="p">}</span> +<a id="line-1366" name="line-1366"></a> +<a id="line-1367" name="line-1367"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1368" name="line-1368"></a><span class="n">egg_editable_toolbar_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-1369" name="line-1369"></a><span class="p">{</span> +<a id="line-1370" name="line-1370"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1371" name="line-1371"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1372" name="line-1372"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">children</span><span class="p">;</span> +<a id="line-1373" name="line-1373"></a> +<a id="line-1374" name="line-1374"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1375" name="line-1375"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">);</span> +<a id="line-1377" name="line-1377"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1378" name="line-1378"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1379" name="line-1379"></a> +<a id="line-1380" name="line-1380"></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">-></span><span class="n">visibility_paths</span><span class="p">)</span> +<a id="line-1381" name="line-1381"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1382" name="line-1382"></a><span class="w"> </span><span class="n">children</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_paths</span><span class="p">;</span> +<a id="line-1383" name="line-1383"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">children</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-1384" name="line-1384"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_paths</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1385" name="line-1385"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1386" name="line-1386"></a> +<a id="line-1387" name="line-1387"></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">-></span><span class="n">popup_path</span><span class="p">);</span> +<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">popup_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1389" name="line-1389"></a> +<a id="line-1390" name="line-1390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1391" name="line-1391"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1392" name="line-1392"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_id</span><span class="p">)</span> +<a id="line-1393" name="line-1393"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1394" name="line-1394"></a><span class="w"> </span><span class="n">gtk_ui_manager_remove_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_id</span><span class="p">);</span> +<a id="line-1395" name="line-1395"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1397" name="line-1397"></a> +<a id="line-1398" name="line-1398"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">);</span> +<a id="line-1399" name="line-1399"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1400" name="line-1400"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1401" name="line-1401"></a> +<a id="line-1402" name="line-1402"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">)</span> +<a id="line-1403" name="line-1403"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1404" name="line-1404"></a><span class="w"> </span><span class="n">egg_editable_toolbar_disconnect_model</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1405" name="line-1405"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-1406" name="line-1406"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1407" name="line-1407"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1408" name="line-1408"></a> +<a id="line-1409" name="line-1409"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">egg_editable_toolbar_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1410" name="line-1410"></a><span class="p">}</span> +<a id="line-1411" name="line-1411"></a> +<a id="line-1412" name="line-1412"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1413" name="line-1413"></a><span class="n">egg_editable_toolbar_set_ui_manager</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1414" name="line-1414"></a><span class="w"> </span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-1415" name="line-1415"></a><span class="p">{</span> +<a id="line-1416" name="line-1416"></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">GtkActionEntry</span><span class="w"> </span><span class="n">actions</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-1417" name="line-1417"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"MoveToolItem"</span><span class="p">,</span><span class="w"> </span><span class="n">STOCK_DRAG_MODE</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Move on Toolbar"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1418" name="line-1418"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Move the selected item on the toolbar"</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">move_item_cb</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1419" name="line-1419"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"RemoveToolItem"</span><span class="p">,</span><span class="w"> </span><span class="s">"list-remove"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Remove from Toolbar"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1420" name="line-1420"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Remove the selected item from the toolbar"</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">remove_item_cb</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1421" name="line-1421"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"RemoveToolbar"</span><span class="p">,</span><span class="w"> </span><span class="s">"edit-delete"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Delete Toolbar"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1422" name="line-1422"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Remove the selected toolbar"</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">remove_toolbar_cb</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1423" name="line-1423"></a><span class="w"> </span><span class="p">};</span> +<a id="line-1424" name="line-1424"></a> +<a id="line-1425" name="line-1425"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">manager</span><span class="p">);</span> +<a id="line-1426" name="line-1426"></a> +<a id="line-1427" name="line-1427"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1428" name="line-1428"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_new</span><span class="w"> </span><span class="p">(</span><span class="s">"ToolbarActions"</span><span class="p">);</span> +<a id="line-1429" name="line-1429"></a><span class="w"> </span><span class="n">gtk_action_group_set_translation_domain</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions</span><span class="p">,</span><span class="w"> </span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span> +<a id="line-1430" name="line-1430"></a><span class="w"> </span><span class="n">gtk_action_group_add_actions</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions</span><span class="p">,</span><span class="w"> </span><span class="n">actions</span><span class="p">,</span> +<a id="line-1431" name="line-1431"></a><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">actions</span><span class="p">),</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1432" name="line-1432"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1433" name="line-1433"></a><span class="w"> </span><span class="n">gtk_ui_manager_insert_action_group</span><span class="w"> </span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1434" name="line-1434"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions</span><span class="p">);</span> +<a id="line-1435" name="line-1435"></a> +<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="n">toolbar_visibility_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1437" name="line-1437"></a><span class="p">}</span> +<a id="line-1438" name="line-1438"></a> +<a id="line-1439" name="line-1439"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">egg_editable_toolbar_get_selected</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1440" name="line-1440"></a><span class="p">{</span> +<a id="line-1441" name="line-1441"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">selected</span><span class="p">;</span> +<a id="line-1442" name="line-1442"></a><span class="p">}</span> +<a id="line-1443" name="line-1443"></a> +<a id="line-1444" name="line-1444"></a><span class="kt">void</span> +<a id="line-1445" name="line-1445"></a><span class="n">egg_editable_toolbar_set_selected</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1446" name="line-1446"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span> +<a id="line-1447" name="line-1447"></a><span class="p">{</span> +<a id="line-1448" name="line-1448"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">toolitem</span><span class="p">;</span> +<a id="line-1449" name="line-1449"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">editable</span><span class="p">;</span> +<a id="line-1450" name="line-1450"></a> +<a id="line-1451" name="line-1451"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">widget</span><span class="p">;</span> +<a id="line-1452" name="line-1452"></a> +<a id="line-1453" name="line-1453"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">gtk_widget_get_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_TOOLBAR</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1454" name="line-1454"></a><span class="w"> </span><span class="n">toolitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">gtk_widget_get_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_TOOL_ITEM</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1455" name="line-1455"></a> +<a id="line-1456" name="line-1456"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1458" name="line-1458"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">tpos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_position</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1459" name="line-1459"></a><span class="w"> </span><span class="n">editable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">tpos</span><span class="p">)</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NOT_EDITABLE</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1460" name="line-1460"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1461" name="line-1461"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1462" name="line-1462"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1463" name="line-1463"></a><span class="w"> </span><span class="n">editable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1464" name="line-1464"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1465" name="line-1465"></a> +<a id="line-1466" name="line-1466"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1467" name="line-1467"></a><span class="w"> </span><span class="n">gtk_action_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"RemoveToolbar"</span><span class="p">),</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">));</span> +<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="n">gtk_action_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"RemoveToolItem"</span><span class="p">),</span><span class="w"> </span><span class="p">(</span><span class="n">toolitem</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">editable</span><span class="p">);</span> +<a id="line-1469" name="line-1469"></a><span class="w"> </span><span class="n">gtk_action_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="s">"MoveToolItem"</span><span class="p">),</span><span class="w"> </span><span class="p">(</span><span class="n">toolitem</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">editable</span><span class="p">);</span> +<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1471" name="line-1471"></a><span class="p">}</span> +<a id="line-1472" name="line-1472"></a> +<a id="line-1473" name="line-1473"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1474" name="line-1474"></a><span class="n">set_edit_mode</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1475" name="line-1475"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-1476" name="line-1476"></a><span class="p">{</span> +<a id="line-1477" name="line-1477"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1478" name="line-1478"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">n_items</span><span class="p">;</span> +<a id="line-1479" name="line-1479"></a> +<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="p">;</span> +<a id="line-1481" name="line-1481"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">)</span> +<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1483" name="line-1483"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="o">++</span><span class="p">;</span> +<a id="line-1484" name="line-1484"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1485" name="line-1485"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1486" name="line-1486"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1487" name="line-1487"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1488" name="line-1488"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="o">--</span><span class="p">;</span> +<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1490" name="line-1490"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="p">;</span> +<a id="line-1491" name="line-1491"></a> +<a id="line-1492" name="line-1492"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1493" name="line-1493"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1494" name="line-1494"></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="n">get_n_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">)</span><span class="mi">-1</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">--</span><span class="p">)</span> +<a id="line-1495" name="line-1495"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1496" name="line-1496"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-1497" name="line-1497"></a> +<a id="line-1498" name="line-1498"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-1499" name="line-1499"></a><span class="w"> </span><span class="n">n_items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toolbar_get_n_items</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-1500" name="line-1500"></a> +<a id="line-1501" name="line-1501"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_items</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1503" name="line-1503"></a><span class="w"> </span><span class="n">egg_toolbars_model_remove_toolbar</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1505" name="line-1505"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1506" name="line-1506"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1507" name="line-1507"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">n_items</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="o">++</span><span class="p">)</span> +<a id="line-1508" name="line-1508"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1509" name="line-1509"></a><span class="w"> </span><span class="n">GtkToolItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-1510" name="line-1510"></a> +<a id="line-1511" name="line-1511"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toolbar_get_nth_item</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">l</span><span class="p">);</span> +<a id="line-1512" name="line-1512"></a> +<a id="line-1513" name="line-1513"></a><span class="w"> </span><span class="n">configure_item_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1514" name="line-1514"></a><span class="w"> </span><span class="n">configure_item_sensitivity</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1515" name="line-1515"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1516" name="line-1516"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1517" name="line-1517"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1518" name="line-1518"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1519" name="line-1519"></a><span class="p">}</span> +<a id="line-1520" name="line-1520"></a> +<a id="line-1521" name="line-1521"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1522" name="line-1522"></a><span class="n">egg_editable_toolbar_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-1523" name="line-1523"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-1524" name="line-1524"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-1525" name="line-1525"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-1526" name="line-1526"></a><span class="p">{</span> +<a id="line-1527" name="line-1527"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1528" name="line-1528"></a> +<a id="line-1529" name="line-1529"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span> +<a id="line-1530" name="line-1530"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1531" name="line-1531"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_UI_MANAGER</span><span class="p">:</span> +<a id="line-1532" name="line-1532"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_ui_manager</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1533" name="line-1533"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1534" name="line-1534"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TOOLBARS_MODEL</span><span class="p">:</span> +<a id="line-1535" name="line-1535"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1536" name="line-1536"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1537" name="line-1537"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SELECTED</span><span class="p">:</span> +<a id="line-1538" name="line-1538"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_selected</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1539" name="line-1539"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1540" name="line-1540"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_POPUP_PATH</span><span class="p">:</span> +<a id="line-1541" name="line-1541"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">popup_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">g_value_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1542" name="line-1542"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1543" name="line-1543"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EDIT_MODE</span><span class="p">:</span> +<a id="line-1544" name="line-1544"></a><span class="w"> </span><span class="n">set_edit_mode</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1545" name="line-1545"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1546" name="line-1546"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1547" name="line-1547"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-1548" name="line-1548"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1549" name="line-1549"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1550" name="line-1550"></a><span class="p">}</span> +<a id="line-1551" name="line-1551"></a> +<a id="line-1552" name="line-1552"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1553" name="line-1553"></a><span class="n">egg_editable_toolbar_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-1554" name="line-1554"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-1555" name="line-1555"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-1556" name="line-1556"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-1557" name="line-1557"></a><span class="p">{</span> +<a id="line-1558" name="line-1558"></a><span class="w"> </span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1559" name="line-1559"></a> +<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span> +<a id="line-1561" name="line-1561"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1562" name="line-1562"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_UI_MANAGER</span><span class="p">:</span> +<a id="line-1563" name="line-1563"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">);</span> +<a id="line-1564" name="line-1564"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1565" name="line-1565"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TOOLBARS_MODEL</span><span class="p">:</span> +<a id="line-1566" name="line-1566"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-1567" name="line-1567"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1568" name="line-1568"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SELECTED</span><span class="p">:</span> +<a id="line-1569" name="line-1569"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">selected</span><span class="p">);</span> +<a id="line-1570" name="line-1570"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1571" name="line-1571"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EDIT_MODE</span><span class="p">:</span> +<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="o">></span><span class="mi">0</span><span class="p">);</span> +<a id="line-1573" name="line-1573"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1574" name="line-1574"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1575" name="line-1575"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-1576" name="line-1576"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1577" name="line-1577"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1578" name="line-1578"></a><span class="p">}</span> +<a id="line-1579" name="line-1579"></a> +<a id="line-1580" name="line-1580"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1581" name="line-1581"></a><span class="n">egg_editable_toolbar_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbarClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-1582" name="line-1582"></a><span class="p">{</span> +<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-1584" name="line-1584"></a> +<a id="line-1585" name="line-1585"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_editable_toolbar_dispose</span><span class="p">;</span> +<a id="line-1586" name="line-1586"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_editable_toolbar_set_property</span><span class="p">;</span> +<a id="line-1587" name="line-1587"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_editable_toolbar_get_property</span><span class="p">;</span> +<a id="line-1588" name="line-1588"></a> +<a id="line-1589" name="line-1589"></a><span class="w"> </span><span class="n">egg_editable_toolbar_signals</span><span class="p">[</span><span class="n">ACTION_REQUEST</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-1590" name="line-1590"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"action_request"</span><span class="p">,</span> +<a id="line-1591" name="line-1591"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">),</span> +<a id="line-1592" name="line-1592"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-1593" name="line-1593"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbarClass</span><span class="p">,</span><span class="w"> </span><span class="n">action_request</span><span class="p">),</span> +<a id="line-1594" name="line-1594"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__STRING</span><span class="p">,</span> +<a id="line-1595" name="line-1595"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">);</span> +<a id="line-1596" name="line-1596"></a> +<a id="line-1597" name="line-1597"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1598" name="line-1598"></a><span class="w"> </span><span class="n">PROP_UI_MANAGER</span><span class="p">,</span> +<a id="line-1599" name="line-1599"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"ui-manager"</span><span class="p">,</span> +<a id="line-1600" name="line-1600"></a><span class="w"> </span><span class="s">"UI-Mmanager"</span><span class="p">,</span> +<a id="line-1601" name="line-1601"></a><span class="w"> </span><span class="s">"UI Manager"</span><span class="p">,</span> +<a id="line-1602" name="line-1602"></a><span class="w"> </span><span class="n">GTK_TYPE_UI_MANAGER</span><span class="p">,</span> +<a id="line-1603" name="line-1603"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span> +<a id="line-1604" name="line-1604"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1605" name="line-1605"></a><span class="w"> </span><span class="n">PROP_TOOLBARS_MODEL</span><span class="p">,</span> +<a id="line-1606" name="line-1606"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"model"</span><span class="p">,</span> +<a id="line-1607" name="line-1607"></a><span class="w"> </span><span class="s">"Model"</span><span class="p">,</span> +<a id="line-1608" name="line-1608"></a><span class="w"> </span><span class="s">"Toolbars Model"</span><span class="p">,</span> +<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">EGG_TYPE_TOOLBARS_MODEL</span><span class="p">,</span> +<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span> +<a id="line-1611" name="line-1611"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1612" name="line-1612"></a><span class="w"> </span><span class="n">PROP_SELECTED</span><span class="p">,</span> +<a id="line-1613" name="line-1613"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"selected"</span><span class="p">,</span> +<a id="line-1614" name="line-1614"></a><span class="w"> </span><span class="s">"Selected"</span><span class="p">,</span> +<a id="line-1615" name="line-1615"></a><span class="w"> </span><span class="s">"Selected toolitem"</span><span class="p">,</span> +<a id="line-1616" name="line-1616"></a><span class="w"> </span><span class="n">GTK_TYPE_TOOL_ITEM</span><span class="p">,</span> +<a id="line-1617" name="line-1617"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span> +<a id="line-1618" name="line-1618"></a> +<a id="line-1619" name="line-1619"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1620" name="line-1620"></a><span class="w"> </span><span class="n">PROP_POPUP_PATH</span><span class="p">,</span> +<a id="line-1621" name="line-1621"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">"popup-path"</span><span class="p">,</span> +<a id="line-1622" name="line-1622"></a><span class="w"> </span><span class="s">"popup-path"</span><span class="p">,</span> +<a id="line-1623" name="line-1623"></a><span class="w"> </span><span class="s">"popup-path"</span><span class="p">,</span> +<a id="line-1624" name="line-1624"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1625" name="line-1625"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span> +<a id="line-1626" name="line-1626"></a> +<a id="line-1627" name="line-1627"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1628" name="line-1628"></a><span class="w"> </span><span class="n">PROP_EDIT_MODE</span><span class="p">,</span> +<a id="line-1629" name="line-1629"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">"edit-mode"</span><span class="p">,</span> +<a id="line-1630" name="line-1630"></a><span class="w"> </span><span class="s">"Edit-Mode"</span><span class="p">,</span> +<a id="line-1631" name="line-1631"></a><span class="w"> </span><span class="s">"Edit Mode"</span><span class="p">,</span> +<a id="line-1632" name="line-1632"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-1633" name="line-1633"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span> +<a id="line-1634" name="line-1634"></a><span class="p">}</span> +<a id="line-1635" name="line-1635"></a> +<a id="line-1636" name="line-1636"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-1637" name="line-1637"></a><span class="n">egg_editable_toolbar_new</span><span class="w"> </span><span class="p">(</span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span> +<a id="line-1638" name="line-1638"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">popup_path</span><span class="p">)</span> +<a id="line-1639" name="line-1639"></a><span class="p">{</span> +<a id="line-1640" name="line-1640"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TYPE_EDITABLE_TOOLBAR</span><span class="p">,</span> +<a id="line-1641" name="line-1641"></a><span class="w"> </span><span class="s">"ui-manager"</span><span class="p">,</span><span class="w"> </span><span class="n">manager</span><span class="p">,</span> +<a id="line-1642" name="line-1642"></a><span class="w"> </span><span class="s">"popup-path"</span><span class="p">,</span><span class="w"> </span><span class="n">popup_path</span><span class="p">,</span> +<a id="line-1643" name="line-1643"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-1644" name="line-1644"></a><span class="p">}</span> +<a id="line-1645" name="line-1645"></a> +<a id="line-1646" name="line-1646"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-1647" name="line-1647"></a><span class="n">egg_editable_toolbar_new_with_model</span><span class="w"> </span><span class="p">(</span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span> +<a id="line-1648" name="line-1648"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-1649" name="line-1649"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">popup_path</span><span class="p">)</span> +<a id="line-1650" name="line-1650"></a><span class="p">{</span> +<a id="line-1651" name="line-1651"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TYPE_EDITABLE_TOOLBAR</span><span class="p">,</span> +<a id="line-1652" name="line-1652"></a><span class="w"> </span><span class="s">"ui-manager"</span><span class="p">,</span><span class="w"> </span><span class="n">manager</span><span class="p">,</span> +<a id="line-1653" name="line-1653"></a><span class="w"> </span><span class="s">"model"</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">,</span> +<a id="line-1654" name="line-1654"></a><span class="w"> </span><span class="s">"popup-path"</span><span class="p">,</span><span class="w"> </span><span class="n">popup_path</span><span class="p">,</span> +<a id="line-1655" name="line-1655"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-1656" name="line-1656"></a><span class="p">}</span> +<a id="line-1657" name="line-1657"></a> +<a id="line-1658" name="line-1658"></a><span class="n">gboolean</span> +<a id="line-1659" name="line-1659"></a><span class="n">egg_editable_toolbar_get_edit_mode</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1660" name="line-1660"></a><span class="p">{</span> +<a id="line-1661" name="line-1661"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1662" name="line-1662"></a> +<a id="line-1663" name="line-1663"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">edit_mode</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1664" name="line-1664"></a><span class="p">}</span> +<a id="line-1665" name="line-1665"></a> +<a id="line-1666" name="line-1666"></a><span class="kt">void</span> +<a id="line-1667" name="line-1667"></a><span class="n">egg_editable_toolbar_set_edit_mode</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1668" name="line-1668"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-1669" name="line-1669"></a><span class="p">{</span> +<a id="line-1670" name="line-1670"></a><span class="w"> </span><span class="n">set_edit_mode</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span> +<a id="line-1671" name="line-1671"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">),</span><span class="w"> </span><span class="s">"edit-mode"</span><span class="p">);</span> +<a id="line-1672" name="line-1672"></a><span class="p">}</span> +<a id="line-1673" name="line-1673"></a> +<a id="line-1674" name="line-1674"></a><span class="kt">void</span> +<a id="line-1675" name="line-1675"></a><span class="n">egg_editable_toolbar_add_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1676" name="line-1676"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">)</span> +<a id="line-1677" name="line-1677"></a><span class="p">{</span> +<a id="line-1678" name="line-1678"></a><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_paths</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span> +<a id="line-1679" name="line-1679"></a><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">visibility_paths</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">));</span> +<a id="line-1680" name="line-1680"></a><span class="p">}</span> +<a id="line-1681" name="line-1681"></a> +<a id="line-1682" name="line-1682"></a><span class="kt">void</span> +<a id="line-1683" name="line-1683"></a><span class="n">egg_editable_toolbar_show</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1684" name="line-1684"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-1685" name="line-1685"></a><span class="p">{</span> +<a id="line-1686" name="line-1686"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1687" name="line-1687"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">;</span> +<a id="line-1688" name="line-1688"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">;</span> +<a id="line-1689" name="line-1689"></a> +<a id="line-1690" name="line-1690"></a><span class="w"> </span><span class="n">n_toolbars</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_n_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">);</span> +<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-1692" name="line-1692"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1693" name="line-1693"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar_name</span><span class="p">;</span> +<a id="line-1694" name="line-1694"></a> +<a id="line-1695" name="line-1695"></a><span class="w"> </span><span class="n">toolbar_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-1696" name="line-1696"></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">toolbar_name</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1697" name="line-1697"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1698" name="line-1698"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">));</span> +<a id="line-1699" name="line-1699"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1700" name="line-1700"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1701" name="line-1701"></a><span class="p">}</span> +<a id="line-1702" name="line-1702"></a> +<a id="line-1703" name="line-1703"></a><span class="kt">void</span> +<a id="line-1704" name="line-1704"></a><span class="n">egg_editable_toolbar_hide</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1705" name="line-1705"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-1706" name="line-1706"></a><span class="p">{</span> +<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1708" name="line-1708"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">;</span> +<a id="line-1709" name="line-1709"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">;</span> +<a id="line-1710" name="line-1710"></a> +<a id="line-1711" name="line-1711"></a><span class="w"> </span><span class="n">n_toolbars</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_n_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">);</span> +<a id="line-1712" name="line-1712"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">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"><</span><span class="w"> </span><span class="n">n_toolbars</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-1713" name="line-1713"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1714" name="line-1714"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar_name</span><span class="p">;</span> +<a id="line-1715" name="line-1715"></a> +<a id="line-1716" name="line-1716"></a><span class="w"> </span><span class="n">toolbar_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-1717" name="line-1717"></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">toolbar_name</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1718" name="line-1718"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1719" name="line-1719"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">get_dock_nth</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">));</span> +<a id="line-1720" name="line-1720"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1721" name="line-1721"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1722" name="line-1722"></a><span class="p">}</span> +<a id="line-1723" name="line-1723"></a> +<a id="line-1724" name="line-1724"></a><span class="kt">void</span> +<a id="line-1725" name="line-1725"></a><span class="n">egg_editable_toolbar_set_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">,</span> +<a id="line-1726" name="line-1726"></a><span class="w"> </span><span class="n">GtkToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">)</span> +<a id="line-1727" name="line-1727"></a><span class="p">{</span> +<a id="line-1728" name="line-1728"></a><span class="w"> </span><span class="n">EggEditableToolbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1729" name="line-1729"></a> +<a id="line-1730" name="line-1730"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">toolbar</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">GTK_IS_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-1731" name="line-1731"></a> +<a id="line-1732" name="line-1732"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">)</span> +<a id="line-1733" name="line-1733"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1734" name="line-1734"></a><span class="w"> </span><span class="n">unparent_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1735" name="line-1735"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="p">);</span> +<a id="line-1736" name="line-1736"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1737" name="line-1737"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1738" name="line-1738"></a> +<a id="line-1739" name="line-1739"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">)</span> +<a id="line-1740" name="line-1740"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fixed_toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1742" name="line-1742"></a><span class="w"> </span><span class="n">gtk_toolbar_set_show_arrow</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1743" name="line-1743"></a><span class="w"> </span><span class="n">g_object_ref_sink</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-1744" name="line-1744"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1745" name="line-1745"></a> +<a id="line-1746" name="line-1746"></a><span class="w"> </span><span class="n">update_fixed</span><span class="w"> </span><span class="p">(</span><span class="n">etoolbar</span><span class="p">);</span> +<a id="line-1747" name="line-1747"></a><span class="p">}</span> +<a id="line-1748" name="line-1748"></a> +<a id="line-1749" name="line-1749"></a><span class="cp">#define DEFAULT_ICON_HEIGHT 20</span> +<a id="line-1750" name="line-1750"></a> +<a id="line-1751" name="line-1751"></a><span class="cm">/* We should probably experiment some more with this.</span> +<a id="line-1752" name="line-1752"></a><span class="cm"> * Right now the rendered icon is pretty good for most</span> +<a id="line-1753" name="line-1753"></a><span class="cm"> * themes. However, the icon is slightly large for themes</span> +<a id="line-1754" name="line-1754"></a><span class="cm"> * with large toolbar icons.</span> +<a id="line-1755" name="line-1755"></a><span class="cm"> */</span> +<a id="line-1756" name="line-1756"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span> +<a id="line-1757" name="line-1757"></a><span class="n">new_pixbuf_from_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span> +<a id="line-1758" name="line-1758"></a><span class="p">{</span> +<a id="line-1759" name="line-1759"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-1760" name="line-1760"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-1761" name="line-1761"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">icon_height</span><span class="p">;</span> +<a id="line-1762" name="line-1762"></a> +<a id="line-1763" name="line-1763"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_icon_size_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_SIZE_LARGE_TOOLBAR</span><span class="p">,</span> +<a id="line-1764" name="line-1764"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1765" name="line-1765"></a><span class="w"> </span><span class="o">&</span><span class="n">icon_height</span><span class="p">))</span> +<a id="line-1766" name="line-1766"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1767" name="line-1767"></a><span class="w"> </span><span class="n">icon_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DEFAULT_ICON_HEIGHT</span><span class="p">;</span> +<a id="line-1768" name="line-1768"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1769" name="line-1769"></a> +<a id="line-1770" name="line-1770"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_offscreen_window_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-1771" name="line-1771"></a><span class="w"> </span><span class="cm">/* Set the width to -1 as we want the separator to be as thin as possible. */</span> +<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">icon_height</span><span class="p">);</span> +<a id="line-1773" name="line-1773"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">widget</span><span class="p">);</span> +<a id="line-1774" name="line-1774"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1775" name="line-1775"></a> +<a id="line-1776" name="line-1776"></a><span class="w"> </span><span class="cm">/* Process the waiting events to have the widget actually drawn */</span> +<a id="line-1777" name="line-1777"></a><span class="w"> </span><span class="n">gdk_window_process_updates</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1778" name="line-1778"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_offscreen_window_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_OFFSCREEN_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-1779" name="line-1779"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1780" name="line-1780"></a> +<a id="line-1781" name="line-1781"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-1782" name="line-1782"></a><span class="p">}</span> +<a id="line-1783" name="line-1783"></a> +<a id="line-1784" name="line-1784"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span> +<a id="line-1785" name="line-1785"></a><span class="n">new_separator_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-1786" name="line-1786"></a><span class="p">{</span> +<a id="line-1787" name="line-1787"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">separator</span><span class="p">;</span> +<a id="line-1788" name="line-1788"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-1789" name="line-1789"></a> +<a id="line-1790" name="line-1790"></a><span class="w"> </span><span class="n">separator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_separator_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">);</span> +<a id="line-1791" name="line-1791"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_pixbuf_from_widget</span><span class="w"> </span><span class="p">(</span><span class="n">separator</span><span class="p">);</span> +<a id="line-1792" name="line-1792"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-1793" name="line-1793"></a><span class="p">}</span> +<a id="line-1794" name="line-1794"></a> +<a id="line-1795" name="line-1795"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1796" name="line-1796"></a><span class="n">update_separator_image</span><span class="w"> </span><span class="p">(</span><span class="n">GtkImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-1797" name="line-1797"></a><span class="p">{</span> +<a id="line-1798" name="line-1798"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_separator_pixbuf</span><span class="w"> </span><span class="p">();</span> +<a id="line-1799" name="line-1799"></a><span class="w"> </span><span class="n">gtk_image_set_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-1800" name="line-1800"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-1801" name="line-1801"></a><span class="p">}</span> +<a id="line-1802" name="line-1802"></a> +<a id="line-1803" name="line-1803"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1804" name="line-1804"></a><span class="n">style_set_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-1805" name="line-1805"></a><span class="w"> </span><span class="n">GtkStyle</span><span class="w"> </span><span class="o">*</span><span class="n">previous_style</span><span class="p">,</span> +<a id="line-1806" name="line-1806"></a><span class="w"> </span><span class="n">GtkImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-1807" name="line-1807"></a><span class="p">{</span> +<a id="line-1808" name="line-1808"></a> +<a id="line-1809" name="line-1809"></a><span class="w"> </span><span class="n">update_separator_image</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-1810" name="line-1810"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1811" name="line-1811"></a><span class="p">}</span> +<a id="line-1812" name="line-1812"></a> +<a id="line-1813" name="line-1813"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-1814" name="line-1814"></a><span class="n">_egg_editable_toolbar_new_separator_image</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-1815" name="line-1815"></a><span class="p">{</span> +<a id="line-1816" name="line-1816"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-1817" name="line-1817"></a><span class="w"> </span><span class="n">update_separator_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1818" name="line-1818"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="s">"style_set"</span><span class="p">,</span> +<a id="line-1819" name="line-1819"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">style_set_cb</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1820" name="line-1820"></a> +<a id="line-1821" name="line-1821"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-1822" name="line-1822"></a><span class="p">}</span> +<a id="line-1823" name="line-1823"></a> +<a id="line-1824" name="line-1824"></a><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span> +<a id="line-1825" name="line-1825"></a><span class="n">egg_editable_toolbar_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">EggEditableToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">etoolbar</span><span class="p">)</span> +<a id="line-1826" name="line-1826"></a><span class="p">{</span> +<a id="line-1827" name="line-1827"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">etoolbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">;</span> +<a id="line-1828" name="line-1828"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/1.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/1.html new file mode 100644 index 0000000..cb5af5f --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/1.html @@ -0,0 +1,1567 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: cut-n-paste/toolbar-editor/egg-toolbar-editor.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> egg-toolbar-editor.c</p> +<a href="1.html#line-71"> unknownMacro 71</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2003 Marco Pesenti Gritti</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-5" name="line-5"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the Free Software Foundation; either version 2, or (at your option)</span> +<a id="line-7" name="line-7"></a><span class="cm"> * any later version.</span> +<a id="line-8" name="line-8"></a><span class="cm"> *</span> +<a id="line-9" name="line-9"></a><span class="cm"> * This 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, write to the Free Software</span> +<a id="line-16" name="line-16"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-17" name="line-17"></a><span class="cm"> *</span> +<a id="line-18" name="line-18"></a><span class="cm"> * $Id: egg-toolbar-editor.c 929 2009-02-19 14:49:56Z friemann $</span> +<a id="line-19" name="line-19"></a><span class="cm"> */</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</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">"egg-toolbar-editor.h"</span> +<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"egg-editable-toolbar.h"</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"><string.h></span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libxml/tree.h></span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkTargetEntry</span><span class="w"> </span><span class="n">dest_drag_types</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="p">{</span><span class="n">EGG_TOOLBAR_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TARGET_SAME_APP</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span> +<a id="line-33" name="line-33"></a><span class="p">};</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkTargetEntry</span><span class="w"> </span><span class="n">source_drag_types</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="p">{</span><span class="n">EGG_TOOLBAR_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TARGET_SAME_APP</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span> +<a id="line-37" name="line-37"></a><span class="p">};</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">egg_toolbar_editor_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">);</span> +<a id="line-40" name="line-40"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">update_editor_sheet</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="k">enum</span> +<a id="line-43" name="line-43"></a><span class="p">{</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">PROP_UI_MANAGER</span><span class="p">,</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PROP_TOOLBARS_MODEL</span> +<a id="line-47" name="line-47"></a><span class="p">};</span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="k">enum</span> +<a id="line-50" name="line-50"></a><span class="p">{</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">SIGNAL_HANDLER_ITEM_ADDED</span><span class="p">,</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">SIGNAL_HANDLER_ITEM_REMOVED</span><span class="p">,</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">SIGNAL_HANDLER_TOOLBAR_REMOVED</span><span class="p">,</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">SIGNAL_HANDLER_LIST_SIZE</span><span class="w"> </span><span class="cm">/* Array size */</span> +<a id="line-55" name="line-55"></a><span class="p">};</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="k">struct</span><span class="w"> </span><span class="nc">EggToolbarEditorPrivate</span> +<a id="line-58" name="line-58"></a><span class="p">{</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">;</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">scrolled_window</span><span class="p">;</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">actions_list</span><span class="p">;</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">factory_list</span><span class="p">;</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="cm">/* These handlers need to be sanely disconnected when switching models */</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">sig_handlers</span><span class="p">[</span><span class="n">SIGNAL_HANDLER_LIST_SIZE</span><span class="p">];</span> +<a id="line-69" name="line-69"></a><span class="p">};</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="p">,</span><span class="w"> </span><span class="n">egg_toolbar_editor</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_BOX</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-74" name="line-74"></a><span class="n">compare_items</span><span class="w"> </span><span class="p">(</span><span class="n">gconstpointer</span><span class="w"> </span><span class="n">a</span><span class="p">,</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">gconstpointer</span><span class="w"> </span><span class="n">b</span><span class="p">)</span> +<a id="line-76" name="line-76"></a><span class="p">{</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">a</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">b</span><span class="p">;</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key1</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">item1</span><span class="p">),</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="s">"egg-collate-key"</span><span class="p">);</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key2</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">item2</span><span class="p">),</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="s">"egg-collate-key"</span><span class="p">);</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">key1</span><span class="p">,</span><span class="w"> </span><span class="n">key2</span><span class="p">);</span> +<a id="line-86" name="line-86"></a><span class="p">}</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span> +<a id="line-89" name="line-89"></a><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-91" name="line-91"></a><span class="p">{</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_action_groups</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">);</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBAR_EDITOR</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-98" name="line-98"></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">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="p">{</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTION_GROUP</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-></span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">)</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="p">}</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">action</span><span class="p">;</span> +<a id="line-112" name="line-112"></a><span class="p">}</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-115" name="line-115"></a><span class="n">egg_toolbar_editor_set_ui_manager</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-117" name="line-117"></a><span class="p">{</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_UI_MANAGER</span><span class="w"> </span><span class="p">(</span><span class="n">manager</span><span class="p">));</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">manager</span><span class="p">);</span> +<a id="line-121" name="line-121"></a><span class="p">}</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-124" name="line-124"></a><span class="n">item_added_or_removed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">tpos</span><span class="p">,</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ipos</span><span class="p">,</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">)</span> +<a id="line-128" name="line-128"></a><span class="p">{</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">update_editor_sheet</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="p">}</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-133" name="line-133"></a><span class="n">toolbar_removed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">)</span> +<a id="line-136" name="line-136"></a><span class="p">{</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">update_editor_sheet</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="p">}</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-141" name="line-141"></a><span class="n">egg_toolbar_editor_disconnect_model</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">)</span> +<a id="line-142" name="line-142"></a><span class="p">{</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">EggToolbarEditorPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">handler</span><span class="p">;</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-147" name="line-147"></a> +<a id="line-148" name="line-148"></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"><</span><span class="w"> </span><span class="n">SIGNAL_HANDLER_LIST_SIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">{</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">handler</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sig_handlers</span><span class="p">[</span><span class="n">i</span><span class="p">];</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">{</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_signal_handler_is_connected</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">handler</span><span class="p">))</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">{</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">handler</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">}</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sig_handlers</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">}</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">}</span> +<a id="line-162" name="line-162"></a><span class="p">}</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="kt">void</span> +<a id="line-165" name="line-165"></a><span class="n">egg_toolbar_editor_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-167" name="line-167"></a><span class="p">{</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">EggToolbarEditorPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-169" name="line-169"></a> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBAR_EDITOR</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">));</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-174" name="line-174"></a> +<a id="line-175" name="line-175"></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">-></span><span class="n">model</span><span class="p">)</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="p">{</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">model</span><span class="p">))</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">egg_toolbar_editor_disconnect_model</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">);</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="p">}</span> +<a id="line-182" name="line-182"></a> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">);</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">update_editor_sheet</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">);</span> +<a id="line-186" name="line-186"></a> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sig_handlers</span><span class="p">[</span><span class="n">SIGNAL_HANDLER_ITEM_ADDED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"item_added"</span><span class="p">,</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">item_added_or_removed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sig_handlers</span><span class="p">[</span><span class="n">SIGNAL_HANDLER_ITEM_REMOVED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"item_removed"</span><span class="p">,</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">item_added_or_removed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sig_handlers</span><span class="p">[</span><span class="n">SIGNAL_HANDLER_TOOLBAR_REMOVED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"toolbar_removed"</span><span class="p">,</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_removed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="p">}</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> +<a id="line-199" name="line-199"></a><span class="n">egg_toolbar_editor_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-203" name="line-203"></a><span class="p">{</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_TOOLBAR_EDITOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="p">{</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_UI_MANAGER</span><span class="p">:</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">egg_toolbar_editor_set_ui_manager</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TOOLBARS_MODEL</span><span class="p">:</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">egg_toolbar_editor_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="p">}</span> +<a id="line-215" name="line-215"></a><span class="p">}</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> +<a id="line-218" name="line-218"></a><span class="n">egg_toolbar_editor_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-222" name="line-222"></a><span class="p">{</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_TOOLBAR_EDITOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-224" name="line-224"></a> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="p">{</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_UI_MANAGER</span><span class="p">:</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">);</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TOOLBARS_MODEL</span><span class="p">:</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="p">}</span> +<a id="line-234" name="line-234"></a><span class="p">}</span> +<a id="line-235" name="line-235"></a> +<a id="line-236" name="line-236"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-237" name="line-237"></a><span class="n">egg_toolbar_editor_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditorClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-238" name="line-238"></a><span class="p">{</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbar_editor_finalize</span><span class="p">;</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbar_editor_set_property</span><span class="p">;</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbar_editor_get_property</span><span class="p">;</span> +<a id="line-244" name="line-244"></a> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">PROP_UI_MANAGER</span><span class="p">,</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"ui-manager"</span><span class="p">,</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="s">"UI-Manager"</span><span class="p">,</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="s">"UI Manager"</span><span class="p">,</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">GTK_TYPE_UI_MANAGER</span><span class="p">,</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="w"> </span><span class="o">|</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="p">));</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">PROP_TOOLBARS_MODEL</span><span class="p">,</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"model"</span><span class="p">,</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="s">"Model"</span><span class="p">,</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="s">"Toolbars Model"</span><span class="p">,</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">EGG_TYPE_TOOLBARS_MODEL</span><span class="p">,</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="w"> </span><span class="o">|</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT</span><span class="p">));</span> +<a id="line-261" name="line-261"></a> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">gtk_widget_class_set_css_name</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span><span class="w"> </span><span class="s">"EggToolbarEditor"</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="p">}</span> +<a id="line-265" name="line-265"></a> +<a id="line-266" name="line-266"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-267" name="line-267"></a><span class="n">egg_toolbar_editor_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-268" name="line-268"></a><span class="p">{</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_TOOLBAR_EDITOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">)</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">{</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="p">);</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="p">}</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">)</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">{</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">egg_toolbar_editor_disconnect_model</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">);</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="p">}</span> +<a id="line-281" name="line-281"></a> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_list</span><span class="p">);</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">factory_list</span><span class="p">);</span> +<a id="line-284" name="line-284"></a> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">egg_toolbar_editor_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-286" name="line-286"></a><span class="p">}</span> +<a id="line-287" name="line-287"></a> +<a id="line-288" name="line-288"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-289" name="line-289"></a><span class="n">egg_toolbar_editor_new</span><span class="w"> </span><span class="p">(</span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-291" name="line-291"></a><span class="p">{</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TYPE_TOOLBAR_EDITOR</span><span class="p">,</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="s">"ui-manager"</span><span class="p">,</span><span class="w"> </span><span class="n">manager</span><span class="p">,</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="s">"model"</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">,</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-296" name="line-296"></a><span class="p">}</span> +<a id="line-297" name="line-297"></a> +<a id="line-298" name="line-298"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-299" name="line-299"></a><span class="n">drag_begin_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">)</span> +<a id="line-301" name="line-301"></a><span class="p">{</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-303" name="line-303"></a><span class="p">}</span> +<a id="line-304" name="line-304"></a> +<a id="line-305" name="line-305"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-306" name="line-306"></a><span class="n">drag_end_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">)</span> +<a id="line-308" name="line-308"></a><span class="p">{</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-310" name="line-310"></a><span class="p">}</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-313" name="line-313"></a><span class="n">drag_data_get_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection_data</span><span class="p">,</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">)</span> +<a id="line-319" name="line-319"></a><span class="p">{</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">target</span><span class="p">;</span> +<a id="line-321" name="line-321"></a> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">target</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"egg-item-name"</span><span class="p">);</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-324" name="line-324"></a> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">gtk_selection_data_set</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_selection_data_get_target</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">),</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="p">));</span> +<a id="line-327" name="line-327"></a><span class="p">}</span> +<a id="line-328" name="line-328"></a> +<a id="line-329" name="line-329"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-330" name="line-330"></a><span class="n">elide_underscores</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">original</span><span class="p">)</span> +<a id="line-331" name="line-331"></a><span class="p">{</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">q</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">last_underscore</span><span class="p">;</span> +<a id="line-335" name="line-335"></a> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">original</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">last_underscore</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-338" name="line-338"></a> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">original</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">)</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="p">{</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">last_underscore</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'_'</span><span class="p">)</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">last_underscore</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">else</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="p">{</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">last_underscore</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="o">*</span><span class="n">q</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="p">}</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="p">}</span> +<a id="line-349" name="line-349"></a> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="o">*</span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-351" name="line-351"></a> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-353" name="line-353"></a><span class="p">}</span> +<a id="line-354" name="line-354"></a> +<a id="line-355" name="line-355"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-356" name="line-356"></a><span class="n">set_drag_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span> +<a id="line-357" name="line-357"></a><span class="p">{</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">GdkCursor</span><span class="w"> </span><span class="o">*</span><span class="n">cursor</span><span class="p">;</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-362" name="line-362"></a> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cursor_new_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">GDK_HAND2</span><span class="p">);</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">gdk_window_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">cursor</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">cursor</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="p">}</span> +<a id="line-368" name="line-368"></a> +<a id="line-369" name="line-369"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-370" name="line-370"></a><span class="n">event_box_realize_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GtkImage</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="p">)</span> +<a id="line-371" name="line-371"></a><span class="p">{</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">GtkImageType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span> +<a id="line-373" name="line-373"></a> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">set_drag_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-375" name="line-375"></a> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_get_storage_type</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">);</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">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_IMAGE_STOCK</span><span class="p">)</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="p">{</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">stock_id</span><span class="p">;</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-381" name="line-381"></a> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">gtk_image_get_stock</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">stock_id</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_render_icon</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">stock_id</span><span class="p">,</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_LARGE_TOOLBAR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">gtk_drag_source_set_icon_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="p">}</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="k">else</span><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">GTK_IMAGE_ICON_NAME</span><span class="p">)</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="p">{</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">;</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">GtkIconTheme</span><span class="w"> </span><span class="o">*</span><span class="n">icon_theme</span><span class="p">;</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-395" name="line-395"></a> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">gtk_image_get_icon_name</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">icon_theme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_get_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span> +<a id="line-399" name="line-399"></a> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_icon_size_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_SIZE_LARGE_TOOLBAR</span><span class="p">,</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">))</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="p">{</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">24</span><span class="p">;</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="p">}</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_load_icon</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="p">,</span><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">))</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-410" name="line-410"></a> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">gtk_drag_source_set_icon_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-413" name="line-413"></a> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="p">}</span> +<a id="line-415" name="line-415"></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">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_IMAGE_PIXBUF</span><span class="p">)</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="p">{</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">);</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">gtk_drag_source_set_icon_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">}</span> +<a id="line-420" name="line-420"></a><span class="p">}</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-423" name="line-423"></a><span class="n">editor_create_item</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">,</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">GtkImage</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="p">,</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">label_text</span><span class="p">,</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">GdkDragAction</span><span class="w"> </span><span class="n">action</span><span class="p">)</span> +<a id="line-427" name="line-427"></a><span class="p">{</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">event_box</span><span class="p">;</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">;</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label_no_mnemonic</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-432" name="line-432"></a> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">event_box</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_event_box_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">gtk_event_box_set_visible_window</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EVENT_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">event_box</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">event_box</span><span class="p">);</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">gtk_drag_source_set</span><span class="w"> </span><span class="p">(</span><span class="n">event_box</span><span class="p">,</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">GDK_BUTTON1_MASK</span><span class="p">,</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">source_drag_types</span><span class="p">,</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">source_drag_types</span><span class="p">),</span><span class="w"> </span><span class="n">action</span><span class="p">);</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">event_box</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_data_get"</span><span class="p">,</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">drag_data_get_cb</span><span class="p">),</span><span class="w"> </span><span class="n">editor</span><span class="p">);</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">g_signal_connect_after</span><span class="w"> </span><span class="p">(</span><span class="n">event_box</span><span class="p">,</span><span class="w"> </span><span class="s">"realize"</span><span class="p">,</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">event_box_realize_cb</span><span class="p">),</span><span class="w"> </span><span class="n">icon</span><span class="p">);</span> +<a id="line-443" name="line-443"></a> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="p">)</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="p">{</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">event_box</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_begin"</span><span class="p">,</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">drag_begin_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">event_box</span><span class="p">,</span><span class="w"> </span><span class="s">"drag_end"</span><span class="p">,</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">drag_end_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="p">}</span> +<a id="line-451" name="line-451"></a> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">event_box</span><span class="p">),</span><span class="w"> </span><span class="n">vbox</span><span class="p">);</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">));</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">label_no_mnemonic</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">elide_underscores</span><span class="w"> </span><span class="p">(</span><span class="n">label_text</span><span class="p">);</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="n">label_no_mnemonic</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">label_no_mnemonic</span><span class="p">);</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">);</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-463" name="line-463"></a> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">event_box</span><span class="p">;</span> +<a id="line-465" name="line-465"></a><span class="p">}</span> +<a id="line-466" name="line-466"></a> +<a id="line-467" name="line-467"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-468" name="line-468"></a><span class="n">editor_create_item_from_name</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">,</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">name</span><span class="p">,</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">GdkDragAction</span><span class="w"> </span><span class="n">drag_action</span><span class="p">)</span> +<a id="line-471" name="line-471"></a><span class="p">{</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">item_name</span><span class="p">;</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">short_label</span><span class="p">;</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">collate_key</span><span class="p">;</span> +<a id="line-476" name="line-476"></a> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"_separator"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">{</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="p">;</span> +<a id="line-480" name="line-480"></a> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_egg_editable_toolbar_new_separator_image</span><span class="w"> </span><span class="p">();</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">short_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Separator"</span><span class="p">);</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">item_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">collate_key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_collate_key</span><span class="w"> </span><span class="p">(</span><span class="n">short_label</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">editor_create_item</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">),</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">short_label</span><span class="p">,</span><span class="w"> </span><span class="n">drag_action</span><span class="p">);</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="p">}</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="k">else</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="p">{</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="p">;</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">stock_id</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-493" name="line-493"></a> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_action</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-495" name="line-495"></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">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-496" name="line-496"></a> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">g_object_get</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="s">"icon-name"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="s">"stock-id"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">stock_id</span><span class="p">,</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="s">"short-label"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">short_label</span><span class="p">,</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-502" name="line-502"></a> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="cm">/* This is a workaround to catch named icons. */</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">icon_name</span><span class="p">)</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_LARGE_TOOLBAR</span><span class="p">);</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">else</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="n">stock_id</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">stock_id</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"gtk-dnd"</span><span class="p">,</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_LARGE_TOOLBAR</span><span class="p">);</span> +<a id="line-510" name="line-510"></a> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">item_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">collate_key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_collate_key</span><span class="w"> </span><span class="p">(</span><span class="n">short_label</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">editor_create_item</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">),</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">short_label</span><span class="p">,</span><span class="w"> </span><span class="n">drag_action</span><span class="p">);</span> +<a id="line-515" name="line-515"></a> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">short_label</span><span class="p">);</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">stock_id</span><span class="p">);</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">icon_name</span><span class="p">);</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="p">}</span> +<a id="line-520" name="line-520"></a> +<a id="line-521" name="line-521"></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">item</span><span class="p">),</span><span class="w"> </span><span class="s">"egg-collate-key"</span><span class="p">,</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="w"> </span><span class="n">collate_key</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-523" name="line-523"></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">item</span><span class="p">),</span><span class="w"> </span><span class="s">"egg-item-name"</span><span class="p">,</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="w"> </span><span class="n">item_name</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-525" name="line-525"></a> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="p">;</span> +<a id="line-527" name="line-527"></a><span class="p">}</span> +<a id="line-528" name="line-528"></a> +<a id="line-529" name="line-529"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-530" name="line-530"></a><span class="n">append_grid</span><span class="w"> </span><span class="p">(</span><span class="n">GtkGrid</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">items</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">)</span> +<a id="line-531" name="line-531"></a><span class="p">{</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="p">{</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-536" name="line-536"></a> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="p">{</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_separator_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">);</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">gtk_widget_set_vexpand</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-543" name="line-543"></a> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">y</span><span class="o">++</span><span class="p">;</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="p">}</span> +<a id="line-547" name="line-547"></a> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;</span><span class="w"> </span><span class="n">items</span><span class="w"> </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">items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">items</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="p">{</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">items</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">gtk_widget_set_vexpand</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-554" name="line-554"></a> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">width</span><span class="p">)</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="p">{</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">y</span><span class="o">++</span><span class="p">;</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="p">}</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">x</span><span class="o">++</span><span class="p">;</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="p">}</span> +<a id="line-563" name="line-563"></a> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">y</span><span class="o">++</span><span class="p">;</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="p">}</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-567" name="line-567"></a><span class="p">}</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-570" name="line-570"></a><span class="n">update_editor_sheet</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">)</span> +<a id="line-571" name="line-571"></a><span class="p">{</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">items</span><span class="p">;</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">to_move</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">to_copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">;</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">viewport</span><span class="p">;</span> +<a id="line-577" name="line-577"></a> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBAR_EDITOR</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">));</span> +<a id="line-579" name="line-579"></a> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="cm">/* Create new grid. */</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">grid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_grid_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">grid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid</span><span class="p">;</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">gtk_grid_set_row_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">24</span><span class="p">);</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">);</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">gtk_drag_dest_set</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_ALL</span><span class="p">,</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">dest_drag_types</span><span class="p">,</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">dest_drag_types</span><span class="p">),</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="p">);</span> +<a id="line-589" name="line-589"></a> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="cm">/* Build two lists of items (one for copying, one for moving). */</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name_avail</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="p">{</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-597" name="line-597"></a> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_index</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_ptr_array_remove_index_fast</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-600" name="line-600"></a> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_INFINITE</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="p">{</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">editor_create_item_from_name</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="p">);</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">to_move</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_insert_sorted</span><span class="w"> </span><span class="p">(</span><span class="n">to_move</span><span class="p">,</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">compare_items</span><span class="p">);</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="p">}</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="k">else</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="p">{</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">editor_create_item_from_name</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="p">);</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">to_copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_insert_sorted</span><span class="w"> </span><span class="p">(</span><span class="n">to_copy</span><span class="p">,</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">compare_items</span><span class="p">);</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="p">}</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="p">}</span> +<a id="line-615" name="line-615"></a> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="cm">/* Add them to the sheet. */</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_grid</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">to_move</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_grid</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">to_copy</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span> +<a id="line-620" name="line-620"></a> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">to_move</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">to_copy</span><span class="p">);</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-624" name="line-624"></a> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="cm">/* Delete old table/grid. */</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">viewport</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_bin_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BIN</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scrolled_window</span><span class="p">));</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">viewport</span><span class="p">)</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="p">{</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">viewport</span><span class="p">),</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_bin_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BIN</span><span class="w"> </span><span class="p">(</span><span class="n">viewport</span><span class="p">)));</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="p">}</span> +<a id="line-632" name="line-632"></a> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="cm">/* Add grid to window. */</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">gtk_scrolled_window_add_with_viewport</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scrolled_window</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">);</span> +<a id="line-636" name="line-636"></a><span class="p">}</span> +<a id="line-637" name="line-637"></a> +<a id="line-638" name="line-638"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-639" name="line-639"></a><span class="n">setup_editor</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">)</span> +<a id="line-640" name="line-640"></a><span class="p">{</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">scrolled_window</span><span class="p">;</span> +<a id="line-642" name="line-642"></a> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">gtk_orientable_set_orientation</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTABLE</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">),</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">);</span> +<a id="line-645" name="line-645"></a> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">scrolled_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scrolled_window_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">editor</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scrolled_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scrolled_window</span><span class="p">;</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">);</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_policy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">),</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">);</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">),</span><span class="w"> </span><span class="n">scrolled_window</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-653" name="line-653"></a><span class="p">}</span> +<a id="line-654" name="line-654"></a> +<a id="line-655" name="line-655"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-656" name="line-656"></a><span class="n">egg_toolbar_editor_init</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">)</span> +<a id="line-657" name="line-657"></a><span class="p">{</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbar_editor_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">);</span> +<a id="line-659" name="line-659"></a> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-662" name="line-662"></a> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">setup_editor</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">);</span> +<a id="line-664" name="line-664"></a><span class="p">}</span> +<a id="line-665" name="line-665"></a> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/10.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/10.html new file mode 100644 index 0000000..9dcea05 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/10.html @@ -0,0 +1,1293 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-image-jpeg.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-image-jpeg.c</p> +<a href="10.html#line-207"> unreadVariable 207</a><a href="10.html#line-213"> unreadVariable 213</a><a href="10.html#line-217"> unreadVariable 217</a><a href="10.html#line-399"> unreadVariable 399</a><a href="10.html#line-403"> unreadVariable 403</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* This code is based on the jpeg saving code from gdk-pixbuf. Full copyright</span> +<a id="line-2" name="line-2"></a><span class="cm"> * notice is given in the following:</span> +<a id="line-3" name="line-3"></a><span class="cm"> */</span> +<a id="line-4" name="line-4"></a><span class="cm">/* GdkPixbuf library - JPEG image loader</span> +<a id="line-5" name="line-5"></a><span class="cm"> *</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Copyright (C) 1999 Michael Zucchi</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Copyright (C) 1999 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"> * Progressive loading code Copyright (C) 1999 Red Hat, Inc.</span> +<a id="line-10" name="line-10"></a><span class="cm"> *</span> +<a id="line-11" name="line-11"></a><span class="cm"> * Authors: Michael Zucchi <[email protected]></span> +<a id="line-12" name="line-12"></a><span class="cm"> * Federico Mena-Quintero <[email protected]></span> +<a id="line-13" name="line-13"></a><span class="cm"> * Michael Fulbright <[email protected]></span> +<a id="line-14" name="line-14"></a><span class="cm"> *</span> +<a id="line-15" name="line-15"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span> +<a id="line-16" name="line-16"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span> +<a id="line-17" name="line-17"></a><span class="cm"> * License as published by the Free Software Foundation; either</span> +<a id="line-18" name="line-18"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span> +<a id="line-19" name="line-19"></a><span class="cm"> *</span> +<a id="line-20" name="line-20"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span> +<a id="line-21" name="line-21"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-22" name="line-22"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> +<a id="line-23" name="line-23"></a><span class="cm"> * Lesser General Public License for more details.</span> +<a id="line-24" name="line-24"></a><span class="cm"> *</span> +<a id="line-25" name="line-25"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span> +<a id="line-26" name="line-26"></a><span class="cm"> * License along with this library; if not, write to the</span> +<a id="line-27" name="line-27"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span> +<a id="line-28" name="line-28"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span> +<a id="line-29" name="line-29"></a><span class="cm"> */</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-33" name="line-33"></a><span class="cp">#endif</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image-jpeg.h"</span> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image-private.h"</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="cp">#if HAVE_JPEG</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><sys/types.h></span> +<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><unistd.h></span> +<a id="line-42" name="line-42"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span> +<a id="line-43" name="line-43"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span> +<a id="line-44" name="line-44"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-45" name="line-45"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><setjmp.h></span> +<a id="line-46" name="line-46"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><jpeglib.h></span> +<a id="line-47" name="line-47"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><jerror.h></span> +<a id="line-48" name="line-48"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"transupp.h"</span> +<a id="line-49" name="line-49"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-50" name="line-50"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk-pixbuf/gdk-pixbuf.h></span> +<a id="line-51" name="line-51"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-52" name="line-52"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-53" name="line-53"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-data.h></span> +<a id="line-54" name="line-54"></a><span class="cp">#endif</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="cp">#ifdef G_OS_WIN32</span> +<a id="line-57" name="line-57"></a><span class="cp">#define sigjmp_buf jmp_buf</span> +<a id="line-58" name="line-58"></a><span class="cp">#define sigsetjmp(env, savesigs) setjmp (env)</span> +<a id="line-59" name="line-59"></a><span class="cp">#define siglongjmp longjmp</span> +<a id="line-60" name="line-60"></a><span class="cp">#endif</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">EOM_SAVE_NONE</span><span class="p">,</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">EOM_SAVE_JPEG_AS_JPEG</span><span class="p">,</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">EOM_SAVE_ANY_AS_JPEG</span> +<a id="line-66" name="line-66"></a><span class="p">}</span><span class="w"> </span><span class="n">EomJpegSaveMethod</span><span class="p">;</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="cm">/* error handler data */</span> +<a id="line-69" name="line-69"></a><span class="k">struct</span><span class="w"> </span><span class="nc">error_handler_data</span><span class="w"> </span><span class="p">{</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">jpeg_error_mgr</span><span class="w"> </span><span class="n">pub</span><span class="p">;</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">sigjmp_buf</span><span class="w"> </span><span class="n">setjmp_buffer</span><span class="p">;</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">;</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span> +<a id="line-74" name="line-74"></a><span class="p">};</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-77" name="line-77"></a><span class="nf">fatal_error_handler</span><span class="w"> </span><span class="p">(</span><span class="n">j_common_ptr</span><span class="w"> </span><span class="n">cinfo</span><span class="p">)</span> +<a id="line-78" name="line-78"></a><span class="p">{</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">error_handler_data</span><span class="w"> </span><span class="o">*</span><span class="n">errmgr</span><span class="p">;</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="n">JMSG_LENGTH_MAX</span><span class="p">];</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">errmgr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="k">struct</span><span class="w"> </span><span class="nc">error_handler_data</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">cinfo</span><span class="o">-></span><span class="n">err</span><span class="p">;</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="cm">/* Create the message */</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">cinfo</span><span class="o">-></span><span class="n">err</span><span class="o">-></span><span class="n">format_message</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">cinfo</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="cm">/* broken check for *error == NULL for robustness against</span> +<a id="line-88" name="line-88"></a><span class="cm"> * crappy JPEG library</span> +<a id="line-89" name="line-89"></a><span class="cm"> */</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">errmgr</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">*</span><span class="n">errmgr</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">errmgr</span><span class="o">-></span><span class="n">filename</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">errmgr</span><span class="o">-></span><span class="n">error</span><span class="p">,</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="s">"Error interpreting JPEG image file: %s</span><span class="se">\n\n</span><span class="s">%s"</span><span class="p">,</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="p">}</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">siglongjmp</span><span class="w"> </span><span class="p">(</span><span class="n">errmgr</span><span class="o">-></span><span class="n">setjmp_buffer</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-101" name="line-101"></a> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-103" name="line-103"></a><span class="p">}</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-106" name="line-106"></a><span class="nf">output_message_handler</span><span class="w"> </span><span class="p">(</span><span class="n">j_common_ptr</span><span class="w"> </span><span class="n">cinfo</span><span class="p">)</span> +<a id="line-107" name="line-107"></a><span class="p">{</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="cm">/* This method keeps libjpeg from dumping crap to stderr */</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="cm">/* do nothing */</span> +<a id="line-110" name="line-110"></a><span class="p">}</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="kt">void</span> +<a id="line-113" name="line-113"></a><span class="nf">init_transform_info</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span> +<a id="line-114" name="line-114"></a><span class="p">{</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">EomTransformType</span><span class="w"> </span><span class="n">transformation</span><span class="p">;</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">JXFORM_CODE</span><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_NONE</span><span class="p">;</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">memset</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="mh">0x0</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">jpeg_transform_info</span><span class="p">));</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</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">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_compose</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">,</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">}</span> +<a id="line-134" name="line-134"></a> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">composition</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">transformation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_get_transform_type</span><span class="w"> </span><span class="p">(</span><span class="n">composition</span><span class="p">);</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">transformation</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_90</span><span class="p">:</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_ROT_90</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_270</span><span class="p">:</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_ROT_270</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_180</span><span class="p">:</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_ROT_180</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">:</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_FLIP_H</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">:</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_FLIP_V</span><span class="p">;</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_TRANSPOSE</span><span class="p">:</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_TRANSPOSE</span><span class="p">;</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_TRANSVERSE</span><span class="p">:</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_TRANSVERSE</span><span class="p">;</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"EomTransformType not supported!"</span><span class="p">);</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="cm">/* Fallthrough intended here. */</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_NONE</span><span class="p">:</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">trans_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JXFORM_NONE</span><span class="p">;</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">}</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="p">}</span> +<a id="line-168" name="line-168"></a> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">transform</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">trans_code</span><span class="p">;</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">trim</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-171" name="line-171"></a><span class="cp">#if JPEG_LIB_VERSION >= 80</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">crop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-173" name="line-173"></a><span class="cp">#endif</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">force_grayscale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">composition</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="p">}</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-180" name="line-180"></a><span class="nf">_save_jpeg_as_jpeg</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">,</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-182" name="line-182"></a><span class="p">{</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">jpeg_decompress_struct</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">;</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">jpeg_compress_struct</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">;</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">error_handler_data</span><span class="w"> </span><span class="n">jsrcerr</span><span class="p">,</span><span class="w"> </span><span class="n">jdsterr</span><span class="p">;</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="n">transformoption</span><span class="p">;</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">;</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">dst_coef_arrays</span><span class="p">;</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="kt">FILE</span><span class="w"> </span><span class="o">*</span><span class="n">output_file</span><span class="p">;</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="kt">FILE</span><span class="w"> </span><span class="o">*</span><span class="n">input_file</span><span class="p">;</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">infile_uri</span><span class="p">;</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-196" name="line-196"></a> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">init_transform_info</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">transformoption</span><span class="p">);</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="cm">/* Initialize the JPEG decompression object with default error</span> +<a id="line-202" name="line-202"></a><span class="cm"> * handling. */</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">srcinfo</span><span class="p">.</span><span class="n">err</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">jpeg_std_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="p">(</span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">pub</span><span class="p">));</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">pub</span><span class="p">.</span><span class="n">error_exit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fatal_error_handler</span><span class="p">;</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">pub</span><span class="p">.</span><span class="n">output_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output_message_handler</span><span class="p">;</span> +<a id="line-207" name="line-207"></a><span class="hll"><span class="w"> </span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">error</span><span class="p">;</span><span class="error2"><--- Variable 'jsrcerr.error' is assigned a value that is never used.</span> +</span><a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">jpeg_create_decompress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">);</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="cm">/* Initialize the JPEG compression object with default error</span> +<a id="line-212" name="line-212"></a><span class="cm"> * handling. */</span> +<a id="line-213" name="line-213"></a><span class="hll"><span class="w"> </span><span class="n">jdsterr</span><span class="p">.</span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">file</span><span class="p">;</span><span class="error2"><--- Variable 'jdsterr.filename' is assigned a value that is never used.</span> +</span><a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">dstinfo</span><span class="p">.</span><span class="n">err</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">jpeg_std_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="p">(</span><span class="n">jdsterr</span><span class="p">.</span><span class="n">pub</span><span class="p">));</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">jdsterr</span><span class="p">.</span><span class="n">pub</span><span class="p">.</span><span class="n">error_exit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fatal_error_handler</span><span class="p">;</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">jdsterr</span><span class="p">.</span><span class="n">pub</span><span class="p">.</span><span class="n">output_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output_message_handler</span><span class="p">;</span> +<a id="line-217" name="line-217"></a><span class="hll"><span class="w"> </span><span class="n">jdsterr</span><span class="p">.</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">error</span><span class="p">;</span><span class="error2"><--- Variable 'jdsterr.error' is assigned a value that is never used.</span> +</span><a id="line-218" name="line-218"></a> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">jpeg_create_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-220" name="line-220"></a> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">dstinfo</span><span class="p">.</span><span class="n">err</span><span class="o">-></span><span class="n">trace_level</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">dstinfo</span><span class="p">.</span><span class="n">arith_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">dstinfo</span><span class="p">.</span><span class="n">optimize_coding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-224" name="line-224"></a> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">pub</span><span class="p">.</span><span class="n">trace_level</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">jdsterr</span><span class="p">.</span><span class="n">pub</span><span class="p">.</span><span class="n">trace_level</span><span class="p">;</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">srcinfo</span><span class="p">.</span><span class="n">mem</span><span class="o">-></span><span class="n">max_memory_to_use</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">.</span><span class="n">mem</span><span class="o">-></span><span class="n">max_memory_to_use</span><span class="p">;</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="cm">/* Open the output file. */</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="cm">/* FIXME: Make this a GIO aware input manager */</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">infile_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">input_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fopen</span><span class="w"> </span><span class="p">(</span><span class="n">infile_uri</span><span class="p">,</span><span class="w"> </span><span class="s">"rb"</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">input_file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Input file not openable: %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">infile_uri</span><span class="p">);</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">filename</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">infile_uri</span><span class="p">);</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">infile_uri</span><span class="p">);</span> +<a id="line-239" name="line-239"></a> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">output_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fopen</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="s">"wb"</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output_file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Output file not openable: %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">);</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">input_file</span><span class="p">);</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">filename</span><span class="p">);</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="p">}</span> +<a id="line-247" name="line-247"></a> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sigsetjmp</span><span class="w"> </span><span class="p">(</span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">setjmp_buffer</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">output_file</span><span class="p">);</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">input_file</span><span class="p">);</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">jpeg_destroy_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">jpeg_destroy_decompress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">);</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">filename</span><span class="p">);</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">}</span> +<a id="line-256" name="line-256"></a> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sigsetjmp</span><span class="w"> </span><span class="p">(</span><span class="n">jdsterr</span><span class="p">.</span><span class="n">setjmp_buffer</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">output_file</span><span class="p">);</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">input_file</span><span class="p">);</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">jpeg_destroy_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">jpeg_destroy_decompress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">);</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">filename</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">}</span> +<a id="line-265" name="line-265"></a> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="cm">/* Specify data source for decompression */</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">jpeg_stdio_src</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">input_file</span><span class="p">);</span> +<a id="line-268" name="line-268"></a> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="cm">/* Enable saving of extra markers that we want to copy */</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">jcopy_markers_setup</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JCOPYOPT_DEFAULT</span><span class="p">);</span> +<a id="line-271" name="line-271"></a> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="cm">/* Read file header */</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">jpeg_read_header</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-274" name="line-274"></a> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="cm">/* Any space needed by a transform option must be requested before</span> +<a id="line-276" name="line-276"></a><span class="cm"> * jpeg_read_coefficients so that memory allocation will be done right.</span> +<a id="line-277" name="line-277"></a><span class="cm"> */</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">jtransform_request_workspace</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">transformoption</span><span class="p">);</span> +<a id="line-279" name="line-279"></a> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* Read source file as DCT coefficients */</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">src_coef_arrays</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">jpeg_read_coefficients</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">);</span> +<a id="line-282" name="line-282"></a> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="cm">/* Initialize destination compression parameters from source values */</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">jpeg_copy_critical_parameters</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-285" name="line-285"></a> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="cm">/* Adjust destination parameters if required by transform options;</span> +<a id="line-287" name="line-287"></a><span class="cm"> * also find out which set of coefficient arrays will hold the output.</span> +<a id="line-288" name="line-288"></a><span class="cm"> */</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">jtransform_adjust_parameters</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">,</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="o">&</span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="o">&</span><span class="n">transformoption</span><span class="p">);</span> +<a id="line-293" name="line-293"></a> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="cm">/* Specify data destination for compression */</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">jpeg_stdio_dest</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">output_file</span><span class="p">);</span> +<a id="line-296" name="line-296"></a> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="cm">/* Start compressor (note no image data is actually written here) */</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">jpeg_write_coefficients</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">);</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="cm">/* handle EXIF/IPTC data explicitly */</span> +<a id="line-301" name="line-301"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="cm">/* exif_chunk and exif are mutally exclusvie, this is what we assure here */</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="p">{</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exif_buf</span><span class="p">;</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">exif_buf_len</span><span class="p">;</span> +<a id="line-308" name="line-308"></a> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">exif_data_save_data</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">exif_buf</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">exif_buf_len</span><span class="p">);</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">jpeg_write_marker</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPEG_APP0</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">exif_buf</span><span class="p">,</span><span class="w"> </span><span class="n">exif_buf_len</span><span class="p">);</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">exif_buf</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="p">}</span> +<a id="line-313" name="line-313"></a><span class="cp">#else</span> +<a id="line-314" name="line-314"></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">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">jpeg_write_marker</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPEG_APP0</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk_len</span><span class="p">);</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="p">}</span> +<a id="line-317" name="line-317"></a><span class="cp">#endif</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="cm">/* FIXME: Consider IPTC data too */</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="cm">/* Copy to the output file any extra markers that we want to</span> +<a id="line-321" name="line-321"></a><span class="cm"> * preserve */</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">jcopy_markers_execute</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JCOPYOPT_DEFAULT</span><span class="p">);</span> +<a id="line-323" name="line-323"></a> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="cm">/* Execute image transformation, if any */</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">jtransform_execute_transformation</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">,</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="o">&</span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="o">&</span><span class="n">transformoption</span><span class="p">);</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="cm">/* Finish compression and release memory */</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">jpeg_finish_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">jpeg_destroy_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">jpeg_finish_decompress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">);</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">jpeg_destroy_decompress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">srcinfo</span><span class="p">);</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">jsrcerr</span><span class="p">.</span><span class="n">filename</span><span class="p">);</span> +<a id="line-336" name="line-336"></a> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="cm">/* Close files */</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">input_file</span><span class="p">);</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">output_file</span><span class="p">);</span> +<a id="line-340" name="line-340"></a> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-342" name="line-342"></a><span class="p">}</span> +<a id="line-343" name="line-343"></a> +<a id="line-344" name="line-344"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-345" name="line-345"></a><span class="nf">_save_any_as_jpeg</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">,</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-347" name="line-347"></a><span class="p">{</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">jpeg_compress_struct</span><span class="w"> </span><span class="n">cinfo</span><span class="p">;</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">ptr</span><span class="p">;</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">pixels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">JSAMPROW</span><span class="w"> </span><span class="o">*</span><span class="n">jbuf</span><span class="p">;</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="k">volatile</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">quality</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">75</span><span class="p">;</span><span class="w"> </span><span class="cm">/* default; must be between 0 and 100 */</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">;</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">rowstride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="kt">FILE</span><span class="w"> </span><span class="o">*</span><span class="n">outfile</span><span class="p">;</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">error_handler_data</span><span class="w"> </span><span class="n">jerr</span><span class="p">;</span> +<a id="line-362" name="line-362"></a> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-364" name="line-364"></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">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-365" name="line-365"></a> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-368" name="line-368"></a> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">rowstride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_rowstride</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-372" name="line-372"></a> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="cm">/* no image data? abort */</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">pixels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_pixels</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-375" name="line-375"></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">pixels</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-376" name="line-376"></a> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">outfile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fopen</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="s">"wb"</span><span class="p">);</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="n">outfile</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="cm">/* FIXME: Better error message */</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">GDK_PIXBUF_ERROR</span><span class="p">,</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY</span><span class="p">,</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Couldn't create temporary file for saving: %s"</span><span class="p">),</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">file</span><span class="p">);</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="p">}</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="cm">/* allocate a small buffer to convert image data */</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_try_malloc</span><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">3</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">guchar</span><span class="p">));</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="o">!</span><span class="n">buf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">GDK_PIXBUF_ERROR</span><span class="p">,</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY</span><span class="p">,</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Couldn't allocate memory for loading JPEG file"</span><span class="p">));</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">outfile</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="p">}</span> +<a id="line-397" name="line-397"></a> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="cm">/* set up error handling */</span> +<a id="line-399" name="line-399"></a><span class="hll"><span class="w"> </span><span class="n">jerr</span><span class="p">.</span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">file</span><span class="p">;</span><span class="error2"><--- Variable 'jerr.filename' is assigned a value that is never used.</span> +</span><a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">cinfo</span><span class="p">.</span><span class="n">err</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">jpeg_std_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="p">(</span><span class="n">jerr</span><span class="p">.</span><span class="n">pub</span><span class="p">));</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">jerr</span><span class="p">.</span><span class="n">pub</span><span class="p">.</span><span class="n">error_exit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fatal_error_handler</span><span class="p">;</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">jerr</span><span class="p">.</span><span class="n">pub</span><span class="p">.</span><span class="n">output_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output_message_handler</span><span class="p">;</span> +<a id="line-403" name="line-403"></a><span class="hll"><span class="w"> </span><span class="n">jerr</span><span class="p">.</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">error</span><span class="p">;</span><span class="error2"><--- Variable 'jerr.error' is assigned a value that is never used.</span> +</span><a id="line-404" name="line-404"></a> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="cm">/* setup compress params */</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">jpeg_create_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">);</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">jpeg_stdio_dest</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">,</span><span class="w"> </span><span class="n">outfile</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">cinfo</span><span class="p">.</span><span class="n">image_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">w</span><span class="p">;</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">cinfo</span><span class="p">.</span><span class="n">image_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">h</span><span class="p">;</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">cinfo</span><span class="p">.</span><span class="n">input_components</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">cinfo</span><span class="p">.</span><span class="n">in_color_space</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">JCS_RGB</span><span class="p">;</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="cm">/* error exit routine */</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sigsetjmp</span><span class="w"> </span><span class="p">(</span><span class="n">jerr</span><span class="p">.</span><span class="n">setjmp_buffer</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-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">buf</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">outfile</span><span class="p">);</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">jpeg_destroy_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">);</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">}</span> +<a id="line-420" name="line-420"></a> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="cm">/* set desired jpeg quality if available */</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">target</span><span class="o">-></span><span class="n">jpeg_quality</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">quality</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="o">-></span><span class="n">jpeg_quality</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">100</span><span class="p">;</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="p">}</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="cm">/* set up jepg compression parameters */</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">jpeg_set_defaults</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">);</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">jpeg_set_quality</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">,</span><span class="w"> </span><span class="n">quality</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">jpeg_start_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-430" name="line-430"></a> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="cm">/* write EXIF/IPTC data explicitly */</span> +<a id="line-432" name="line-432"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="cm">/* exif_chunk and exif are mutally exclusvie, this is what we assure here */</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-435" name="line-435"></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">-></span><span class="n">exif</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="p">{</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exif_buf</span><span class="p">;</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">exif_buf_len</span><span class="p">;</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">exif_data_save_data</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">exif_buf</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">exif_buf_len</span><span class="p">);</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">jpeg_write_marker</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">,</span><span class="w"> </span><span class="mh">0xe1</span><span class="p">,</span><span class="w"> </span><span class="n">exif_buf</span><span class="p">,</span><span class="w"> </span><span class="n">exif_buf_len</span><span class="p">);</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">exif_buf</span><span class="p">);</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="p">}</span> +<a id="line-444" name="line-444"></a><span class="cp">#else</span> +<a id="line-445" name="line-445"></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">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">jpeg_write_marker</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPEG_APP0</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk_len</span><span class="p">);</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="p">}</span> +<a id="line-448" name="line-448"></a><span class="cp">#endif</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="cm">/* FIXME: Consider IPTC data too */</span> +<a id="line-450" name="line-450"></a> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="cm">/* get the start pointer */</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixels</span><span class="p">;</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="cm">/* go one scanline at a time... and save */</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">cinfo</span><span class="p">.</span><span class="n">next_scanline</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">cinfo</span><span class="p">.</span><span class="n">image_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="cm">/* convert scanline from ARGB to RGB packed */</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">w</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="p">(</span><span class="n">buf</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="mi">3</span><span class="p">]),</span><span class="w"> </span><span class="o">&</span><span class="p">(</span><span class="n">ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">rowstride</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">j</span><span class="o">*</span><span class="p">(</span><span class="n">rowstride</span><span class="o">/</span><span class="n">w</span><span class="p">)]),</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span> +<a id="line-459" name="line-459"></a> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="cm">/* write scanline */</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">jbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">JSAMPROW</span><span class="w"> </span><span class="o">*</span><span class="p">)(</span><span class="o">&</span><span class="n">buf</span><span class="p">);</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">jpeg_write_scanlines</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">,</span><span class="w"> </span><span class="n">jbuf</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">y</span><span class="o">++</span><span class="p">;</span> +<a id="line-465" name="line-465"></a> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="p">}</span> +<a id="line-467" name="line-467"></a> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="cm">/* finish off */</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">jpeg_finish_compress</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">);</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">jpeg_destroy_compress</span><span class="p">(</span><span class="o">&</span><span class="n">cinfo</span><span class="p">);</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">);</span> +<a id="line-472" name="line-472"></a> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">fclose</span><span class="w"> </span><span class="p">(</span><span class="n">outfile</span><span class="p">);</span> +<a id="line-474" name="line-474"></a> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-476" name="line-476"></a><span class="p">}</span> +<a id="line-477" name="line-477"></a> +<a id="line-478" name="line-478"></a><span class="n">gboolean</span> +<a id="line-479" name="line-479"></a><span class="nf">eom_image_jpeg_save_file</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">target</span><span class="p">,</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-482" name="line-482"></a><span class="p">{</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">EomJpegSaveMethod</span><span class="w"> </span><span class="n">method</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SAVE_NONE</span><span class="p">;</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">source_is_jpeg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">target_is_jpeg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-487" name="line-487"></a> +<a id="line-488" name="line-488"></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">source</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-489" name="line-489"></a> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">source_is_jpeg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_FILE_FORMAT_JPEG</span><span class="p">);</span> +<a id="line-491" name="line-491"></a> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="cm">/* determine which method should be used for saving */</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">source_is_jpeg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">method</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SAVE_JPEG_AS_JPEG</span><span class="p">;</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="p">}</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="p">}</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">target_is_jpeg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_FILE_FORMAT_JPEG</span><span class="p">);</span> +<a id="line-500" name="line-500"></a> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">source_is_jpeg</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">target_is_jpeg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="o">-></span><span class="n">jpeg_quality</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">method</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SAVE_JPEG_AS_JPEG</span><span class="p">;</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="p">}</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="cm">/* reencoding is required, cause quality is set */</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">method</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SAVE_ANY_AS_JPEG</span><span class="p">;</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="p">}</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="p">}</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">source_is_jpeg</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">target_is_jpeg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">method</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SAVE_ANY_AS_JPEG</span><span class="p">;</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="p">}</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="p">}</span> +<a id="line-514" name="line-514"></a> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">method</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_SAVE_JPEG_AS_JPEG</span><span class="p">:</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_save_jpeg_as_jpeg</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_SAVE_ANY_AS_JPEG</span><span class="p">:</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_save_any_as_jpeg</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="p">}</span> +<a id="line-525" name="line-525"></a> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-527" name="line-527"></a><span class="p">}</span> +<a id="line-528" name="line-528"></a><span class="cp">#endif</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/11.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/11.html new file mode 100644 index 0000000..7bb6041 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/11.html @@ -0,0 +1,531 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-image-save-info.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-image-save-info.c</p> +<a href="11.html#line-11"> unknownMacro 11</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-2" name="line-2"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-3" name="line-3"></a><span class="cp">#endif</span> +<a id="line-4" name="line-4"></a> +<a id="line-5" name="line-5"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-6" name="line-6"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image-save-info.h"</span> +<a id="line-7" name="line-7"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image-private.h"</span> +<a id="line-8" name="line-8"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-pixbuf-util.h"</span> +<a id="line-9" name="line-9"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image.h"</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageSaveInfo</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image_save_info</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE is a macro then please configure it.</span> +</span><a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-14" name="line-14"></a><span class="n">eom_image_save_info_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-15" name="line-15"></a><span class="p">{</span> +<a id="line-16" name="line-16"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_SAVE_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="p">}</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">format</span><span class="p">);</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="p">}</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_save_info_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-29" name="line-29"></a><span class="p">}</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-32" name="line-32"></a><span class="n">eom_image_save_info_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">obj</span><span class="p">)</span> +<a id="line-33" name="line-33"></a><span class="p">{</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="p">}</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-38" name="line-38"></a><span class="n">eom_image_save_info_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageSaveInfoClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-39" name="line-39"></a><span class="p">{</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_save_info_dispose</span><span class="p">;</span> +<a id="line-43" name="line-43"></a><span class="p">}</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="cm">/* is_local_uri:</span> +<a id="line-46" name="line-46"></a><span class="cm"> *</span> +<a id="line-47" name="line-47"></a><span class="cm"> * Checks if the URI points to a local file system. This tests simply</span> +<a id="line-48" name="line-48"></a><span class="cm"> * if the URI scheme is 'file'. This function is used to ensure that</span> +<a id="line-49" name="line-49"></a><span class="cm"> * we can write to the path-part of the URI with non-VFS aware</span> +<a id="line-50" name="line-50"></a><span class="cm"> * filesystem calls.</span> +<a id="line-51" name="line-51"></a><span class="cm"> */</span> +<a id="line-52" name="line-52"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-53" name="line-53"></a><span class="n">is_local_file</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span> +<a id="line-54" name="line-54"></a><span class="p">{</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">scheme</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">scheme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri_scheme</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">scheme</span><span class="p">,</span><span class="w"> </span><span class="s">"file"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">scheme</span><span class="p">);</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-65" name="line-65"></a><span class="p">}</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span> +<a id="line-68" name="line-68"></a><span class="n">get_save_file_type_by_file</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span> +<a id="line-69" name="line-69"></a><span class="p">{</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_pixbuf_get_format</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-75" name="line-75"></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">gdk_pixbuf_format_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">);</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="p">}</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">type</span><span class="p">;</span> +<a id="line-79" name="line-79"></a><span class="p">}</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="n">EomImageSaveInfo</span><span class="o">*</span> +<a id="line-82" name="line-82"></a><span class="n">eom_image_save_info_new_from_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-83" name="line-83"></a><span class="p">{</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-85" name="line-85"></a> +<a id="line-86" name="line-86"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">info</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">EOM_TYPE_IMAGE_SAVE_INFO</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">format</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">image</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">exists</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_exists</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">local</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">is_local_file</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">has_metadata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">overwrite</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">jpeg_quality</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">-1.0</span><span class="p">;</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">info</span><span class="p">;</span> +<a id="line-101" name="line-101"></a><span class="p">}</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="n">EomImageSaveInfo</span><span class="o">*</span> +<a id="line-104" name="line-104"></a><span class="n">eom_image_save_info_new_from_uri</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">txt_uri</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">)</span> +<a id="line-105" name="line-105"></a><span class="p">{</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span> +<a id="line-108" name="line-108"></a> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">txt_uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">txt_uri</span><span class="p">);</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_save_info_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">info</span><span class="p">;</span> +<a id="line-118" name="line-118"></a><span class="p">}</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="n">EomImageSaveInfo</span><span class="o">*</span> +<a id="line-121" name="line-121"></a><span class="n">eom_image_save_info_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">)</span> +<a id="line-122" name="line-122"></a><span class="p">{</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_IMAGE_SAVE_INFO</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_save_file_type_by_file</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="p">}</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_format_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="p">}</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">exists</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_exists</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">local</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">is_local_file</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">has_metadata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">overwrite</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">jpeg_quality</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">-1.0</span><span class="p">;</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">info</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/12.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/12.html new file mode 100644 index 0000000..8119aeb --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/12.html @@ -0,0 +1,5181 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-image.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-image.c</p> +<a href="12.html#line-623"> variableScope 623</a><a href="12.html#line-1401"> variableScope 1401</a><a href="12.html#line-1402"> variableScope 1402</a><a href="12.html#line-1432"> variableScope 1432</a><a href="12.html#line-2211"> variableScope 2211</a><a href="12.html#line-2212"> variableScope 2212</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span> +<span class="normal">1125</span> +<span class="normal">1126</span> +<span class="normal">1127</span> +<span class="normal">1128</span> +<span class="normal">1129</span> +<span class="normal">1130</span> +<span class="normal">1131</span> +<span class="normal">1132</span> +<span class="normal">1133</span> +<span class="normal">1134</span> +<span class="normal">1135</span> +<span class="normal">1136</span> +<span class="normal">1137</span> +<span class="normal">1138</span> +<span class="normal">1139</span> +<span class="normal">1140</span> +<span class="normal">1141</span> +<span class="normal">1142</span> +<span class="normal">1143</span> +<span class="normal">1144</span> +<span class="normal">1145</span> +<span class="normal">1146</span> +<span class="normal">1147</span> +<span class="normal">1148</span> +<span class="normal">1149</span> +<span class="normal">1150</span> +<span class="normal">1151</span> +<span class="normal">1152</span> +<span class="normal">1153</span> +<span class="normal">1154</span> +<span class="normal">1155</span> +<span class="normal">1156</span> +<span class="normal">1157</span> +<span class="normal">1158</span> +<span class="normal">1159</span> +<span class="normal">1160</span> +<span class="normal">1161</span> +<span class="normal">1162</span> +<span class="normal">1163</span> +<span class="normal">1164</span> +<span class="normal">1165</span> +<span class="normal">1166</span> +<span class="normal">1167</span> +<span class="normal">1168</span> +<span class="normal">1169</span> +<span class="normal">1170</span> +<span class="normal">1171</span> +<span class="normal">1172</span> +<span class="normal">1173</span> +<span class="normal">1174</span> +<span class="normal">1175</span> +<span class="normal">1176</span> +<span class="normal">1177</span> +<span class="normal">1178</span> +<span class="normal">1179</span> +<span class="normal">1180</span> +<span class="normal">1181</span> +<span class="normal">1182</span> +<span class="normal">1183</span> +<span class="normal">1184</span> +<span class="normal">1185</span> +<span class="normal">1186</span> +<span class="normal">1187</span> +<span class="normal">1188</span> +<span class="normal">1189</span> +<span class="normal">1190</span> +<span class="normal">1191</span> +<span class="normal">1192</span> +<span class="normal">1193</span> +<span class="normal">1194</span> +<span class="normal">1195</span> +<span class="normal">1196</span> +<span class="normal">1197</span> +<span class="normal">1198</span> +<span class="normal">1199</span> +<span class="normal">1200</span> +<span class="normal">1201</span> +<span class="normal">1202</span> +<span class="normal">1203</span> +<span class="normal">1204</span> +<span class="normal">1205</span> +<span class="normal">1206</span> +<span class="normal">1207</span> +<span class="normal">1208</span> +<span class="normal">1209</span> +<span class="normal">1210</span> +<span class="normal">1211</span> +<span class="normal">1212</span> +<span class="normal">1213</span> +<span class="normal">1214</span> +<span class="normal">1215</span> +<span class="normal">1216</span> +<span class="normal">1217</span> +<span class="normal">1218</span> +<span class="normal">1219</span> +<span class="normal">1220</span> +<span class="normal">1221</span> +<span class="normal">1222</span> +<span class="normal">1223</span> +<span class="normal">1224</span> +<span class="normal">1225</span> +<span class="normal">1226</span> +<span class="normal">1227</span> +<span class="normal">1228</span> +<span class="normal">1229</span> +<span class="normal">1230</span> +<span class="normal">1231</span> +<span class="normal">1232</span> +<span class="normal">1233</span> +<span class="normal">1234</span> +<span class="normal">1235</span> +<span class="normal">1236</span> +<span class="normal">1237</span> +<span class="normal">1238</span> +<span class="normal">1239</span> +<span class="normal">1240</span> +<span class="normal">1241</span> +<span class="normal">1242</span> +<span class="normal">1243</span> +<span class="normal">1244</span> +<span class="normal">1245</span> +<span class="normal">1246</span> +<span class="normal">1247</span> +<span class="normal">1248</span> +<span class="normal">1249</span> +<span class="normal">1250</span> +<span class="normal">1251</span> +<span class="normal">1252</span> +<span class="normal">1253</span> +<span class="normal">1254</span> +<span class="normal">1255</span> +<span class="normal">1256</span> +<span class="normal">1257</span> +<span class="normal">1258</span> +<span class="normal">1259</span> +<span class="normal">1260</span> +<span class="normal">1261</span> +<span class="normal">1262</span> +<span class="normal">1263</span> +<span class="normal">1264</span> +<span class="normal">1265</span> +<span class="normal">1266</span> +<span class="normal">1267</span> +<span class="normal">1268</span> +<span class="normal">1269</span> +<span class="normal">1270</span> +<span class="normal">1271</span> +<span class="normal">1272</span> +<span class="normal">1273</span> +<span class="normal">1274</span> +<span class="normal">1275</span> +<span class="normal">1276</span> +<span class="normal">1277</span> +<span class="normal">1278</span> +<span class="normal">1279</span> +<span class="normal">1280</span> +<span class="normal">1281</span> +<span class="normal">1282</span> +<span class="normal">1283</span> +<span class="normal">1284</span> +<span class="normal">1285</span> +<span class="normal">1286</span> +<span class="normal">1287</span> +<span class="normal">1288</span> +<span class="normal">1289</span> +<span class="normal">1290</span> +<span class="normal">1291</span> +<span class="normal">1292</span> +<span class="normal">1293</span> +<span class="normal">1294</span> +<span class="normal">1295</span> +<span class="normal">1296</span> +<span class="normal">1297</span> +<span class="normal">1298</span> +<span class="normal">1299</span> +<span class="normal">1300</span> +<span class="normal">1301</span> +<span class="normal">1302</span> +<span class="normal">1303</span> +<span class="normal">1304</span> +<span class="normal">1305</span> +<span class="normal">1306</span> +<span class="normal">1307</span> +<span class="normal">1308</span> +<span class="normal">1309</span> +<span class="normal">1310</span> +<span class="normal">1311</span> +<span class="normal">1312</span> +<span class="normal">1313</span> +<span class="normal">1314</span> +<span class="normal">1315</span> +<span class="normal">1316</span> +<span class="normal">1317</span> +<span class="normal">1318</span> +<span class="normal">1319</span> +<span class="normal">1320</span> +<span class="normal">1321</span> +<span class="normal">1322</span> +<span class="normal">1323</span> +<span class="normal">1324</span> +<span class="normal">1325</span> +<span class="normal">1326</span> +<span class="normal">1327</span> +<span class="normal">1328</span> +<span class="normal">1329</span> +<span class="normal">1330</span> +<span class="normal">1331</span> +<span class="normal">1332</span> +<span class="normal">1333</span> +<span class="normal">1334</span> +<span class="normal">1335</span> +<span class="normal">1336</span> +<span class="normal">1337</span> +<span class="normal">1338</span> +<span class="normal">1339</span> +<span class="normal">1340</span> +<span class="normal">1341</span> +<span class="normal">1342</span> +<span class="normal">1343</span> +<span class="normal">1344</span> +<span class="normal">1345</span> +<span class="normal">1346</span> +<span class="normal">1347</span> +<span class="normal">1348</span> +<span class="normal">1349</span> +<span class="normal">1350</span> +<span class="normal">1351</span> +<span class="normal">1352</span> +<span class="normal">1353</span> +<span class="normal">1354</span> +<span class="normal">1355</span> +<span class="normal">1356</span> +<span class="normal">1357</span> +<span class="normal">1358</span> +<span class="normal">1359</span> +<span class="normal">1360</span> +<span class="normal">1361</span> +<span class="normal">1362</span> +<span class="normal">1363</span> +<span class="normal">1364</span> +<span class="normal">1365</span> +<span class="normal">1366</span> +<span class="normal">1367</span> +<span class="normal">1368</span> +<span class="normal">1369</span> +<span class="normal">1370</span> +<span class="normal">1371</span> +<span class="normal">1372</span> +<span class="normal">1373</span> +<span class="normal">1374</span> +<span class="normal">1375</span> +<span class="normal">1376</span> +<span class="normal">1377</span> +<span class="normal">1378</span> +<span class="normal">1379</span> +<span class="normal">1380</span> +<span class="normal">1381</span> +<span class="normal">1382</span> +<span class="normal">1383</span> +<span class="normal">1384</span> +<span class="normal">1385</span> +<span class="normal">1386</span> +<span class="normal">1387</span> +<span class="normal">1388</span> +<span class="normal">1389</span> +<span class="normal">1390</span> +<span class="normal">1391</span> +<span class="normal">1392</span> +<span class="normal">1393</span> +<span class="normal">1394</span> +<span class="normal">1395</span> +<span class="normal">1396</span> +<span class="normal">1397</span> +<span class="normal">1398</span> +<span class="normal">1399</span> +<span class="normal">1400</span> +<span class="normal">1401</span> +<span class="normal">1402</span> +<span class="normal">1403</span> +<span class="normal">1404</span> +<span class="normal">1405</span> +<span class="normal">1406</span> +<span class="normal">1407</span> +<span class="normal">1408</span> +<span class="normal">1409</span> +<span class="normal">1410</span> +<span class="normal">1411</span> +<span class="normal">1412</span> +<span class="normal">1413</span> +<span class="normal">1414</span> +<span class="normal">1415</span> +<span class="normal">1416</span> +<span class="normal">1417</span> +<span class="normal">1418</span> +<span class="normal">1419</span> +<span class="normal">1420</span> +<span class="normal">1421</span> +<span class="normal">1422</span> +<span class="normal">1423</span> +<span class="normal">1424</span> +<span class="normal">1425</span> +<span class="normal">1426</span> +<span class="normal">1427</span> +<span class="normal">1428</span> +<span class="normal">1429</span> +<span class="normal">1430</span> +<span class="normal">1431</span> +<span class="normal">1432</span> +<span class="normal">1433</span> +<span class="normal">1434</span> +<span class="normal">1435</span> +<span class="normal">1436</span> +<span class="normal">1437</span> +<span class="normal">1438</span> +<span class="normal">1439</span> +<span class="normal">1440</span> +<span class="normal">1441</span> +<span class="normal">1442</span> +<span class="normal">1443</span> +<span class="normal">1444</span> +<span class="normal">1445</span> +<span class="normal">1446</span> +<span class="normal">1447</span> +<span class="normal">1448</span> +<span class="normal">1449</span> +<span class="normal">1450</span> +<span class="normal">1451</span> +<span class="normal">1452</span> +<span class="normal">1453</span> +<span class="normal">1454</span> +<span class="normal">1455</span> +<span class="normal">1456</span> +<span class="normal">1457</span> +<span class="normal">1458</span> +<span class="normal">1459</span> +<span class="normal">1460</span> +<span class="normal">1461</span> +<span class="normal">1462</span> +<span class="normal">1463</span> +<span class="normal">1464</span> +<span class="normal">1465</span> +<span class="normal">1466</span> +<span class="normal">1467</span> +<span class="normal">1468</span> +<span class="normal">1469</span> +<span class="normal">1470</span> +<span class="normal">1471</span> +<span class="normal">1472</span> +<span class="normal">1473</span> +<span class="normal">1474</span> +<span class="normal">1475</span> +<span class="normal">1476</span> +<span class="normal">1477</span> +<span class="normal">1478</span> +<span class="normal">1479</span> +<span class="normal">1480</span> +<span class="normal">1481</span> +<span class="normal">1482</span> +<span class="normal">1483</span> +<span class="normal">1484</span> +<span class="normal">1485</span> +<span class="normal">1486</span> +<span class="normal">1487</span> +<span class="normal">1488</span> +<span class="normal">1489</span> +<span class="normal">1490</span> +<span class="normal">1491</span> +<span class="normal">1492</span> +<span class="normal">1493</span> +<span class="normal">1494</span> +<span class="normal">1495</span> +<span class="normal">1496</span> +<span class="normal">1497</span> +<span class="normal">1498</span> +<span class="normal">1499</span> +<span class="normal">1500</span> +<span class="normal">1501</span> +<span class="normal">1502</span> +<span class="normal">1503</span> +<span class="normal">1504</span> +<span class="normal">1505</span> +<span class="normal">1506</span> +<span class="normal">1507</span> +<span class="normal">1508</span> +<span class="normal">1509</span> +<span class="normal">1510</span> +<span class="normal">1511</span> +<span class="normal">1512</span> +<span class="normal">1513</span> +<span class="normal">1514</span> +<span class="normal">1515</span> +<span class="normal">1516</span> +<span class="normal">1517</span> +<span class="normal">1518</span> +<span class="normal">1519</span> +<span class="normal">1520</span> +<span class="normal">1521</span> +<span class="normal">1522</span> +<span class="normal">1523</span> +<span class="normal">1524</span> +<span class="normal">1525</span> +<span class="normal">1526</span> +<span class="normal">1527</span> +<span class="normal">1528</span> +<span class="normal">1529</span> +<span class="normal">1530</span> +<span class="normal">1531</span> +<span class="normal">1532</span> +<span class="normal">1533</span> +<span class="normal">1534</span> +<span class="normal">1535</span> +<span class="normal">1536</span> +<span class="normal">1537</span> +<span class="normal">1538</span> +<span class="normal">1539</span> +<span class="normal">1540</span> +<span class="normal">1541</span> +<span class="normal">1542</span> +<span class="normal">1543</span> +<span class="normal">1544</span> +<span class="normal">1545</span> +<span class="normal">1546</span> +<span class="normal">1547</span> +<span class="normal">1548</span> +<span class="normal">1549</span> +<span class="normal">1550</span> +<span class="normal">1551</span> +<span class="normal">1552</span> +<span class="normal">1553</span> +<span class="normal">1554</span> +<span class="normal">1555</span> +<span class="normal">1556</span> +<span class="normal">1557</span> +<span class="normal">1558</span> +<span class="normal">1559</span> +<span class="normal">1560</span> +<span class="normal">1561</span> +<span class="normal">1562</span> +<span class="normal">1563</span> +<span class="normal">1564</span> +<span class="normal">1565</span> +<span class="normal">1566</span> +<span class="normal">1567</span> +<span class="normal">1568</span> +<span class="normal">1569</span> +<span class="normal">1570</span> +<span class="normal">1571</span> +<span class="normal">1572</span> +<span class="normal">1573</span> +<span class="normal">1574</span> +<span class="normal">1575</span> +<span class="normal">1576</span> +<span class="normal">1577</span> +<span class="normal">1578</span> +<span class="normal">1579</span> +<span class="normal">1580</span> +<span class="normal">1581</span> +<span class="normal">1582</span> +<span class="normal">1583</span> +<span class="normal">1584</span> +<span class="normal">1585</span> +<span class="normal">1586</span> +<span class="normal">1587</span> +<span class="normal">1588</span> +<span class="normal">1589</span> +<span class="normal">1590</span> +<span class="normal">1591</span> +<span class="normal">1592</span> +<span class="normal">1593</span> +<span class="normal">1594</span> +<span class="normal">1595</span> +<span class="normal">1596</span> +<span class="normal">1597</span> +<span class="normal">1598</span> +<span class="normal">1599</span> +<span class="normal">1600</span> +<span class="normal">1601</span> +<span class="normal">1602</span> +<span class="normal">1603</span> +<span class="normal">1604</span> +<span class="normal">1605</span> +<span class="normal">1606</span> +<span class="normal">1607</span> +<span class="normal">1608</span> +<span class="normal">1609</span> +<span class="normal">1610</span> +<span class="normal">1611</span> +<span class="normal">1612</span> +<span class="normal">1613</span> +<span class="normal">1614</span> +<span class="normal">1615</span> +<span class="normal">1616</span> +<span class="normal">1617</span> +<span class="normal">1618</span> +<span class="normal">1619</span> +<span class="normal">1620</span> +<span class="normal">1621</span> +<span class="normal">1622</span> +<span class="normal">1623</span> +<span class="normal">1624</span> +<span class="normal">1625</span> +<span class="normal">1626</span> +<span class="normal">1627</span> +<span class="normal">1628</span> +<span class="normal">1629</span> +<span class="normal">1630</span> +<span class="normal">1631</span> +<span class="normal">1632</span> +<span class="normal">1633</span> +<span class="normal">1634</span> +<span class="normal">1635</span> +<span class="normal">1636</span> +<span class="normal">1637</span> +<span class="normal">1638</span> +<span class="normal">1639</span> +<span class="normal">1640</span> +<span class="normal">1641</span> +<span class="normal">1642</span> +<span class="normal">1643</span> +<span class="normal">1644</span> +<span class="normal">1645</span> +<span class="normal">1646</span> +<span class="normal">1647</span> +<span class="normal">1648</span> +<span class="normal">1649</span> +<span class="normal">1650</span> +<span class="normal">1651</span> +<span class="normal">1652</span> +<span class="normal">1653</span> +<span class="normal">1654</span> +<span class="normal">1655</span> +<span class="normal">1656</span> +<span class="normal">1657</span> +<span class="normal">1658</span> +<span class="normal">1659</span> +<span class="normal">1660</span> +<span class="normal">1661</span> +<span class="normal">1662</span> +<span class="normal">1663</span> +<span class="normal">1664</span> +<span class="normal">1665</span> +<span class="normal">1666</span> +<span class="normal">1667</span> +<span class="normal">1668</span> +<span class="normal">1669</span> +<span class="normal">1670</span> +<span class="normal">1671</span> +<span class="normal">1672</span> +<span class="normal">1673</span> +<span class="normal">1674</span> +<span class="normal">1675</span> +<span class="normal">1676</span> +<span class="normal">1677</span> +<span class="normal">1678</span> +<span class="normal">1679</span> +<span class="normal">1680</span> +<span class="normal">1681</span> +<span class="normal">1682</span> +<span class="normal">1683</span> +<span class="normal">1684</span> +<span class="normal">1685</span> +<span class="normal">1686</span> +<span class="normal">1687</span> +<span class="normal">1688</span> +<span class="normal">1689</span> +<span class="normal">1690</span> +<span class="normal">1691</span> +<span class="normal">1692</span> +<span class="normal">1693</span> +<span class="normal">1694</span> +<span class="normal">1695</span> +<span class="normal">1696</span> +<span class="normal">1697</span> +<span class="normal">1698</span> +<span class="normal">1699</span> +<span class="normal">1700</span> +<span class="normal">1701</span> +<span class="normal">1702</span> +<span class="normal">1703</span> +<span class="normal">1704</span> +<span class="normal">1705</span> +<span class="normal">1706</span> +<span class="normal">1707</span> +<span class="normal">1708</span> +<span class="normal">1709</span> +<span class="normal">1710</span> +<span class="normal">1711</span> +<span class="normal">1712</span> +<span class="normal">1713</span> +<span class="normal">1714</span> +<span class="normal">1715</span> +<span class="normal">1716</span> +<span class="normal">1717</span> +<span class="normal">1718</span> +<span class="normal">1719</span> +<span class="normal">1720</span> +<span class="normal">1721</span> +<span class="normal">1722</span> +<span class="normal">1723</span> +<span class="normal">1724</span> +<span class="normal">1725</span> +<span class="normal">1726</span> +<span class="normal">1727</span> +<span class="normal">1728</span> +<span class="normal">1729</span> +<span class="normal">1730</span> +<span class="normal">1731</span> +<span class="normal">1732</span> +<span class="normal">1733</span> +<span class="normal">1734</span> +<span class="normal">1735</span> +<span class="normal">1736</span> +<span class="normal">1737</span> +<span class="normal">1738</span> +<span class="normal">1739</span> +<span class="normal">1740</span> +<span class="normal">1741</span> +<span class="normal">1742</span> +<span class="normal">1743</span> +<span class="normal">1744</span> +<span class="normal">1745</span> +<span class="normal">1746</span> +<span class="normal">1747</span> +<span class="normal">1748</span> +<span class="normal">1749</span> +<span class="normal">1750</span> +<span class="normal">1751</span> +<span class="normal">1752</span> +<span class="normal">1753</span> +<span class="normal">1754</span> +<span class="normal">1755</span> +<span class="normal">1756</span> +<span class="normal">1757</span> +<span class="normal">1758</span> +<span class="normal">1759</span> +<span class="normal">1760</span> +<span class="normal">1761</span> +<span class="normal">1762</span> +<span class="normal">1763</span> +<span class="normal">1764</span> +<span class="normal">1765</span> +<span class="normal">1766</span> +<span class="normal">1767</span> +<span class="normal">1768</span> +<span class="normal">1769</span> +<span class="normal">1770</span> +<span class="normal">1771</span> +<span class="normal">1772</span> +<span class="normal">1773</span> +<span class="normal">1774</span> +<span class="normal">1775</span> +<span class="normal">1776</span> +<span class="normal">1777</span> +<span class="normal">1778</span> +<span class="normal">1779</span> +<span class="normal">1780</span> +<span class="normal">1781</span> +<span class="normal">1782</span> +<span class="normal">1783</span> +<span class="normal">1784</span> +<span class="normal">1785</span> +<span class="normal">1786</span> +<span class="normal">1787</span> +<span class="normal">1788</span> +<span class="normal">1789</span> +<span class="normal">1790</span> +<span class="normal">1791</span> +<span class="normal">1792</span> +<span class="normal">1793</span> +<span class="normal">1794</span> +<span class="normal">1795</span> +<span class="normal">1796</span> +<span class="normal">1797</span> +<span class="normal">1798</span> +<span class="normal">1799</span> +<span class="normal">1800</span> +<span class="normal">1801</span> +<span class="normal">1802</span> +<span class="normal">1803</span> +<span class="normal">1804</span> +<span class="normal">1805</span> +<span class="normal">1806</span> +<span class="normal">1807</span> +<span class="normal">1808</span> +<span class="normal">1809</span> +<span class="normal">1810</span> +<span class="normal">1811</span> +<span class="normal">1812</span> +<span class="normal">1813</span> +<span class="normal">1814</span> +<span class="normal">1815</span> +<span class="normal">1816</span> +<span class="normal">1817</span> +<span class="normal">1818</span> +<span class="normal">1819</span> +<span class="normal">1820</span> +<span class="normal">1821</span> +<span class="normal">1822</span> +<span class="normal">1823</span> +<span class="normal">1824</span> +<span class="normal">1825</span> +<span class="normal">1826</span> +<span class="normal">1827</span> +<span class="normal">1828</span> +<span class="normal">1829</span> +<span class="normal">1830</span> +<span class="normal">1831</span> +<span class="normal">1832</span> +<span class="normal">1833</span> +<span class="normal">1834</span> +<span class="normal">1835</span> +<span class="normal">1836</span> +<span class="normal">1837</span> +<span class="normal">1838</span> +<span class="normal">1839</span> +<span class="normal">1840</span> +<span class="normal">1841</span> +<span class="normal">1842</span> +<span class="normal">1843</span> +<span class="normal">1844</span> +<span class="normal">1845</span> +<span class="normal">1846</span> +<span class="normal">1847</span> +<span class="normal">1848</span> +<span class="normal">1849</span> +<span class="normal">1850</span> +<span class="normal">1851</span> +<span class="normal">1852</span> +<span class="normal">1853</span> +<span class="normal">1854</span> +<span class="normal">1855</span> +<span class="normal">1856</span> +<span class="normal">1857</span> +<span class="normal">1858</span> +<span class="normal">1859</span> +<span class="normal">1860</span> +<span class="normal">1861</span> +<span class="normal">1862</span> +<span class="normal">1863</span> +<span class="normal">1864</span> +<span class="normal">1865</span> +<span class="normal">1866</span> +<span class="normal">1867</span> +<span class="normal">1868</span> +<span class="normal">1869</span> +<span class="normal">1870</span> +<span class="normal">1871</span> +<span class="normal">1872</span> +<span class="normal">1873</span> +<span class="normal">1874</span> +<span class="normal">1875</span> +<span class="normal">1876</span> +<span class="normal">1877</span> +<span class="normal">1878</span> +<span class="normal">1879</span> +<span class="normal">1880</span> +<span class="normal">1881</span> +<span class="normal">1882</span> +<span class="normal">1883</span> +<span class="normal">1884</span> +<span class="normal">1885</span> +<span class="normal">1886</span> +<span class="normal">1887</span> +<span class="normal">1888</span> +<span class="normal">1889</span> +<span class="normal">1890</span> +<span class="normal">1891</span> +<span class="normal">1892</span> +<span class="normal">1893</span> +<span class="normal">1894</span> +<span class="normal">1895</span> +<span class="normal">1896</span> +<span class="normal">1897</span> +<span class="normal">1898</span> +<span class="normal">1899</span> +<span class="normal">1900</span> +<span class="normal">1901</span> +<span class="normal">1902</span> +<span class="normal">1903</span> +<span class="normal">1904</span> +<span class="normal">1905</span> +<span class="normal">1906</span> +<span class="normal">1907</span> +<span class="normal">1908</span> +<span class="normal">1909</span> +<span class="normal">1910</span> +<span class="normal">1911</span> +<span class="normal">1912</span> +<span class="normal">1913</span> +<span class="normal">1914</span> +<span class="normal">1915</span> +<span class="normal">1916</span> +<span class="normal">1917</span> +<span class="normal">1918</span> +<span class="normal">1919</span> +<span class="normal">1920</span> +<span class="normal">1921</span> +<span class="normal">1922</span> +<span class="normal">1923</span> +<span class="normal">1924</span> +<span class="normal">1925</span> +<span class="normal">1926</span> +<span class="normal">1927</span> +<span class="normal">1928</span> +<span class="normal">1929</span> +<span class="normal">1930</span> +<span class="normal">1931</span> +<span class="normal">1932</span> +<span class="normal">1933</span> +<span class="normal">1934</span> +<span class="normal">1935</span> +<span class="normal">1936</span> +<span class="normal">1937</span> +<span class="normal">1938</span> +<span class="normal">1939</span> +<span class="normal">1940</span> +<span class="normal">1941</span> +<span class="normal">1942</span> +<span class="normal">1943</span> +<span class="normal">1944</span> +<span class="normal">1945</span> +<span class="normal">1946</span> +<span class="normal">1947</span> +<span class="normal">1948</span> +<span class="normal">1949</span> +<span class="normal">1950</span> +<span class="normal">1951</span> +<span class="normal">1952</span> +<span class="normal">1953</span> +<span class="normal">1954</span> +<span class="normal">1955</span> +<span class="normal">1956</span> +<span class="normal">1957</span> +<span class="normal">1958</span> +<span class="normal">1959</span> +<span class="normal">1960</span> +<span class="normal">1961</span> +<span class="normal">1962</span> +<span class="normal">1963</span> +<span class="normal">1964</span> +<span class="normal">1965</span> +<span class="normal">1966</span> +<span class="normal">1967</span> +<span class="normal">1968</span> +<span class="normal">1969</span> +<span class="normal">1970</span> +<span class="normal">1971</span> +<span class="normal">1972</span> +<span class="normal">1973</span> +<span class="normal">1974</span> +<span class="normal">1975</span> +<span class="normal">1976</span> +<span class="normal">1977</span> +<span class="normal">1978</span> +<span class="normal">1979</span> +<span class="normal">1980</span> +<span class="normal">1981</span> +<span class="normal">1982</span> +<span class="normal">1983</span> +<span class="normal">1984</span> +<span class="normal">1985</span> +<span class="normal">1986</span> +<span class="normal">1987</span> +<span class="normal">1988</span> +<span class="normal">1989</span> +<span class="normal">1990</span> +<span class="normal">1991</span> +<span class="normal">1992</span> +<span class="normal">1993</span> +<span class="normal">1994</span> +<span class="normal">1995</span> +<span class="normal">1996</span> +<span class="normal">1997</span> +<span class="normal">1998</span> +<span class="normal">1999</span> +<span class="normal">2000</span> +<span class="normal">2001</span> +<span class="normal">2002</span> +<span class="normal">2003</span> +<span class="normal">2004</span> +<span class="normal">2005</span> +<span class="normal">2006</span> +<span class="normal">2007</span> +<span class="normal">2008</span> +<span class="normal">2009</span> +<span class="normal">2010</span> +<span class="normal">2011</span> +<span class="normal">2012</span> +<span class="normal">2013</span> +<span class="normal">2014</span> +<span class="normal">2015</span> +<span class="normal">2016</span> +<span class="normal">2017</span> +<span class="normal">2018</span> +<span class="normal">2019</span> +<span class="normal">2020</span> +<span class="normal">2021</span> +<span class="normal">2022</span> +<span class="normal">2023</span> +<span class="normal">2024</span> +<span class="normal">2025</span> +<span class="normal">2026</span> +<span class="normal">2027</span> +<span class="normal">2028</span> +<span class="normal">2029</span> +<span class="normal">2030</span> +<span class="normal">2031</span> +<span class="normal">2032</span> +<span class="normal">2033</span> +<span class="normal">2034</span> +<span class="normal">2035</span> +<span class="normal">2036</span> +<span class="normal">2037</span> +<span class="normal">2038</span> +<span class="normal">2039</span> +<span class="normal">2040</span> +<span class="normal">2041</span> +<span class="normal">2042</span> +<span class="normal">2043</span> +<span class="normal">2044</span> +<span class="normal">2045</span> +<span class="normal">2046</span> +<span class="normal">2047</span> +<span class="normal">2048</span> +<span class="normal">2049</span> +<span class="normal">2050</span> +<span class="normal">2051</span> +<span class="normal">2052</span> +<span class="normal">2053</span> +<span class="normal">2054</span> +<span class="normal">2055</span> +<span class="normal">2056</span> +<span class="normal">2057</span> +<span class="normal">2058</span> +<span class="normal">2059</span> +<span class="normal">2060</span> +<span class="normal">2061</span> +<span class="normal">2062</span> +<span class="normal">2063</span> +<span class="normal">2064</span> +<span class="normal">2065</span> +<span class="normal">2066</span> +<span class="normal">2067</span> +<span class="normal">2068</span> +<span class="normal">2069</span> +<span class="normal">2070</span> +<span class="normal">2071</span> +<span class="normal">2072</span> +<span class="normal">2073</span> +<span class="normal">2074</span> +<span class="normal">2075</span> +<span class="normal">2076</span> +<span class="normal">2077</span> +<span class="normal">2078</span> +<span class="normal">2079</span> +<span class="normal">2080</span> +<span class="normal">2081</span> +<span class="normal">2082</span> +<span class="normal">2083</span> +<span class="normal">2084</span> +<span class="normal">2085</span> +<span class="normal">2086</span> +<span class="normal">2087</span> +<span class="normal">2088</span> +<span class="normal">2089</span> +<span class="normal">2090</span> +<span class="normal">2091</span> +<span class="normal">2092</span> +<span class="normal">2093</span> +<span class="normal">2094</span> +<span class="normal">2095</span> +<span class="normal">2096</span> +<span class="normal">2097</span> +<span class="normal">2098</span> +<span class="normal">2099</span> +<span class="normal">2100</span> +<span class="normal">2101</span> +<span class="normal">2102</span> +<span class="normal">2103</span> +<span class="normal">2104</span> +<span class="normal">2105</span> +<span class="normal">2106</span> +<span class="normal">2107</span> +<span class="normal">2108</span> +<span class="normal">2109</span> +<span class="normal">2110</span> +<span class="normal">2111</span> +<span class="normal">2112</span> +<span class="normal">2113</span> +<span class="normal">2114</span> +<span class="normal">2115</span> +<span class="normal">2116</span> +<span class="normal">2117</span> +<span class="normal">2118</span> +<span class="normal">2119</span> +<span class="normal">2120</span> +<span class="normal">2121</span> +<span class="normal">2122</span> +<span class="normal">2123</span> +<span class="normal">2124</span> +<span class="normal">2125</span> +<span class="normal">2126</span> +<span class="normal">2127</span> +<span class="normal">2128</span> +<span class="normal">2129</span> +<span class="normal">2130</span> +<span class="normal">2131</span> +<span class="normal">2132</span> +<span class="normal">2133</span> +<span class="normal">2134</span> +<span class="normal">2135</span> +<span class="normal">2136</span> +<span class="normal">2137</span> +<span class="normal">2138</span> +<span class="normal">2139</span> +<span class="normal">2140</span> +<span class="normal">2141</span> +<span class="normal">2142</span> +<span class="normal">2143</span> +<span class="normal">2144</span> +<span class="normal">2145</span> +<span class="normal">2146</span> +<span class="normal">2147</span> +<span class="normal">2148</span> +<span class="normal">2149</span> +<span class="normal">2150</span> +<span class="normal">2151</span> +<span class="normal">2152</span> +<span class="normal">2153</span> +<span class="normal">2154</span> +<span class="normal">2155</span> +<span class="normal">2156</span> +<span class="normal">2157</span> +<span class="normal">2158</span> +<span class="normal">2159</span> +<span class="normal">2160</span> +<span class="normal">2161</span> +<span class="normal">2162</span> +<span class="normal">2163</span> +<span class="normal">2164</span> +<span class="normal">2165</span> +<span class="normal">2166</span> +<span class="normal">2167</span> +<span class="normal">2168</span> +<span class="normal">2169</span> +<span class="normal">2170</span> +<span class="normal">2171</span> +<span class="normal">2172</span> +<span class="normal">2173</span> +<span class="normal">2174</span> +<span class="normal">2175</span> +<span class="normal">2176</span> +<span class="normal">2177</span> +<span class="normal">2178</span> +<span class="normal">2179</span> +<span class="normal">2180</span> +<span class="normal">2181</span> +<span class="normal">2182</span> +<span class="normal">2183</span> +<span class="normal">2184</span> +<span class="normal">2185</span> +<span class="normal">2186</span> +<span class="normal">2187</span> +<span class="normal">2188</span> +<span class="normal">2189</span> +<span class="normal">2190</span> +<span class="normal">2191</span> +<span class="normal">2192</span> +<span class="normal">2193</span> +<span class="normal">2194</span> +<span class="normal">2195</span> +<span class="normal">2196</span> +<span class="normal">2197</span> +<span class="normal">2198</span> +<span class="normal">2199</span> +<span class="normal">2200</span> +<span class="normal">2201</span> +<span class="normal">2202</span> +<span class="normal">2203</span> +<span class="normal">2204</span> +<span class="normal">2205</span> +<span class="normal">2206</span> +<span class="normal">2207</span> +<span class="normal">2208</span> +<span class="normal">2209</span> +<span class="normal">2210</span> +<span class="normal">2211</span> +<span class="normal">2212</span> +<span class="normal">2213</span> +<span class="normal">2214</span> +<span class="normal">2215</span> +<span class="normal">2216</span> +<span class="normal">2217</span> +<span class="normal">2218</span> +<span class="normal">2219</span> +<span class="normal">2220</span> +<span class="normal">2221</span> +<span class="normal">2222</span> +<span class="normal">2223</span> +<span class="normal">2224</span> +<span class="normal">2225</span> +<span class="normal">2226</span> +<span class="normal">2227</span> +<span class="normal">2228</span> +<span class="normal">2229</span> +<span class="normal">2230</span> +<span class="normal">2231</span> +<span class="normal">2232</span> +<span class="normal">2233</span> +<span class="normal">2234</span> +<span class="normal">2235</span> +<span class="normal">2236</span> +<span class="normal">2237</span> +<span class="normal">2238</span> +<span class="normal">2239</span> +<span class="normal">2240</span> +<span class="normal">2241</span> +<span class="normal">2242</span> +<span class="normal">2243</span> +<span class="normal">2244</span> +<span class="normal">2245</span> +<span class="normal">2246</span> +<span class="normal">2247</span> +<span class="normal">2248</span> +<span class="normal">2249</span> +<span class="normal">2250</span> +<span class="normal">2251</span> +<span class="normal">2252</span> +<span class="normal">2253</span> +<span class="normal">2254</span> +<span class="normal">2255</span> +<span class="normal">2256</span> +<span class="normal">2257</span> +<span class="normal">2258</span> +<span class="normal">2259</span> +<span class="normal">2260</span> +<span class="normal">2261</span> +<span class="normal">2262</span> +<span class="normal">2263</span> +<span class="normal">2264</span> +<span class="normal">2265</span> +<span class="normal">2266</span> +<span class="normal">2267</span> +<span class="normal">2268</span> +<span class="normal">2269</span> +<span class="normal">2270</span> +<span class="normal">2271</span> +<span class="normal">2272</span> +<span class="normal">2273</span> +<span class="normal">2274</span> +<span class="normal">2275</span> +<span class="normal">2276</span> +<span class="normal">2277</span> +<span class="normal">2278</span> +<span class="normal">2279</span> +<span class="normal">2280</span> +<span class="normal">2281</span> +<span class="normal">2282</span> +<span class="normal">2283</span> +<span class="normal">2284</span> +<span class="normal">2285</span> +<span class="normal">2286</span> +<span class="normal">2287</span> +<span class="normal">2288</span> +<span class="normal">2289</span> +<span class="normal">2290</span> +<span class="normal">2291</span> +<span class="normal">2292</span> +<span class="normal">2293</span> +<span class="normal">2294</span> +<span class="normal">2295</span> +<span class="normal">2296</span> +<span class="normal">2297</span> +<span class="normal">2298</span> +<span class="normal">2299</span> +<span class="normal">2300</span> +<span class="normal">2301</span> +<span class="normal">2302</span> +<span class="normal">2303</span> +<span class="normal">2304</span> +<span class="normal">2305</span> +<span class="normal">2306</span> +<span class="normal">2307</span> +<span class="normal">2308</span> +<span class="normal">2309</span> +<span class="normal">2310</span> +<span class="normal">2311</span> +<span class="normal">2312</span> +<span class="normal">2313</span> +<span class="normal">2314</span> +<span class="normal">2315</span> +<span class="normal">2316</span> +<span class="normal">2317</span> +<span class="normal">2318</span> +<span class="normal">2319</span> +<span class="normal">2320</span> +<span class="normal">2321</span> +<span class="normal">2322</span> +<span class="normal">2323</span> +<span class="normal">2324</span> +<span class="normal">2325</span> +<span class="normal">2326</span> +<span class="normal">2327</span> +<span class="normal">2328</span> +<span class="normal">2329</span> +<span class="normal">2330</span> +<span class="normal">2331</span> +<span class="normal">2332</span> +<span class="normal">2333</span> +<span class="normal">2334</span> +<span class="normal">2335</span> +<span class="normal">2336</span> +<span class="normal">2337</span> +<span class="normal">2338</span> +<span class="normal">2339</span> +<span class="normal">2340</span> +<span class="normal">2341</span> +<span class="normal">2342</span> +<span class="normal">2343</span> +<span class="normal">2344</span> +<span class="normal">2345</span> +<span class="normal">2346</span> +<span class="normal">2347</span> +<span class="normal">2348</span> +<span class="normal">2349</span> +<span class="normal">2350</span> +<span class="normal">2351</span> +<span class="normal">2352</span> +<span class="normal">2353</span> +<span class="normal">2354</span> +<span class="normal">2355</span> +<span class="normal">2356</span> +<span class="normal">2357</span> +<span class="normal">2358</span> +<span class="normal">2359</span> +<span class="normal">2360</span> +<span class="normal">2361</span> +<span class="normal">2362</span> +<span class="normal">2363</span> +<span class="normal">2364</span> +<span class="normal">2365</span> +<span class="normal">2366</span> +<span class="normal">2367</span> +<span class="normal">2368</span> +<span class="normal">2369</span> +<span class="normal">2370</span> +<span class="normal">2371</span> +<span class="normal">2372</span> +<span class="normal">2373</span> +<span class="normal">2374</span> +<span class="normal">2375</span> +<span class="normal">2376</span> +<span class="normal">2377</span> +<span class="normal">2378</span> +<span class="normal">2379</span> +<span class="normal">2380</span> +<span class="normal">2381</span> +<span class="normal">2382</span> +<span class="normal">2383</span> +<span class="normal">2384</span> +<span class="normal">2385</span> +<span class="normal">2386</span> +<span class="normal">2387</span> +<span class="normal">2388</span> +<span class="normal">2389</span> +<span class="normal">2390</span> +<span class="normal">2391</span> +<span class="normal">2392</span> +<span class="normal">2393</span> +<span class="normal">2394</span> +<span class="normal">2395</span> +<span class="normal">2396</span> +<span class="normal">2397</span> +<span class="normal">2398</span> +<span class="normal">2399</span> +<span class="normal">2400</span> +<span class="normal">2401</span> +<span class="normal">2402</span> +<span class="normal">2403</span> +<span class="normal">2404</span> +<span class="normal">2405</span> +<span class="normal">2406</span> +<span class="normal">2407</span> +<span class="normal">2408</span> +<span class="normal">2409</span> +<span class="normal">2410</span> +<span class="normal">2411</span> +<span class="normal">2412</span> +<span class="normal">2413</span> +<span class="normal">2414</span> +<span class="normal">2415</span> +<span class="normal">2416</span> +<span class="normal">2417</span> +<span class="normal">2418</span> +<span class="normal">2419</span> +<span class="normal">2420</span> +<span class="normal">2421</span> +<span class="normal">2422</span> +<span class="normal">2423</span> +<span class="normal">2424</span> +<span class="normal">2425</span> +<span class="normal">2426</span> +<span class="normal">2427</span> +<span class="normal">2428</span> +<span class="normal">2429</span> +<span class="normal">2430</span> +<span class="normal">2431</span> +<span class="normal">2432</span> +<span class="normal">2433</span> +<span class="normal">2434</span> +<span class="normal">2435</span> +<span class="normal">2436</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - Image</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-8" name="line-8"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-9" name="line-9"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-10" name="line-10"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-15" name="line-15"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-19" name="line-19"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-24" name="line-24"></a><span class="cp">#endif</span> +<a id="line-25" name="line-25"></a> +<a id="line-26" name="line-26"></a><span class="cp">#define GDK_PIXBUF_ENABLE_BACKEND</span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkx.h></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">"eom-image.h"</span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image-private.h"</span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-debug.h"</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="cp">#ifdef HAVE_JPEG</span> +<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image-jpeg.h"</span> +<a id="line-35" name="line-35"></a><span class="cp">#endif</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-marshal.h"</span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-pixbuf-util.h"</span> +<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-reader.h"</span> +<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image-save-info.h"</span> +<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-transform.h"</span> +<a id="line-42" name="line-42"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-43" name="line-43"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-jobs.h"</span> +<a id="line-44" name="line-44"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-thumbnail.h"</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><unistd.h></span> +<a id="line-47" name="line-47"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-50" name="line-50"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span> +<a id="line-51" name="line-51"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-52" name="line-52"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-53" name="line-53"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk-pixbuf/gdk-pixbuf.h></span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-56" name="line-56"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-exif-util.h"</span> +<a id="line-57" name="line-57"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-data.h></span> +<a id="line-58" name="line-58"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-utils.h></span> +<a id="line-59" name="line-59"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-loader.h></span> +<a id="line-60" name="line-60"></a><span class="cp">#endif</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-63" name="line-63"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><lcms2.h></span> +<a id="line-64" name="line-64"></a><span class="cp">#endif</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-67" name="line-67"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><librsvg/rsvg.h></span> +<a id="line-68" name="line-68"></a><span class="cp">#endif</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">SIGNAL_CHANGED</span><span class="p">,</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">SIGNAL_SIZE_PREPARED</span><span class="p">,</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">SIGNAL_THUMBNAIL_CHANGED</span><span class="p">,</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">SIGNAL_SAVE_PROGRESS</span><span class="p">,</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">SIGNAL_NEXT_FRAME</span><span class="p">,</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">SIGNAL_FILE_CHANGED</span><span class="p">,</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">SIGNAL_LAST</span> +<a id="line-80" name="line-80"></a><span class="p">};</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_LAST</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="cp">#define EOM_IMAGE_READ_BUFFER_SIZE 65535</span> +<a id="line-85" name="line-85"></a> +<a id="line-86" name="line-86"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-87" name="line-87"></a><span class="nf">eom_image_free_mem_private</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-88" name="line-88"></a><span class="p">{</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_LOADING</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">eom_image_cancel_load</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-96" name="line-96"></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">-></span><span class="n">anim_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="p">{</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">);</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">}</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">priv</span><span class="o">-></span><span class="n">anim</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="p">}</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">is_playing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></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">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">}</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-114" name="line-114"></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">-></span><span class="n">svg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="p">);</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="p">}</span> +<a id="line-118" name="line-118"></a><span class="cp">#endif</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">);</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">}</span> +<a id="line-125" name="line-125"></a><span class="cp">#endif</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-128" name="line-128"></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">-></span><span class="n">exif_chunk</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">}</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">xmp_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">}</span> +<a id="line-139" name="line-139"></a><span class="cp">#endif</span> +<a id="line-140" name="line-140"></a> +<a id="line-141" name="line-141"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_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><span class="p">{</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">cmsCloseProfile</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="p">}</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">}</span> +<a id="line-148" name="line-148"></a><span class="cp">#endif</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_UNKNOWN</span><span class="p">;</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_NOT_READ</span><span class="p">;</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="p">}</span> +<a id="line-153" name="line-153"></a><span class="p">}</span> +<a id="line-154" name="line-154"></a> +<a id="line-155" name="line-155"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-156" name="line-156"></a><span class="nf">eom_image_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-157" name="line-157"></a><span class="p">{</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-161" name="line-161"></a> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">eom_image_free_mem_private</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="p">}</span> +<a id="line-168" name="line-168"></a> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="p">);</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="p">}</span> +<a id="line-173" name="line-173"></a> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">collate_key</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">collate_key</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collate_key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-180" name="line-180"></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">-></span><span class="n">file_type</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">}</span> +<a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">g_mutex_clear</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-185" name="line-185"></a> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">);</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="p">}</span> +<a id="line-190" name="line-190"></a> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="p">}</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">g_slist_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-202" name="line-202"></a><span class="p">}</span> +<a id="line-203" name="line-203"></a> +<a id="line-204" name="line-204"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-205" name="line-205"></a><span class="nf">eom_image_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-206" name="line-206"></a><span class="p">{</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_dispose</span><span class="p">;</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_SIZE_PREPARED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"size-prepared"</span><span class="p">,</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageClass</span><span class="p">,</span><span class="w"> </span><span class="n">size_prepared</span><span class="p">),</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">eom_marshal_VOID__INT_INT</span><span class="p">,</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">,</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-221" name="line-221"></a> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageClass</span><span class="p">,</span><span class="w"> </span><span class="n">changed</span><span class="p">),</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-230" name="line-230"></a> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_THUMBNAIL_CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"thumbnail-changed"</span><span class="p">,</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageClass</span><span class="p">,</span><span class="w"> </span><span class="n">thumbnail_changed</span><span class="p">),</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-239" name="line-239"></a> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_SAVE_PROGRESS</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"save-progress"</span><span class="p">,</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageClass</span><span class="p">,</span><span class="w"> </span><span class="n">save_progress</span><span class="p">),</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__FLOAT</span><span class="p">,</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">G_TYPE_FLOAT</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="cm">/**</span> +<a id="line-250" name="line-250"></a><span class="cm"> * EomImage::next-frame:</span> +<a id="line-251" name="line-251"></a><span class="cm"> * @img: the object which received the signal.</span> +<a id="line-252" name="line-252"></a><span class="cm"> * @delay: number of milliseconds the current frame will be displayed.</span> +<a id="line-253" name="line-253"></a><span class="cm"> *</span> +<a id="line-254" name="line-254"></a><span class="cm"> * The ::next-frame signal will be emitted each time an animated image</span> +<a id="line-255" name="line-255"></a><span class="cm"> * advances to the next frame.</span> +<a id="line-256" name="line-256"></a><span class="cm"> */</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_NEXT_FRAME</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"next-frame"</span><span class="p">,</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageClass</span><span class="p">,</span><span class="w"> </span><span class="n">next_frame</span><span class="p">),</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__INT</span><span class="p">,</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_FILE_CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"file-changed"</span><span class="p">,</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomImageClass</span><span class="p">,</span><span class="w"> </span><span class="n">file_changed</span><span class="p">),</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-274" name="line-274"></a><span class="p">}</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-277" name="line-277"></a><span class="nf">eom_image_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-278" name="line-278"></a><span class="p">{</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-280" name="line-280"></a> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">is_playing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_is_changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">g_mutex_init</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_UNKNOWN</span><span class="p">;</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_NOT_READ</span><span class="p">;</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">data_ref_count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-298" name="line-298"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">autorotate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-302" name="line-302"></a><span class="cp">#endif</span> +<a id="line-303" name="line-303"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">xmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-305" name="line-305"></a><span class="cp">#endif</span> +<a id="line-306" name="line-306"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-308" name="line-308"></a><span class="cp">#endif</span> +<a id="line-309" name="line-309"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-311" name="line-311"></a><span class="cp">#endif</span> +<a id="line-312" name="line-312"></a><span class="p">}</span> +<a id="line-313" name="line-313"></a> +<a id="line-314" name="line-314"></a><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span> +<a id="line-315" name="line-315"></a><span class="nf">eom_image_new_file</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">caption</span><span class="p">)</span> +<a id="line-316" name="line-316"></a><span class="p">{</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">;</span> +<a id="line-318" name="line-318"></a> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-320" name="line-320"></a> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">caption</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">caption</span><span class="p">);</span> +<a id="line-323" name="line-323"></a> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="p">;</span> +<a id="line-325" name="line-325"></a><span class="p">}</span> +<a id="line-326" name="line-326"></a> +<a id="line-327" name="line-327"></a><span class="n">GQuark</span> +<a id="line-328" name="line-328"></a><span class="nf">eom_image_error_quark</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-329" name="line-329"></a><span class="p">{</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GQuark</span><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-331" name="line-331"></a> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">q</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_quark_from_static_string</span><span class="w"> </span><span class="p">(</span><span class="s">"eom-image-error-quark"</span><span class="p">);</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="p">}</span> +<a id="line-335" name="line-335"></a> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">q</span><span class="p">;</span> +<a id="line-337" name="line-337"></a><span class="p">}</span> +<a id="line-338" name="line-338"></a> +<a id="line-339" name="line-339"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-340" name="line-340"></a><span class="nf">eom_image_update_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-341" name="line-341"></a><span class="p">{</span> +<a id="line-342" name="line-342"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">ExifEntry</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="p">;</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">ExifByteOrder</span><span class="w"> </span><span class="n">bo</span><span class="p">;</span> +<a id="line-346" name="line-346"></a> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">);</span> +<a id="line-348" name="line-348"></a> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-350" name="line-350"></a> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-352" name="line-352"></a> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-354" name="line-354"></a> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">bo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_byte_order</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">);</span> +<a id="line-356" name="line-356"></a> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="cm">/* Update image width */</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_PIXEL_X_DIMENSION</span><span class="p">);</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">entry</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="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_FORMAT_LONG</span><span class="p">)</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">exif_set_long</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">bo</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">);</span> +<a id="line-362" name="line-362"></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">entry</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_FORMAT_SHORT</span><span class="p">)</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">exif_set_short</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">bo</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">);</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">else</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Exif entry has unsupported size"</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="p">}</span> +<a id="line-367" name="line-367"></a> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="cm">/* Update image height */</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_PIXEL_Y_DIMENSION</span><span class="p">);</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</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="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_FORMAT_LONG</span><span class="p">)</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">exif_set_long</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">bo</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">);</span> +<a id="line-373" name="line-373"></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">entry</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_FORMAT_SHORT</span><span class="p">)</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">exif_set_short</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">bo</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">);</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="k">else</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Exif entry has unsupported size"</span><span class="p">);</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="p">}</span> +<a id="line-378" name="line-378"></a> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="cm">/* Update image orientation */</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_ORIENTATION</span><span class="p">);</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">entry</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_FORMAT_LONG</span><span class="p">)</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">exif_set_long</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">bo</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-384" name="line-384"></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">entry</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_FORMAT_SHORT</span><span class="p">)</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">exif_set_short</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">bo</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="k">else</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Exif entry has unsupported size"</span><span class="p">);</span> +<a id="line-388" name="line-388"></a> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="p">}</span> +<a id="line-391" name="line-391"></a><span class="cp">#endif</span> +<a id="line-392" name="line-392"></a><span class="p">}</span> +<a id="line-393" name="line-393"></a> +<a id="line-394" name="line-394"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-395" name="line-395"></a><span class="nf">eom_image_real_transform</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">,</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_undo</span><span class="p">,</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span> +<a id="line-399" name="line-399"></a><span class="p">{</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">transformed</span><span class="p">;</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-403" name="line-403"></a> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">));</span> +<a id="line-406" name="line-406"></a> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-408" name="line-408"></a> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">transformed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_apply</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="p">);</span> +<a id="line-411" name="line-411"></a> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">transformed</span><span class="p">;</span> +<a id="line-414" name="line-414"></a> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">transformed</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">transformed</span><span class="p">);</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">}</span> +<a id="line-420" name="line-420"></a> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">transformed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_apply</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">transformed</span><span class="p">;</span> +<a id="line-426" name="line-426"></a> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">}</span> +<a id="line-429" name="line-429"></a> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modified</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">eom_image_update_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="p">}</span> +<a id="line-434" name="line-434"></a> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">);</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">trans</span><span class="p">;</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">composition</span><span class="p">;</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_compose</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">trans</span><span class="p">);</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_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">);</span> +<a id="line-444" name="line-444"></a> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">composition</span><span class="p">;</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="p">}</span> +<a id="line-447" name="line-447"></a> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">is_undo</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</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">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">trans</span><span class="p">);</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">}</span> +<a id="line-452" name="line-452"></a><span class="p">}</span> +<a id="line-453" name="line-453"></a> +<a id="line-454" name="line-454"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-455" name="line-455"></a><span class="nf">do_emit_size_prepared_signal</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-456" name="line-456"></a><span class="p">{</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_SIZE_PREPARED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">);</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-460" name="line-460"></a><span class="p">}</span> +<a id="line-461" name="line-461"></a> +<a id="line-462" name="line-462"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-463" name="line-463"></a><span class="nf">eom_image_emit_size_prepared</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-464" name="line-464"></a><span class="p">{</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">g_idle_add_full</span><span class="w"> </span><span class="p">(</span><span class="n">G_PRIORITY_DEFAULT_IDLE</span><span class="p">,</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="p">(</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="w"> </span><span class="n">do_emit_size_prepared_signal</span><span class="p">,</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-468" name="line-468"></a><span class="p">}</span> +<a id="line-469" name="line-469"></a> +<a id="line-470" name="line-470"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-471" name="line-471"></a><span class="nf">eom_image_size_prepared</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbufLoader</span><span class="w"> </span><span class="o">*</span><span class="n">loader</span><span class="p">,</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">,</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-475" name="line-475"></a><span class="p">{</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">;</span> +<a id="line-477" name="line-477"></a> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_LOAD</span><span class="p">);</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-481" name="line-481"></a> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-483" name="line-483"></a> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-485" name="line-485"></a> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="p">;</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-488" name="line-488"></a> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-490" name="line-490"></a> +<a id="line-491" name="line-491"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">autorotate</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">)</span> +<a id="line-493" name="line-493"></a><span class="cp">#endif</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">eom_image_emit_size_prepared</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-495" name="line-495"></a><span class="p">}</span> +<a id="line-496" name="line-496"></a> +<a id="line-497" name="line-497"></a><span class="k">static</span><span class="w"> </span><span class="n">EomMetadataReader</span><span class="o">*</span> +<a id="line-498" name="line-498"></a><span class="nf">check_for_metadata_img_format</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">)</span> +<a id="line-499" name="line-499"></a><span class="p">{</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">md_reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-501" name="line-501"></a> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"Check image format for jpeg: %x%x - length: %i"</span><span class="p">,</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">);</span> +<a id="line-504" name="line-504"></a> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bytes_read</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="cm">/* SOI (start of image) marker for JPEGs is 0xFFD8 */</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">buffer</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">buffer</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xD8</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">md_reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_METADATA_JPEG</span><span class="p">);</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="p">}</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bytes_read</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> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="s">"</span><span class="se">\x89</span><span class="s">PNG</span><span class="se">\x0D\x0A\x1a\x0A</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">md_reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_METADATA_PNG</span><span class="p">);</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="p">}</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="p">}</span> +<a id="line-515" name="line-515"></a> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">md_reader</span><span class="p">;</span> +<a id="line-517" name="line-517"></a><span class="p">}</span> +<a id="line-518" name="line-518"></a> +<a id="line-519" name="line-519"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-520" name="line-520"></a><span class="nf">eom_image_needs_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-521" name="line-521"></a><span class="p">{</span> +<a id="line-522" name="line-522"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-523" name="line-523"></a> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trans</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">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-525" name="line-525"></a><span class="p">}</span> +<a id="line-526" name="line-526"></a> +<a id="line-527" name="line-527"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-528" name="line-528"></a><span class="nf">eom_image_apply_transformations</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-529" name="line-529"></a><span class="p">{</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">transformed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-533" name="line-533"></a> +<a id="line-534" name="line-534"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-535" name="line-535"></a> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-537" name="line-537"></a> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</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">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="p">}</span> +<a id="line-541" name="line-541"></a> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_NOT_LOADED</span><span class="p">,</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Transformation on unloaded image."</span><span class="p">));</span> +<a id="line-547" name="line-547"></a> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="p">}</span> +<a id="line-550" name="line-550"></a> +<a id="line-551" name="line-551"></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">-></span><span class="n">trans</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">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_compose</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">,</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="p">);</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">);</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="p">);</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="p">}</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">composition</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">transformed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_apply</span><span class="w"> </span><span class="p">(</span><span class="n">composition</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="p">}</span> +<a id="line-563" name="line-563"></a> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">transformed</span><span class="p">;</span> +<a id="line-566" name="line-566"></a> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">transformed</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_GENERIC</span><span class="p">,</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Transformation failed."</span><span class="p">));</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="p">}</span> +<a id="line-576" name="line-576"></a> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">composition</span><span class="p">);</span> +<a id="line-578" name="line-578"></a> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">transformed</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-580" name="line-580"></a><span class="p">}</span> +<a id="line-581" name="line-581"></a> +<a id="line-582" name="line-582"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-583" name="line-583"></a><span class="nf">eom_image_get_file_info</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">goffset</span><span class="w"> </span><span class="o">*</span><span class="n">bytes</span><span class="p">,</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">mime_type</span><span class="p">,</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-587" name="line-587"></a><span class="p">{</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-589" name="line-589"></a> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">,</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_SIZE</span><span class="w"> </span><span class="s">","</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-594" name="line-594"></a> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">)</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="o">*</span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-598" name="line-598"></a> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">)</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-601" name="line-601"></a> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_VFS</span><span class="p">,</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="s">"Error in getting image file info"</span><span class="p">);</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">)</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="o">*</span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">)</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">));</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="p">}</span> +<a id="line-614" name="line-614"></a><span class="p">}</span> +<a id="line-615" name="line-615"></a> +<a id="line-616" name="line-616"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-617" name="line-617"></a><span class="kt">void</span> +<a id="line-618" name="line-618"></a><span class="nf">eom_image_apply_display_profile</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">cmsHPROFILE</span><span class="w"> </span><span class="n">screen</span><span class="p">)</span> +<a id="line-619" name="line-619"></a><span class="p">{</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">cmsHTRANSFORM</span><span class="w"> </span><span class="n">transform</span><span class="p">;</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">row</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p">,</span><span class="w"> </span><span class="n">stride</span><span class="p">;</span> +<a id="line-623" name="line-623"></a><span class="hll"><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'p' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'p' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-624" name="line-624"></a> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-626" name="line-626"></a> +<a id="line-627" name="line-627"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="k">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><span class="k">return</span><span class="p">;</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="p">()))</span><span class="w"> </span><span class="p">{</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="p">}</span> +<a id="line-633" name="line-633"></a> +<a id="line-634" name="line-634"></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">-></span><span class="n">profile</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="cm">/* Check whether GdkPixbuf was able to extract a profile */</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="s">"icc-profile"</span><span class="p">);</span> +<a id="line-638" name="line-638"></a> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">profile_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">profile_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_base64_decode</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="o">&</span><span class="n">profile_size</span><span class="p">);</span> +<a id="line-643" name="line-643"></a> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">profile_data</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">profile_size</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="s">"Using ICC profile "</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="s">"extracted by GdkPixbuf"</span><span class="p">);</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="w"> </span><span class="o">=</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">cmsOpenProfileFromMem</span><span class="p">(</span><span class="n">profile_data</span><span class="p">,</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">profile_size</span><span class="p">);</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">profile_data</span><span class="p">);</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="p">}</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="p">}</span> +<a id="line-654" name="line-654"></a> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="cm">/* Assume sRGB color space for images without ICC profile */</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"Image has no ICC profile. "</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="s">"Assuming sRGB."</span><span class="p">);</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsCreate_sRGBProfile</span><span class="w"> </span><span class="p">();</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="p">}</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="p">}</span> +<a id="line-662" name="line-662"></a> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="cm">/* TODO: support other colorspaces than RGB */</span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cmsGetColorSpace</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">cmsSigRgbData</span><span class="w"> </span><span class="o">||</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">cmsGetColorSpace</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="n">cmsSigRgbData</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"One or both ICC profiles not in RGB colorspace; not correcting"</span><span class="p">);</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="p">}</span> +<a id="line-669" name="line-669"></a> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">cmsUInt32Number</span><span class="w"> </span><span class="n">color_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TYPE_RGB_8</span><span class="p">;</span> +<a id="line-671" name="line-671"></a> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_has_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">))</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">color_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TYPE_RGBA_8</span><span class="p">;</span> +<a id="line-674" name="line-674"></a> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">transform</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsCreateTransform</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="p">,</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">color_type</span><span class="p">,</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">screen</span><span class="p">,</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">color_type</span><span class="p">,</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">INTENT_PERCEPTUAL</span><span class="p">,</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-681" name="line-681"></a> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">transform</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">stride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_rowstride</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_pixels</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-687" name="line-687"></a> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">row</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">row</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">rows</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">row</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">cmsDoTransform</span><span class="w"> </span><span class="p">(</span><span class="n">transform</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">);</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">stride</span><span class="p">;</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="p">}</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">cmsDeleteTransform</span><span class="w"> </span><span class="p">(</span><span class="n">transform</span><span class="p">);</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="p">}</span> +<a id="line-694" name="line-694"></a><span class="p">}</span> +<a id="line-695" name="line-695"></a> +<a id="line-696" name="line-696"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-697" name="line-697"></a><span class="nf">eom_image_set_icc_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">md_reader</span><span class="p">)</span> +<a id="line-698" name="line-698"></a><span class="p">{</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-700" name="line-700"></a> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_get_icc_profile</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="p">);</span> +<a id="line-702" name="line-702"></a> +<a id="line-703" name="line-703"></a><span class="p">}</span> +<a id="line-704" name="line-704"></a><span class="cp">#endif</span> +<a id="line-705" name="line-705"></a> +<a id="line-706" name="line-706"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-707" name="line-707"></a><span class="nf">eom_image_set_orientation</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-708" name="line-708"></a><span class="p">{</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-710" name="line-710"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">ExifData</span><span class="o">*</span><span class="w"> </span><span class="n">exif</span><span class="p">;</span> +<a id="line-712" name="line-712"></a><span class="cp">#endif</span> +<a id="line-713" name="line-713"></a> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-715" name="line-715"></a> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-717" name="line-717"></a> +<a id="line-718" name="line-718"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">exif</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">ExifData</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">eom_image_get_exif_info</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-720" name="line-720"></a> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">ExifByteOrder</span><span class="w"> </span><span class="n">o</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_byte_order</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">);</span> +<a id="line-723" name="line-723"></a> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">ExifEntry</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">,</span> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">EXIF_TAG_ORIENTATION</span><span class="p">);</span> +<a id="line-726" name="line-726"></a> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">entry</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><span class="p">{</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_short</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="p">}</span> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">);</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-732" name="line-732"></a><span class="cp">#endif</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="p">{</span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pbuf</span><span class="p">;</span> +<a id="line-735" name="line-735"></a> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">pbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-737" name="line-737"></a> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-739" name="line-739"></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">o_str</span><span class="p">;</span> +<a id="line-740" name="line-740"></a> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">o_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pbuf</span><span class="p">,</span><span class="w"> </span><span class="s">"orientation"</span><span class="p">);</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">o_str</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">short</span><span class="p">)</span><span class="w"> </span><span class="n">g_ascii_strtoll</span><span class="w"> </span><span class="p">(</span><span class="n">o_str</span><span class="p">,</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">9</span><span class="p">)</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="p">;</span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="p">}</span> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pbuf</span><span class="p">);</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="p">}</span> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="p">}</span> +<a id="line-751" name="line-751"></a> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">&&</span> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</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><span class="p">{</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-755" name="line-755"></a> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">;</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">;</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="p">}</span> +<a id="line-760" name="line-760"></a><span class="p">}</span> +<a id="line-761" name="line-761"></a> +<a id="line-762" name="line-762"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-763" name="line-763"></a><span class="nf">eom_image_real_autorotate</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-764" name="line-764"></a><span class="p">{</span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">EomTransformType</span><span class="w"> </span><span class="n">lookup</span><span class="p">[</span><span class="mi">8</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="n">EOM_TRANSFORM_NONE</span><span class="p">,</span> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="n">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">,</span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">EOM_TRANSFORM_ROT_180</span><span class="p">,</span> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">,</span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="n">EOM_TRANSFORM_TRANSPOSE</span><span class="p">,</span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">EOM_TRANSFORM_ROT_90</span><span class="p">,</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">EOM_TRANSFORM_TRANSVERSE</span><span class="p">,</span> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="n">EOM_TRANSFORM_ROT_270</span><span class="p">};</span> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">EomTransformType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span> +<a id="line-775" name="line-775"></a> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-777" name="line-777"></a> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-779" name="line-779"></a> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</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> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">lookup</span><span class="p">[</span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">EOM_TRANSFORM_NONE</span><span class="p">);</span> +<a id="line-782" name="line-782"></a> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_TRANSFORM_NONE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_new</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">);</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="p">}</span> +<a id="line-786" name="line-786"></a> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="cm">/* Disable auto orientation for next loads */</span> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">autorotate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-789" name="line-789"></a><span class="p">}</span> +<a id="line-790" name="line-790"></a> +<a id="line-791" name="line-791"></a><span class="kt">void</span> +<a id="line-792" name="line-792"></a><span class="nf">eom_image_autorotate</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-793" name="line-793"></a><span class="p">{</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-795" name="line-795"></a> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="cm">/* Schedule auto orientation */</span> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">autorotate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-798" name="line-798"></a><span class="p">}</span> +<a id="line-799" name="line-799"></a> +<a id="line-800" name="line-800"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-801" name="line-801"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-802" name="line-802"></a><span class="nf">eom_image_set_xmp_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">md_reader</span><span class="p">)</span> +<a id="line-803" name="line-803"></a><span class="p">{</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-805" name="line-805"></a> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-807" name="line-807"></a> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-809" name="line-809"></a> +<a id="line-810" name="line-810"></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">-></span><span class="n">xmp</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">xmp_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp</span><span class="p">);</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="p">}</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_get_xmp_data</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="p">);</span> +<a id="line-814" name="line-814"></a><span class="p">}</span> +<a id="line-815" name="line-815"></a><span class="cp">#endif</span> +<a id="line-816" name="line-816"></a> +<a id="line-817" name="line-817"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-818" name="line-818"></a><span class="nf">eom_image_set_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">md_reader</span><span class="p">)</span> +<a id="line-819" name="line-819"></a><span class="p">{</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-821" name="line-821"></a> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-823" name="line-823"></a> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-825" name="line-825"></a> +<a id="line-826" name="line-826"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">);</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="p">}</span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_get_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="p">);</span> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-833" name="line-833"></a> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-836" name="line-836"></a> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="cm">/* EXIF data is already available, set the image orientation */</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">autorotate</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">eom_image_set_orientation</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-840" name="line-840"></a> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="cm">/* Emit size prepared signal if we have the size */</span> +<a id="line-842" name="line-842"></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">-></span><span class="n">width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-844" name="line-844"></a><span class="w"> </span><span class="n">eom_image_emit_size_prepared</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="p">}</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="p">}</span> +<a id="line-847" name="line-847"></a><span class="cp">#else</span> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">);</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="p">}</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="n">eom_metadata_reader_get_exif_chunk</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="p">,</span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">,</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk_len</span><span class="p">);</span> +<a id="line-854" name="line-854"></a><span class="cp">#endif</span> +<a id="line-855" name="line-855"></a><span class="p">}</span> +<a id="line-856" name="line-856"></a> +<a id="line-857" name="line-857"></a><span class="cm">/*</span> +<a id="line-858" name="line-858"></a><span class="cm"> * Attempts to get the image dimensions from the thumbnail.</span> +<a id="line-859" name="line-859"></a><span class="cm"> * Returns FALSE if this information is not found.</span> +<a id="line-860" name="line-860"></a><span class="cm"> **/</span> +<a id="line-861" name="line-861"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-862" name="line-862"></a><span class="nf">eom_image_get_dimension_from_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span> +<a id="line-863" name="line-863"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">,</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">)</span> +<a id="line-865" name="line-865"></a><span class="p">{</span> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-868" name="line-868"></a> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">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">image</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">),</span> +<a id="line-870" name="line-870"></a><span class="w"> </span><span class="n">EOM_THUMBNAIL_ORIGINAL_WIDTH</span><span class="p">));</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">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">image</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">),</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">EOM_THUMBNAIL_ORIGINAL_HEIGHT</span><span class="p">));</span> +<a id="line-873" name="line-873"></a> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">width</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">);</span> +<a id="line-875" name="line-875"></a><span class="p">}</span> +<a id="line-876" name="line-876"></a> +<a id="line-877" name="line-877"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-878" name="line-878"></a><span class="nf">eom_image_real_load</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">data2read</span><span class="p">,</span> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-882" name="line-882"></a><span class="p">{</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">GFileInputStream</span><span class="w"> </span><span class="o">*</span><span class="n">input_stream</span><span class="p">;</span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">md_reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="p">;</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">GdkPixbufLoader</span><span class="w"> </span><span class="o">*</span><span class="n">loader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buffer</span><span class="p">;</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">goffset</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">,</span><span class="w"> </span><span class="n">bytes_read_total</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">failed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">first_run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">set_metadata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">use_rsvg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">read_image_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">data2read</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_IMAGE</span><span class="p">);</span> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">read_only_dimension</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">data2read</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_DIMENSION</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="p">((</span><span class="n">data2read</span><span class="w"> </span><span class="o">^</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_DIMENSION</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-898" name="line-898"></a> +<a id="line-899" name="line-899"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-900" name="line-900"></a> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">read_image_data</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-902" name="line-902"></a> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">read_image_data</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-904" name="line-904"></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">-></span><span class="n">file_type</span><span class="p">);</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="p">}</span> +<a id="line-907" name="line-907"></a> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">eom_image_get_file_info</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">bytes</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">mime_type</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-909" name="line-909"></a> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">);</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="p">}</span> +<a id="line-914" name="line-914"></a> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">read_only_dimension</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">done</span><span class="p">;</span> +<a id="line-918" name="line-918"></a> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">done</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_dimension_from_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">);</span> +<a id="line-922" name="line-922"></a> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">done</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="p">;</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-926" name="line-926"></a> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">);</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="p">}</span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="p">}</span> +<a id="line-931" name="line-931"></a> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">input_stream</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_read</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-933" name="line-933"></a> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">input_stream</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">);</span> +<a id="line-936" name="line-936"></a> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_VFS</span><span class="p">,</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="s">"Failed to open input stream for file"</span><span class="p">);</span> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="p">}</span> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="p">}</span> +<a id="line-946" name="line-946"></a> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">buffer</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_READ_BUFFER_SIZE</span><span class="p">);</span> +<a id="line-948" name="line-948"></a> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">read_image_data</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">read_only_dimension</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-950" name="line-950"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="p">);</span> +<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="p">}</span> +<a id="line-955" name="line-955"></a> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">,</span><span class="w"> </span><span class="s">"image/svg+xml"</span><span class="p">)</span> +<a id="line-957" name="line-957"></a><span class="cp">#if defined (LIBRSVG_HAVE_SVGZ) && LIBRSVG_HAVE_SVGZ</span> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">,</span><span class="w"> </span><span class="s">"image/svg+xml-compressed"</span><span class="p">)</span> +<a id="line-959" name="line-959"></a><span class="cp">#endif</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">file_path</span><span class="p">;</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="cm">/* Keep the object for rendering */</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rsvg_handle_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">use_rsvg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">file_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="n">rsvg_handle_set_base_uri</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="p">,</span><span class="w"> </span><span class="n">file_path</span><span class="p">);</span> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">file_path</span><span class="p">);</span> +<a id="line-968" name="line-968"></a><span class="w"> </span><span class="p">}</span> +<a id="line-969" name="line-969"></a><span class="cp">#endif</span> +<a id="line-970" name="line-970"></a> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">use_rsvg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="n">loader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_loader_new_with_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-973" name="line-973"></a> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">error</span><span class="p">);</span> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-977" name="line-977"></a> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="n">loader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_loader_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-979" name="line-979"></a><span class="w"> </span><span class="p">}</span> +<a id="line-980" name="line-980"></a> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="p">,</span><span class="w"> </span><span class="s">"size-prepared"</span><span class="p">,</span> +<a id="line-982" name="line-982"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_size_prepared</span><span class="p">),</span> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="n">img</span><span class="p">,</span> +<a id="line-984" name="line-984"></a><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-985" name="line-985"></a><span class="w"> </span><span class="p">}</span> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="p">}</span> +<a id="line-987" name="line-987"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">);</span> +<a id="line-988" name="line-988"></a> +<a id="line-989" name="line-989"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">cancel_loading</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="cm">/* FIXME: make this async */</span> +<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_input_stream_read</span><span class="w"> </span><span class="p">(</span><span class="n">G_INPUT_STREAM</span><span class="w"> </span><span class="p">(</span><span class="n">input_stream</span><span class="p">),</span> +<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">buffer</span><span class="p">,</span> +<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">EOM_IMAGE_READ_BUFFER_SIZE</span><span class="p">,</span> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-995" name="line-995"></a> +<a id="line-996" name="line-996"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bytes_read</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-997" name="line-997"></a><span class="w"> </span><span class="cm">/* End of the file */</span> +<a id="line-998" name="line-998"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-999" name="line-999"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bytes_read</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="n">failed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1001" name="line-1001"></a> +<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_VFS</span><span class="p">,</span> +<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="s">"Failed to read from input stream"</span><span class="p">);</span> +<a id="line-1006" name="line-1006"></a> +<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1009" name="line-1009"></a> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">read_image_data</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">read_only_dimension</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1011" name="line-1011"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">use_rsvg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">res</span><span class="p">;</span> +<a id="line-1014" name="line-1014"></a> +<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rsvg_handle_write</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span> +<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="n">bytes_read</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-1017" name="line-1017"></a> +<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">res</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="n">failed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-1023" name="line-1023"></a><span class="cp">#endif</span> +<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gdk_pixbuf_loader_write</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="n">failed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1029" name="line-1029"></a> +<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="n">bytes_read_total</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">;</span> +<a id="line-1031" name="line-1031"></a> +<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="n">progress</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">float</span><span class="p">)</span><span class="w"> </span><span class="n">bytes_read_total</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">float</span><span class="p">)</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes</span><span class="p">;</span> +<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="n">eom_job_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">progress</span><span class="p">);</span> +<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1036" name="line-1036"></a> +<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">first_run</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="n">md_reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">check_for_metadata_img_format</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">);</span> +<a id="line-1039" name="line-1039"></a> +<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data2read</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-1043" name="line-1043"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_GENERIC</span><span class="p">,</span> +<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"EXIF not supported for this file format."</span><span class="p">));</span> +<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1048" name="line-1048"></a> +<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_NOT_AVAILABLE</span><span class="p">;</span> +<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1051" name="line-1051"></a> +<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="n">first_run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1054" name="line-1054"></a> +<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="n">eom_metadata_reader_consume</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">);</span> +<a id="line-1057" name="line-1057"></a> +<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_metadata_reader_finished</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">set_metadata</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">eom_image_set_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">md_reader</span><span class="p">);</span> +<a id="line-1061" name="line-1061"></a> +<a id="line-1062" name="line-1062"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="n">eom_image_set_icc_data</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">md_reader</span><span class="p">);</span> +<a id="line-1064" name="line-1064"></a><span class="cp">#endif</span> +<a id="line-1065" name="line-1065"></a> +<a id="line-1066" name="line-1066"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="n">eom_image_set_xmp_data</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">md_reader</span><span class="p">);</span> +<a id="line-1068" name="line-1068"></a><span class="cp">#endif</span> +<a id="line-1069" name="line-1069"></a><span class="w"> </span><span class="n">set_metadata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_READY</span><span class="p">;</span> +<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1072" name="line-1072"></a> +<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data2read</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="p">)</span> +<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1077" name="line-1077"></a> +<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">read_only_dimension</span><span class="w"> </span><span class="o">&&</span> +<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_DIMENSION</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1083" name="line-1083"></a> +<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">read_image_data</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">read_only_dimension</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1085" name="line-1085"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">use_rsvg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="cm">/* Ignore the error if loading failed earlier</span> +<a id="line-1088" name="line-1088"></a><span class="cm"> * as the error will already be set in that case */</span> +<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="n">rsvg_handle_close</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="p">,</span> +<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="p">(</span><span class="n">failed</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">error</span><span class="p">));</span> +<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-1092" name="line-1092"></a><span class="cp">#endif</span> +<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">failed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="n">gdk_pixbuf_loader_close</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1095" name="line-1095"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gdk_pixbuf_loader_close</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_loader_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="cm">/* Clear error in order to support partial</span> +<a id="line-1098" name="line-1098"></a><span class="cm"> * images as well. */</span> +<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1103" name="line-1103"></a> +<a id="line-1104" name="line-1104"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">buffer</span><span class="p">);</span> +<a id="line-1105" name="line-1105"></a> +<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">input_stream</span><span class="p">));</span> +<a id="line-1107" name="line-1107"></a> +<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="n">failed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">failed</span><span class="w"> </span><span class="o">||</span> +<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cancel_loading</span><span class="w"> </span><span class="o">||</span> +<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="n">bytes_read_total</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-1112" name="line-1112"></a> +<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">failed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1114" name="line-1114"></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">-></span><span class="n">cancel_loading</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cancel_loading</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_UNKNOWN</span><span class="p">;</span> +<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_FAILED</span><span class="p">;</span> +<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">read_image_data</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1121" name="line-1121"></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">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1124" name="line-1124"></a> +<a id="line-1125" name="line-1125"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-1126" name="line-1126"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">use_rsvg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rsvg_handle_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="p">);</span> +<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-1129" name="line-1129"></a><span class="cp">#endif</span> +<a id="line-1130" name="line-1130"></a> +<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1132" name="line-1132"></a> +<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_loader_get_animation</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="p">);</span> +<a id="line-1134" name="line-1134"></a> +<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_animation_is_static_image</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_animation_get_static_image</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="p">);</span> +<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1138" name="line-1138"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_animation_get_iter</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="p">,</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_animation_iter_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">);</span> +<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1142" name="line-1142"></a> +<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1144" name="line-1144"></a> +<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1146" name="line-1146"></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">use_rsvg</span><span class="p">)</span> +<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1148" name="line-1148"></a> +<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1151" name="line-1151"></a> +<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">use_rsvg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">"svg"</span><span class="p">);</span> +<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_loader_get_format</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="p">);</span> +<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1158" name="line-1158"></a> +<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_format_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">);</span> +<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1162" name="line-1162"></a> +<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_is_changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1164" name="line-1164"></a> +<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="cm">/* Set orientation again for safety, eg. if we don't</span> +<a id="line-1166" name="line-1166"></a><span class="cm"> * have Exif data or HAVE_EXIF is undefined. */</span> +<a id="line-1167" name="line-1167"></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">-></span><span class="n">autorotate</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="n">eom_image_set_orientation</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="n">eom_image_emit_size_prepared</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-1170" name="line-1170"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1171" name="line-1171"></a> +<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="cm">/* Some loaders don't report errors correctly.</span> +<a id="line-1174" name="line-1174"></a><span class="cm"> * Error will be set below. */</span> +<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="n">failed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_FAILED</span><span class="p">;</span> +<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1179" name="line-1179"></a> +<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loader</span><span class="p">);</span> +<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1183" name="line-1183"></a> +<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">md_reader</span><span class="p">);</span> +<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="n">md_reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1188" name="line-1188"></a> +<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="cm">/* Catch-all in case of poor-error reporting */</span> +<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">failed</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-1192" name="line-1192"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_GENERIC</span><span class="p">,</span> +<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Image loading failed."</span><span class="p">));</span> +<a id="line-1195" name="line-1195"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1196" name="line-1196"></a> +<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">!</span><span class="n">failed</span><span class="p">;</span> +<a id="line-1198" name="line-1198"></a><span class="p">}</span> +<a id="line-1199" name="line-1199"></a> +<a id="line-1200" name="line-1200"></a><span class="n">gboolean</span> +<a id="line-1201" name="line-1201"></a><span class="nf">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageData</span><span class="w"> </span><span class="n">req_data</span><span class="p">)</span> +<a id="line-1202" name="line-1202"></a><span class="p">{</span> +<a id="line-1203" name="line-1203"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1204" name="line-1204"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1205" name="line-1205"></a> +<a id="line-1206" name="line-1206"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1207" name="line-1207"></a> +<a id="line-1208" name="line-1208"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1209" name="line-1209"></a> +<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">req_data</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_IMAGE</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="n">req_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">req_data</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="o">~</span><span class="n">EOM_IMAGE_DATA_IMAGE</span><span class="p">);</span> +<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1213" name="line-1213"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1214" name="line-1214"></a> +<a id="line-1215" name="line-1215"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">req_data</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_DIMENSION</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="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="n">req_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">req_data</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="o">~</span><span class="n">EOM_IMAGE_DATA_DIMENSION</span><span class="p">);</span> +<a id="line-1217" name="line-1217"></a><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1218" name="line-1218"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1219" name="line-1219"></a> +<a id="line-1220" name="line-1220"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">req_data</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="n">req_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">req_data</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="o">~</span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="p">);</span> +<a id="line-1222" name="line-1222"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1224" name="line-1224"></a><span class="cp">#else</span> +<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1226" name="line-1226"></a><span class="cp">#endif</span> +<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1228" name="line-1228"></a> +<a id="line-1229" name="line-1229"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">req_data</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_XMP</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="n">req_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">req_data</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="o">~</span><span class="n">EOM_IMAGE_DATA_XMP</span><span class="p">);</span> +<a id="line-1231" name="line-1231"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1233" name="line-1233"></a><span class="cp">#endif</span> +<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1235" name="line-1235"></a> +<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">req_data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1237" name="line-1237"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Asking for unknown data, remaining: %i</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">req_data</span><span class="p">);</span> +<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="n">has_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1240" name="line-1240"></a> +<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">has_data</span><span class="p">;</span> +<a id="line-1242" name="line-1242"></a><span class="p">}</span> +<a id="line-1243" name="line-1243"></a> +<a id="line-1244" name="line-1244"></a><span class="n">gboolean</span> +<a id="line-1245" name="line-1245"></a><span class="nf">eom_image_load</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageData</span><span class="w"> </span><span class="n">data2read</span><span class="p">,</span><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-1246" name="line-1246"></a><span class="p">{</span> +<a id="line-1247" name="line-1247"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1249" name="line-1249"></a> +<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_LOAD</span><span class="p">);</span> +<a id="line-1251" name="line-1251"></a> +<a id="line-1252" name="line-1252"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1253" name="line-1253"></a> +<a id="line-1254" name="line-1254"></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">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1255" name="line-1255"></a> +<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data2read</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1258" name="line-1258"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1259" name="line-1259"></a> +<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">data2read</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1261" name="line-1261"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1262" name="line-1262"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1263" name="line-1263"></a> +<a id="line-1264" name="line-1264"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_LOADING</span><span class="p">;</span> +<a id="line-1265" name="line-1265"></a> +<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_real_load</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">data2read</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-1267" name="line-1267"></a> +<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="cm">/* Check that the metadata was loaded at least once before</span> +<a id="line-1269" name="line-1269"></a><span class="cm"> * trying to autorotate. Also only an imatge load job should try to</span> +<a id="line-1270" name="line-1270"></a><span class="cm"> * autorotate and image */</span> +<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">autorotate</span><span class="w"> </span><span class="o">&&</span> +<a id="line-1272" name="line-1272"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_status</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_NOT_READ</span><span class="w"> </span><span class="o">&&</span> +<a id="line-1274" name="line-1274"></a><span class="cp">#endif</span> +<a id="line-1275" name="line-1275"></a><span class="w"> </span><span class="n">data2read</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_IMAGE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="n">eom_image_real_autorotate</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-1277" name="line-1277"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1278" name="line-1278"></a> +<a id="line-1279" name="line-1279"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">success</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">eom_image_needs_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1280" name="line-1280"></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">eom_image_apply_transformations</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-1281" name="line-1281"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1282" name="line-1282"></a> +<a id="line-1283" name="line-1283"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">success</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_LOADED</span><span class="p">;</span> +<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_FAILED</span><span class="p">;</span> +<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1288" name="line-1288"></a> +<a id="line-1289" name="line-1289"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">success</span><span class="p">;</span> +<a id="line-1290" name="line-1290"></a><span class="p">}</span> +<a id="line-1291" name="line-1291"></a> +<a id="line-1292" name="line-1292"></a><span class="kt">void</span> +<a id="line-1293" name="line-1293"></a><span class="nf">eom_image_set_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnail</span><span class="p">)</span> +<a id="line-1294" name="line-1294"></a><span class="p">{</span> +<a id="line-1295" name="line-1295"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1296" name="line-1296"></a> +<a id="line-1297" name="line-1297"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-1298" name="line-1298"></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_PIXBUF</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">thumbnail</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1299" name="line-1299"></a> +<a id="line-1300" name="line-1300"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1301" name="line-1301"></a> +<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1306" name="line-1306"></a> +<a id="line-1307" name="line-1307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</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">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_apply</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">thumbnail</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnail</span><span class="p">;</span> +<a id="line-1311" name="line-1311"></a> +<a id="line-1312" name="line-1312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-1314" name="line-1314"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1315" name="line-1315"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1316" name="line-1316"></a> +<a id="line-1317" name="line-1317"></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">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1318" name="line-1318"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_THUMBNAIL_CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1320" name="line-1320"></a><span class="p">}</span> +<a id="line-1321" name="line-1321"></a> +<a id="line-1322" name="line-1322"></a><span class="cm">/**</span> +<a id="line-1323" name="line-1323"></a><span class="cm"> * eom_image_get_pixbuf:</span> +<a id="line-1324" name="line-1324"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-1325" name="line-1325"></a><span class="cm"> *</span> +<a id="line-1326" name="line-1326"></a><span class="cm"> * Gets the #GdkPixbuf of the image</span> +<a id="line-1327" name="line-1327"></a><span class="cm"> *</span> +<a id="line-1328" name="line-1328"></a><span class="cm"> * Returns: (transfer full): a #GdkPixbuf</span> +<a id="line-1329" name="line-1329"></a><span class="cm"> **/</span> +<a id="line-1330" name="line-1330"></a><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span> +<a id="line-1331" name="line-1331"></a><span class="nf">eom_image_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-1332" name="line-1332"></a><span class="p">{</span> +<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1334" name="line-1334"></a> +<a id="line-1335" name="line-1335"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1336" name="line-1336"></a> +<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-1338" name="line-1338"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-1339" name="line-1339"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-1340" name="line-1340"></a> +<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-1343" name="line-1343"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1344" name="line-1344"></a> +<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-1346" name="line-1346"></a><span class="p">}</span> +<a id="line-1347" name="line-1347"></a> +<a id="line-1348" name="line-1348"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-1349" name="line-1349"></a><span class="n">cmsHPROFILE</span> +<a id="line-1350" name="line-1350"></a><span class="nf">eom_image_get_profile</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-1351" name="line-1351"></a><span class="p">{</span> +<a id="line-1352" name="line-1352"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1353" name="line-1353"></a> +<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">profile</span><span class="p">;</span> +<a id="line-1355" name="line-1355"></a><span class="p">}</span> +<a id="line-1356" name="line-1356"></a><span class="cp">#endif</span> +<a id="line-1357" name="line-1357"></a> +<a id="line-1358" name="line-1358"></a><span class="cm">/**</span> +<a id="line-1359" name="line-1359"></a><span class="cm"> * eom_image_get_thumbnail:</span> +<a id="line-1360" name="line-1360"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-1361" name="line-1361"></a><span class="cm"> *</span> +<a id="line-1362" name="line-1362"></a><span class="cm"> * Gets the thumbnail pixbuf for @img</span> +<a id="line-1363" name="line-1363"></a><span class="cm"> *</span> +<a id="line-1364" name="line-1364"></a><span class="cm"> * Returns: (transfer full): a #GdkPixbuf with a thumbnail</span> +<a id="line-1365" name="line-1365"></a><span class="cm"> **/</span> +<a id="line-1366" name="line-1366"></a><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span> +<a id="line-1367" name="line-1367"></a><span class="nf">eom_image_get_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-1368" name="line-1368"></a><span class="p">{</span> +<a id="line-1369" name="line-1369"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1370" name="line-1370"></a> +<a id="line-1371" name="line-1371"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1372" name="line-1372"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-1373" name="line-1373"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1374" name="line-1374"></a> +<a id="line-1375" name="line-1375"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1376" name="line-1376"></a><span class="p">}</span> +<a id="line-1377" name="line-1377"></a> +<a id="line-1378" name="line-1378"></a><span class="kt">void</span> +<a id="line-1379" name="line-1379"></a><span class="nf">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">)</span> +<a id="line-1380" name="line-1380"></a><span class="p">{</span> +<a id="line-1381" name="line-1381"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1382" name="line-1382"></a> +<a id="line-1383" name="line-1383"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-1384" name="line-1384"></a> +<a id="line-1385" name="line-1385"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1386" name="line-1386"></a> +<a id="line-1387" name="line-1387"></a><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">;</span> +<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">;</span> +<a id="line-1389" name="line-1389"></a><span class="p">}</span> +<a id="line-1390" name="line-1390"></a> +<a id="line-1391" name="line-1391"></a><span class="kt">void</span> +<a id="line-1392" name="line-1392"></a><span class="nf">eom_image_transform</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span> +<a id="line-1393" name="line-1393"></a><span class="p">{</span> +<a id="line-1394" name="line-1394"></a><span class="w"> </span><span class="n">eom_image_real_transform</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="p">);</span> +<a id="line-1395" name="line-1395"></a><span class="p">}</span> +<a id="line-1396" name="line-1396"></a> +<a id="line-1397" name="line-1397"></a><span class="kt">void</span> +<a id="line-1398" name="line-1398"></a><span class="nf">eom_image_undo</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-1399" name="line-1399"></a><span class="p">{</span> +<a id="line-1400" name="line-1400"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1401" name="line-1401"></a><span class="hll"><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'trans' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'trans' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-1402" name="line-1402"></a><span class="hll"><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">inverse</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'inverse' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'inverse' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-1403" name="line-1403"></a> +<a id="line-1404" name="line-1404"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-1405" name="line-1405"></a> +<a id="line-1406" name="line-1406"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1407" name="line-1407"></a> +<a id="line-1408" name="line-1408"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1409" name="line-1409"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-1410" name="line-1410"></a> +<a id="line-1411" name="line-1411"></a><span class="w"> </span><span class="n">inverse</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">);</span> +<a id="line-1412" name="line-1412"></a> +<a id="line-1413" name="line-1413"></a><span class="w"> </span><span class="n">eom_image_real_transform</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">inverse</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1414" name="line-1414"></a> +<a id="line-1415" name="line-1415"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_delete_link</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">);</span> +<a id="line-1416" name="line-1416"></a> +<a id="line-1417" name="line-1417"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">);</span> +<a id="line-1418" name="line-1418"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">inverse</span><span class="p">);</span> +<a id="line-1419" name="line-1419"></a> +<a id="line-1420" name="line-1420"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_transform_is_identity</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1421" name="line-1421"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">);</span> +<a id="line-1422" name="line-1422"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1423" name="line-1423"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1424" name="line-1424"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1425" name="line-1425"></a> +<a id="line-1426" name="line-1426"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1427" name="line-1427"></a><span class="p">}</span> +<a id="line-1428" name="line-1428"></a> +<a id="line-1429" name="line-1429"></a><span class="k">static</span><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span> +<a id="line-1430" name="line-1430"></a><span class="nf">tmp_file_get</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-1431" name="line-1431"></a><span class="p">{</span> +<a id="line-1432" name="line-1432"></a><span class="hll"><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_file</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'tmp_file' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'tmp_file' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-1433" name="line-1433"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_file_path</span><span class="p">;</span> +<a id="line-1434" name="line-1434"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">fd</span><span class="p">;</span> +<a id="line-1435" name="line-1435"></a> +<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="n">tmp_file_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_tmp_dir</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="s">"eom-save-XXXXXX"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1437" name="line-1437"></a><span class="w"> </span><span class="n">fd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_mkstemp</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file_path</span><span class="p">);</span> +<a id="line-1438" name="line-1438"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fd</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1439" name="line-1439"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file_path</span><span class="p">);</span> +<a id="line-1440" name="line-1440"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1441" name="line-1441"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1442" name="line-1442"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1443" name="line-1443"></a><span class="w"> </span><span class="n">tmp_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file_path</span><span class="p">);</span> +<a id="line-1444" name="line-1444"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file_path</span><span class="p">);</span> +<a id="line-1445" name="line-1445"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">tmp_file</span><span class="p">;</span> +<a id="line-1446" name="line-1446"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1447" name="line-1447"></a><span class="p">}</span> +<a id="line-1448" name="line-1448"></a> +<a id="line-1449" name="line-1449"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1450" name="line-1450"></a><span class="nf">transfer_progress_cb</span><span class="w"> </span><span class="p">(</span><span class="n">goffset</span><span class="w"> </span><span class="n">cur_bytes</span><span class="p">,</span> +<a id="line-1451" name="line-1451"></a><span class="w"> </span><span class="n">goffset</span><span class="w"> </span><span class="n">total_bytes</span><span class="p">,</span> +<a id="line-1452" name="line-1452"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1453" name="line-1453"></a><span class="p">{</span> +<a id="line-1454" name="line-1454"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-1455" name="line-1455"></a> +<a id="line-1456" name="line-1456"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cur_bytes</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_SAVE_PROGRESS</span><span class="p">],</span> +<a id="line-1458" name="line-1458"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-1459" name="line-1459"></a><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="n">cur_bytes</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="n">total_bytes</span><span class="p">);</span> +<a id="line-1460" name="line-1460"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1461" name="line-1461"></a><span class="p">}</span> +<a id="line-1462" name="line-1462"></a> +<a id="line-1463" name="line-1463"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1464" name="line-1464"></a><span class="nf">tmp_file_restore_unix_attributes</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">temp_file</span><span class="p">,</span> +<a id="line-1465" name="line-1465"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">target_file</span><span class="p">)</span> +<a id="line-1466" name="line-1466"></a><span class="p">{</span> +<a id="line-1467" name="line-1467"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">uid</span><span class="p">;</span> +<a id="line-1469" name="line-1469"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">gid</span><span class="p">;</span> +<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span> +<a id="line-1471" name="line-1471"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">mode_mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mo">00600</span><span class="p">;</span> +<a id="line-1472" name="line-1472"></a> +<a id="line-1473" name="line-1473"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1474" name="line-1474"></a> +<a id="line-1475" name="line-1475"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">G_IS_FILE</span><span class="w"> </span><span class="p">(</span><span class="n">temp_file</span><span class="p">));</span> +<a id="line-1476" name="line-1476"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">G_IS_FILE</span><span class="w"> </span><span class="p">(</span><span class="n">target_file</span><span class="p">));</span> +<a id="line-1477" name="line-1477"></a> +<a id="line-1478" name="line-1478"></a><span class="w"> </span><span class="cm">/* check if file exists */</span> +<a id="line-1479" name="line-1479"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_query_exists</span><span class="w"> </span><span class="p">(</span><span class="n">target_file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_SAVE</span><span class="p">,</span> +<a id="line-1481" name="line-1481"></a><span class="w"> </span><span class="s">"Target file doesn't exist. Setting default attributes."</span><span class="p">);</span> +<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1483" name="line-1483"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1484" name="line-1484"></a> +<a id="line-1485" name="line-1485"></a><span class="w"> </span><span class="cm">/* retrieve UID, GID, and MODE of the original file info */</span> +<a id="line-1486" name="line-1486"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">target_file</span><span class="p">,</span> +<a id="line-1487" name="line-1487"></a><span class="w"> </span><span class="s">"unix::uid,unix::gid,unix::mode"</span><span class="p">,</span> +<a id="line-1488" name="line-1488"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span> +<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1490" name="line-1490"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-1491" name="line-1491"></a> +<a id="line-1492" name="line-1492"></a><span class="w"> </span><span class="cm">/* check that there aren't any error */</span> +<a id="line-1493" name="line-1493"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1494" name="line-1494"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_SAVE</span><span class="p">,</span> +<a id="line-1495" name="line-1495"></a><span class="w"> </span><span class="s">"File information not available. Setting default attributes."</span><span class="p">);</span> +<a id="line-1496" name="line-1496"></a> +<a id="line-1497" name="line-1497"></a><span class="w"> </span><span class="cm">/* free objects */</span> +<a id="line-1498" name="line-1498"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-1499" name="line-1499"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-1500" name="line-1500"></a> +<a id="line-1501" name="line-1501"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1503" name="line-1503"></a> +<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="cm">/* save UID, GID and MODE values */</span> +<a id="line-1505" name="line-1505"></a><span class="w"> </span><span class="n">uid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint32</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">,</span> +<a id="line-1506" name="line-1506"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_UNIX_UID</span><span class="p">);</span> +<a id="line-1507" name="line-1507"></a> +<a id="line-1508" name="line-1508"></a><span class="w"> </span><span class="n">gid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint32</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">,</span> +<a id="line-1509" name="line-1509"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_UNIX_GID</span><span class="p">);</span> +<a id="line-1510" name="line-1510"></a> +<a id="line-1511" name="line-1511"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint32</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">,</span> +<a id="line-1512" name="line-1512"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_UNIX_MODE</span><span class="p">);</span> +<a id="line-1513" name="line-1513"></a> +<a id="line-1514" name="line-1514"></a><span class="w"> </span><span class="cm">/* apply default mode mask to file mode */</span> +<a id="line-1515" name="line-1515"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">mode_mask</span><span class="p">;</span> +<a id="line-1516" name="line-1516"></a> +<a id="line-1517" name="line-1517"></a><span class="w"> </span><span class="cm">/* restore original UID, GID, and MODE into the temporal file */</span> +<a id="line-1518" name="line-1518"></a><span class="w"> </span><span class="n">g_file_set_attribute_uint32</span><span class="w"> </span><span class="p">(</span><span class="n">temp_file</span><span class="p">,</span> +<a id="line-1519" name="line-1519"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_UNIX_UID</span><span class="p">,</span> +<a id="line-1520" name="line-1520"></a><span class="w"> </span><span class="n">uid</span><span class="p">,</span> +<a id="line-1521" name="line-1521"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span> +<a id="line-1522" name="line-1522"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1523" name="line-1523"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-1524" name="line-1524"></a> +<a id="line-1525" name="line-1525"></a><span class="w"> </span><span class="cm">/* check that there aren't any error */</span> +<a id="line-1526" name="line-1526"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1527" name="line-1527"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_SAVE</span><span class="p">,</span> +<a id="line-1528" name="line-1528"></a><span class="w"> </span><span class="s">"You do not have the permissions necessary to change the file UID."</span><span class="p">);</span> +<a id="line-1529" name="line-1529"></a> +<a id="line-1530" name="line-1530"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-1531" name="line-1531"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1532" name="line-1532"></a> +<a id="line-1533" name="line-1533"></a><span class="w"> </span><span class="n">g_file_set_attribute_uint32</span><span class="w"> </span><span class="p">(</span><span class="n">temp_file</span><span class="p">,</span> +<a id="line-1534" name="line-1534"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_UNIX_GID</span><span class="p">,</span> +<a id="line-1535" name="line-1535"></a><span class="w"> </span><span class="n">gid</span><span class="p">,</span> +<a id="line-1536" name="line-1536"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span> +<a id="line-1537" name="line-1537"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1538" name="line-1538"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-1539" name="line-1539"></a> +<a id="line-1540" name="line-1540"></a><span class="w"> </span><span class="cm">/* check that there aren't any error */</span> +<a id="line-1541" name="line-1541"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1542" name="line-1542"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_SAVE</span><span class="p">,</span> +<a id="line-1543" name="line-1543"></a><span class="w"> </span><span class="s">"You do not have the permissions necessary to change the file GID. Setting user default GID."</span><span class="p">);</span> +<a id="line-1544" name="line-1544"></a> +<a id="line-1545" name="line-1545"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-1546" name="line-1546"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1547" name="line-1547"></a> +<a id="line-1548" name="line-1548"></a><span class="w"> </span><span class="n">g_file_set_attribute_uint32</span><span class="w"> </span><span class="p">(</span><span class="n">temp_file</span><span class="p">,</span> +<a id="line-1549" name="line-1549"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_UNIX_MODE</span><span class="p">,</span> +<a id="line-1550" name="line-1550"></a><span class="w"> </span><span class="n">mode</span><span class="p">,</span> +<a id="line-1551" name="line-1551"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span> +<a id="line-1552" name="line-1552"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1553" name="line-1553"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-1554" name="line-1554"></a> +<a id="line-1555" name="line-1555"></a><span class="w"> </span><span class="cm">/* check that there aren't any error */</span> +<a id="line-1556" name="line-1556"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1557" name="line-1557"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_SAVE</span><span class="p">,</span> +<a id="line-1558" name="line-1558"></a><span class="w"> </span><span class="s">"You do not have the permissions necessary to change the file MODE."</span><span class="p">);</span> +<a id="line-1559" name="line-1559"></a> +<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-1561" name="line-1561"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1562" name="line-1562"></a> +<a id="line-1563" name="line-1563"></a><span class="w"> </span><span class="cm">/* free objects */</span> +<a id="line-1564" name="line-1564"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-1565" name="line-1565"></a><span class="p">}</span> +<a id="line-1566" name="line-1566"></a> +<a id="line-1567" name="line-1567"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1568" name="line-1568"></a><span class="nf">tmp_file_move_to_uri</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span> +<a id="line-1569" name="line-1569"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">tmpfile</span><span class="p">,</span> +<a id="line-1570" name="line-1570"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span> +<a id="line-1571" name="line-1571"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">overwrite</span><span class="p">,</span> +<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-1573" name="line-1573"></a><span class="p">{</span> +<a id="line-1574" name="line-1574"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1575" name="line-1575"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">ioerror</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1576" name="line-1576"></a> +<a id="line-1577" name="line-1577"></a><span class="w"> </span><span class="cm">/* try to restore target file unix attributes */</span> +<a id="line-1578" name="line-1578"></a><span class="w"> </span><span class="n">tmp_file_restore_unix_attributes</span><span class="w"> </span><span class="p">(</span><span class="n">tmpfile</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">);</span> +<a id="line-1579" name="line-1579"></a> +<a id="line-1580" name="line-1580"></a><span class="w"> </span><span class="cm">/* replace target file with temporal file */</span> +<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_move</span><span class="w"> </span><span class="p">(</span><span class="n">tmpfile</span><span class="p">,</span> +<a id="line-1582" name="line-1582"></a><span class="w"> </span><span class="n">file</span><span class="p">,</span> +<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="p">(</span><span class="n">overwrite</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">G_FILE_COPY_OVERWRITE</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">|</span> +<a id="line-1584" name="line-1584"></a><span class="w"> </span><span class="n">G_FILE_COPY_ALL_METADATA</span><span class="p">,</span> +<a id="line-1585" name="line-1585"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1586" name="line-1586"></a><span class="w"> </span><span class="p">(</span><span class="n">GFileProgressCallback</span><span class="p">)</span><span class="w"> </span><span class="n">transfer_progress_cb</span><span class="p">,</span> +<a id="line-1587" name="line-1587"></a><span class="w"> </span><span class="n">image</span><span class="p">,</span> +<a id="line-1588" name="line-1588"></a><span class="w"> </span><span class="o">&</span><span class="n">ioerror</span><span class="p">);</span> +<a id="line-1589" name="line-1589"></a> +<a id="line-1590" name="line-1590"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1591" name="line-1591"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_error_matches</span><span class="w"> </span><span class="p">(</span><span class="n">ioerror</span><span class="p">,</span><span class="w"> </span><span class="n">G_IO_ERROR</span><span class="p">,</span> +<a id="line-1592" name="line-1592"></a><span class="w"> </span><span class="n">G_IO_ERROR_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1593" name="line-1593"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1594" name="line-1594"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_FILE_EXISTS</span><span class="p">,</span> +<a id="line-1595" name="line-1595"></a><span class="w"> </span><span class="s">"File exists"</span><span class="p">);</span> +<a id="line-1596" name="line-1596"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1597" name="line-1597"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1598" name="line-1598"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_VFS</span><span class="p">,</span> +<a id="line-1599" name="line-1599"></a><span class="w"> </span><span class="s">"VFS error moving the temp file"</span><span class="p">);</span> +<a id="line-1600" name="line-1600"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1601" name="line-1601"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">ioerror</span><span class="p">);</span> +<a id="line-1602" name="line-1602"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1603" name="line-1603"></a> +<a id="line-1604" name="line-1604"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1605" name="line-1605"></a><span class="p">}</span> +<a id="line-1606" name="line-1606"></a> +<a id="line-1607" name="line-1607"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1608" name="line-1608"></a><span class="nf">tmp_file_delete</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">tmpfile</span><span class="p">)</span> +<a id="line-1609" name="line-1609"></a><span class="p">{</span> +<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1611" name="line-1611"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">err</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1612" name="line-1612"></a> +<a id="line-1613" name="line-1613"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmpfile</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1614" name="line-1614"></a> +<a id="line-1615" name="line-1615"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_delete</span><span class="w"> </span><span class="p">(</span><span class="n">tmpfile</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">err</span><span class="p">);</span> +<a id="line-1616" name="line-1616"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1617" name="line-1617"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmpfile_path</span><span class="p">;</span> +<a id="line-1618" name="line-1618"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">err</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1619" name="line-1619"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">err</span><span class="o">-></span><span class="n">code</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_IO_ERROR_NOT_FOUND</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1620" name="line-1620"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">err</span><span class="p">);</span> +<a id="line-1621" name="line-1621"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1622" name="line-1622"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1623" name="line-1623"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">err</span><span class="p">);</span> +<a id="line-1624" name="line-1624"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1625" name="line-1625"></a><span class="w"> </span><span class="n">tmpfile_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">tmpfile</span><span class="p">);</span> +<a id="line-1626" name="line-1626"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Couldn't delete temporary file: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">tmpfile_path</span><span class="p">);</span> +<a id="line-1627" name="line-1627"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmpfile_path</span><span class="p">);</span> +<a id="line-1628" name="line-1628"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1629" name="line-1629"></a> +<a id="line-1630" name="line-1630"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1631" name="line-1631"></a><span class="p">}</span> +<a id="line-1632" name="line-1632"></a> +<a id="line-1633" name="line-1633"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1634" name="line-1634"></a><span class="nf">eom_image_reset_modifications</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-1635" name="line-1635"></a><span class="p">{</span> +<a id="line-1636" name="line-1636"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1637" name="line-1637"></a> +<a id="line-1638" name="line-1638"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1639" name="line-1639"></a> +<a id="line-1640" name="line-1640"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1641" name="line-1641"></a> +<a id="line-1642" name="line-1642"></a><span class="w"> </span><span class="n">g_slist_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-1643" name="line-1643"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1644" name="line-1644"></a> +<a id="line-1645" name="line-1645"></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">-></span><span class="n">trans</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1646" name="line-1646"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">);</span> +<a id="line-1647" name="line-1647"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1648" name="line-1648"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1649" name="line-1649"></a> +<a id="line-1650" name="line-1650"></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">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1651" name="line-1651"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="p">);</span> +<a id="line-1652" name="line-1652"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1653" name="line-1653"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1654" name="line-1654"></a> +<a id="line-1655" name="line-1655"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1656" name="line-1656"></a><span class="p">}</span> +<a id="line-1657" name="line-1657"></a> +<a id="line-1658" name="line-1658"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1659" name="line-1659"></a><span class="nf">eom_image_link_with_target</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">target</span><span class="p">)</span> +<a id="line-1660" name="line-1660"></a><span class="p">{</span> +<a id="line-1661" name="line-1661"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1662" name="line-1662"></a> +<a id="line-1663" name="line-1663"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1664" name="line-1664"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE_SAVE_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="p">));</span> +<a id="line-1665" name="line-1665"></a> +<a id="line-1666" name="line-1666"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1667" name="line-1667"></a> +<a id="line-1668" name="line-1668"></a><span class="w"> </span><span class="cm">/* update file location */</span> +<a id="line-1669" name="line-1669"></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">-></span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1670" name="line-1670"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-1671" name="line-1671"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1672" name="line-1672"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-1673" name="line-1673"></a> +<a id="line-1674" name="line-1674"></a><span class="w"> </span><span class="cm">/* Clear caption and caption key, these will be</span> +<a id="line-1675" name="line-1675"></a><span class="cm"> * updated on next eom_image_get_caption call.</span> +<a id="line-1676" name="line-1676"></a><span class="cm"> */</span> +<a id="line-1677" name="line-1677"></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">-></span><span class="n">caption</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1678" name="line-1678"></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">-></span><span class="n">caption</span><span class="p">);</span> +<a id="line-1679" name="line-1679"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1680" name="line-1680"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1681" name="line-1681"></a><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">-></span><span class="n">collate_key</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1682" name="line-1682"></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">-></span><span class="n">collate_key</span><span class="p">);</span> +<a id="line-1683" name="line-1683"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collate_key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1684" name="line-1684"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1685" name="line-1685"></a> +<a id="line-1686" name="line-1686"></a><span class="w"> </span><span class="cm">/* update file format */</span> +<a id="line-1687" name="line-1687"></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">-></span><span class="n">file_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1688" name="line-1688"></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">-></span><span class="n">file_type</span><span class="p">);</span> +<a id="line-1689" name="line-1689"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1690" name="line-1690"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="o">-></span><span class="n">format</span><span class="p">);</span> +<a id="line-1691" name="line-1691"></a><span class="p">}</span> +<a id="line-1692" name="line-1692"></a> +<a id="line-1693" name="line-1693"></a><span class="n">gboolean</span> +<a id="line-1694" name="line-1694"></a><span class="nf">eom_image_save_by_info</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-1695" name="line-1695"></a><span class="p">{</span> +<a id="line-1696" name="line-1696"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1697" name="line-1697"></a><span class="w"> </span><span class="n">EomImageStatus</span><span class="w"> </span><span class="n">prev_status</span><span class="p">;</span> +<a id="line-1698" name="line-1698"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1699" name="line-1699"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_file</span><span class="p">;</span> +<a id="line-1700" name="line-1700"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_file_path</span><span class="p">;</span> +<a id="line-1701" name="line-1701"></a> +<a id="line-1702" name="line-1702"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1703" name="line-1703"></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">EOM_IS_IMAGE_SAVE_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1704" name="line-1704"></a> +<a id="line-1705" name="line-1705"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1706" name="line-1706"></a> +<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="n">prev_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="p">;</span> +<a id="line-1708" name="line-1708"></a> +<a id="line-1709" name="line-1709"></a><span class="w"> </span><span class="cm">/* Image is now being saved */</span> +<a id="line-1710" name="line-1710"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_SAVING</span><span class="p">;</span> +<a id="line-1711" name="line-1711"></a> +<a id="line-1712" name="line-1712"></a><span class="w"> </span><span class="cm">/* see if we need any saving at all */</span> +<a id="line-1713" name="line-1713"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="o">-></span><span class="n">exists</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">source</span><span class="o">-></span><span class="n">modified</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1714" name="line-1714"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1715" name="line-1715"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1716" name="line-1716"></a> +<a id="line-1717" name="line-1717"></a><span class="w"> </span><span class="cm">/* fail if there is no image to save */</span> +<a id="line-1718" name="line-1718"></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">-></span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1719" name="line-1719"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1720" name="line-1720"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_NOT_LOADED</span><span class="p">,</span> +<a id="line-1721" name="line-1721"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"No image loaded."</span><span class="p">));</span> +<a id="line-1722" name="line-1722"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1723" name="line-1723"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1724" name="line-1724"></a> +<a id="line-1725" name="line-1725"></a><span class="w"> </span><span class="cm">/* generate temporary file */</span> +<a id="line-1726" name="line-1726"></a><span class="w"> </span><span class="n">tmp_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp_file_get</span><span class="w"> </span><span class="p">();</span> +<a id="line-1727" name="line-1727"></a> +<a id="line-1728" name="line-1728"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1729" name="line-1729"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1730" name="line-1730"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_TMP_FILE_FAILED</span><span class="p">,</span> +<a id="line-1731" name="line-1731"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Temporary file creation failed."</span><span class="p">));</span> +<a id="line-1732" name="line-1732"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1733" name="line-1733"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1734" name="line-1734"></a> +<a id="line-1735" name="line-1735"></a><span class="w"> </span><span class="n">tmp_file_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-1736" name="line-1736"></a> +<a id="line-1737" name="line-1737"></a><span class="cp">#ifdef HAVE_JPEG</span> +<a id="line-1738" name="line-1738"></a><span class="w"> </span><span class="cm">/* determine kind of saving */</span> +<a id="line-1739" name="line-1739"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_FILE_FORMAT_JPEG</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-1740" name="line-1740"></a><span class="w"> </span><span class="n">source</span><span class="o">-></span><span class="n">exists</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">source</span><span class="o">-></span><span class="n">modified</span><span class="p">)</span> +<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1742" name="line-1742"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_jpeg_save_file</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file_path</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-1743" name="line-1743"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1744" name="line-1744"></a><span class="cp">#endif</span> +<a id="line-1745" name="line-1745"></a> +<a id="line-1746" name="line-1746"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">success</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1747" name="line-1747"></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">gdk_pixbuf_save</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file_path</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1748" name="line-1748"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1749" name="line-1749"></a> +<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="k">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> +<a id="line-1751" name="line-1751"></a><span class="w"> </span><span class="cm">/* try to move result file to target uri */</span> +<a id="line-1752" name="line-1752"></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">tmp_file_move_to_uri</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="cm">/*overwrite*/</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-1753" name="line-1753"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1754" name="line-1754"></a> +<a id="line-1755" name="line-1755"></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> +<a id="line-1756" name="line-1756"></a><span class="w"> </span><span class="n">eom_image_reset_modifications</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1758" name="line-1758"></a> +<a id="line-1759" name="line-1759"></a><span class="w"> </span><span class="n">tmp_file_delete</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-1760" name="line-1760"></a> +<a id="line-1761" name="line-1761"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file_path</span><span class="p">);</span> +<a id="line-1762" name="line-1762"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-1763" name="line-1763"></a> +<a id="line-1764" name="line-1764"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">prev_status</span><span class="p">;</span> +<a id="line-1765" name="line-1765"></a> +<a id="line-1766" name="line-1766"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">success</span><span class="p">;</span> +<a id="line-1767" name="line-1767"></a><span class="p">}</span> +<a id="line-1768" name="line-1768"></a> +<a id="line-1769" name="line-1769"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1770" name="line-1770"></a><span class="nf">eom_image_copy_file</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-1771" name="line-1771"></a><span class="p">{</span> +<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1773" name="line-1773"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">ioerror</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1774" name="line-1774"></a> +<a id="line-1775" name="line-1775"></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">EOM_IS_IMAGE_SAVE_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1776" name="line-1776"></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">EOM_IS_IMAGE_SAVE_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1777" name="line-1777"></a> +<a id="line-1778" name="line-1778"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_copy</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="o">-></span><span class="n">file</span><span class="p">,</span> +<a id="line-1779" name="line-1779"></a><span class="w"> </span><span class="n">target</span><span class="o">-></span><span class="n">file</span><span class="p">,</span> +<a id="line-1780" name="line-1780"></a><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="o">-></span><span class="n">overwrite</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">G_FILE_COPY_OVERWRITE</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">|</span> +<a id="line-1781" name="line-1781"></a><span class="w"> </span><span class="n">G_FILE_COPY_ALL_METADATA</span><span class="p">,</span> +<a id="line-1782" name="line-1782"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1783" name="line-1783"></a><span class="w"> </span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">transfer_progress_cb</span><span class="w"> </span><span class="o">:</span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1784" name="line-1784"></a><span class="w"> </span><span class="n">image</span><span class="p">,</span> +<a id="line-1785" name="line-1785"></a><span class="w"> </span><span class="o">&</span><span class="n">ioerror</span><span class="p">);</span> +<a id="line-1786" name="line-1786"></a> +<a id="line-1787" name="line-1787"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1788" name="line-1788"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ioerror</span><span class="o">-></span><span class="n">code</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_IO_ERROR_EXISTS</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1790" name="line-1790"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_FILE_EXISTS</span><span class="p">,</span> +<a id="line-1791" name="line-1791"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">ioerror</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-1792" name="line-1792"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1793" name="line-1793"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1794" name="line-1794"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_VFS</span><span class="p">,</span> +<a id="line-1795" name="line-1795"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">ioerror</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-1796" name="line-1796"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1797" name="line-1797"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">ioerror</span><span class="p">);</span> +<a id="line-1798" name="line-1798"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1799" name="line-1799"></a> +<a id="line-1800" name="line-1800"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1801" name="line-1801"></a><span class="p">}</span> +<a id="line-1802" name="line-1802"></a> +<a id="line-1803" name="line-1803"></a><span class="n">gboolean</span> +<a id="line-1804" name="line-1804"></a><span class="nf">eom_image_save_as_by_info</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-1805" name="line-1805"></a><span class="p">{</span> +<a id="line-1806" name="line-1806"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1807" name="line-1807"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1808" name="line-1808"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_file_path</span><span class="p">;</span> +<a id="line-1809" name="line-1809"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_file</span><span class="p">;</span> +<a id="line-1810" name="line-1810"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">direct_copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1811" name="line-1811"></a> +<a id="line-1812" name="line-1812"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1813" name="line-1813"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE_SAVE_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1814" name="line-1814"></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">EOM_IS_IMAGE_SAVE_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1815" name="line-1815"></a> +<a id="line-1816" name="line-1816"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1817" name="line-1817"></a> +<a id="line-1818" name="line-1818"></a><span class="w"> </span><span class="cm">/* fail if there is no image to save */</span> +<a id="line-1819" name="line-1819"></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">-></span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1820" name="line-1820"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-1821" name="line-1821"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1822" name="line-1822"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_NOT_LOADED</span><span class="p">,</span> +<a id="line-1823" name="line-1823"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"No image loaded."</span><span class="p">));</span> +<a id="line-1824" name="line-1824"></a> +<a id="line-1825" name="line-1825"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1826" name="line-1826"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1827" name="line-1827"></a> +<a id="line-1828" name="line-1828"></a><span class="w"> </span><span class="cm">/* generate temporary file name */</span> +<a id="line-1829" name="line-1829"></a><span class="w"> </span><span class="n">tmp_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp_file_get</span><span class="w"> </span><span class="p">();</span> +<a id="line-1830" name="line-1830"></a> +<a id="line-1831" name="line-1831"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1832" name="line-1832"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-1833" name="line-1833"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR</span><span class="p">,</span> +<a id="line-1834" name="line-1834"></a><span class="w"> </span><span class="n">EOM_IMAGE_ERROR_TMP_FILE_FAILED</span><span class="p">,</span> +<a id="line-1835" name="line-1835"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Temporary file creation failed."</span><span class="p">));</span> +<a id="line-1836" name="line-1836"></a> +<a id="line-1837" name="line-1837"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1838" name="line-1838"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1839" name="line-1839"></a><span class="w"> </span><span class="n">tmp_file_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-1840" name="line-1840"></a> +<a id="line-1841" name="line-1841"></a><span class="w"> </span><span class="cm">/* determine kind of saving */</span> +<a id="line-1842" name="line-1842"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="o">-></span><span class="n">format</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="o">!</span><span class="n">source</span><span class="o">-></span><span class="n">modified</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1843" name="line-1843"></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">eom_image_copy_file</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-1844" name="line-1844"></a><span class="w"> </span><span class="n">direct_copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">success</span><span class="p">;</span> +<a id="line-1845" name="line-1845"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1846" name="line-1846"></a> +<a id="line-1847" name="line-1847"></a><span class="cp">#ifdef HAVE_JPEG</span> +<a id="line-1848" name="line-1848"></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">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_FILE_FORMAT_JPEG</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">source</span><span class="o">-></span><span class="n">exists</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-1849" name="line-1849"></a><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">target</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_FILE_FORMAT_JPEG</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span> +<a id="line-1850" name="line-1850"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1851" name="line-1851"></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">eom_image_jpeg_save_file</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file_path</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-1852" name="line-1852"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1853" name="line-1853"></a><span class="cp">#endif</span> +<a id="line-1854" name="line-1854"></a> +<a id="line-1855" name="line-1855"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">success</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1856" name="line-1856"></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">gdk_pixbuf_save</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file_path</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1857" name="line-1857"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1858" name="line-1858"></a> +<a id="line-1859" name="line-1859"></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="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">direct_copy</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* not required if we alredy copied the file directly */</span> +<a id="line-1860" name="line-1860"></a><span class="w"> </span><span class="cm">/* try to move result file to target uri */</span> +<a id="line-1861" name="line-1861"></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">tmp_file_move_to_uri</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="o">-></span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="o">-></span><span class="n">overwrite</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span> +<a id="line-1862" name="line-1862"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1863" name="line-1863"></a> +<a id="line-1864" name="line-1864"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">success</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1865" name="line-1865"></a><span class="w"> </span><span class="cm">/* update image information to new uri */</span> +<a id="line-1866" name="line-1866"></a><span class="w"> </span><span class="n">eom_image_reset_modifications</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-1867" name="line-1867"></a><span class="w"> </span><span class="n">eom_image_link_with_target</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">target</span><span class="p">);</span> +<a id="line-1868" name="line-1868"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1869" name="line-1869"></a> +<a id="line-1870" name="line-1870"></a><span class="w"> </span><span class="n">tmp_file_delete</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-1871" name="line-1871"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-1872" name="line-1872"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file_path</span><span class="p">);</span> +<a id="line-1873" name="line-1873"></a> +<a id="line-1874" name="line-1874"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_UNKNOWN</span><span class="p">;</span> +<a id="line-1875" name="line-1875"></a> +<a id="line-1876" name="line-1876"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">success</span><span class="p">;</span> +<a id="line-1877" name="line-1877"></a><span class="p">}</span> +<a id="line-1878" name="line-1878"></a> +<a id="line-1879" name="line-1879"></a><span class="cm">/*</span> +<a id="line-1880" name="line-1880"></a><span class="cm"> * This function is extracted from</span> +<a id="line-1881" name="line-1881"></a><span class="cm"> * File: caja/libcaja-private/caja-file.c</span> +<a id="line-1882" name="line-1882"></a><span class="cm"> * Revision: 1.309</span> +<a id="line-1883" name="line-1883"></a><span class="cm"> * Author: Darin Adler <[email protected]></span> +<a id="line-1884" name="line-1884"></a><span class="cm"> */</span> +<a id="line-1885" name="line-1885"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1886" name="line-1886"></a><span class="nf">have_broken_filenames</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-1887" name="line-1887"></a><span class="p">{</span> +<a id="line-1888" name="line-1888"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">initialized</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1889" name="line-1889"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">broken</span><span class="p">;</span> +<a id="line-1890" name="line-1890"></a> +<a id="line-1891" name="line-1891"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">initialized</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1892" name="line-1892"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">broken</span><span class="p">;</span> +<a id="line-1893" name="line-1893"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1894" name="line-1894"></a> +<a id="line-1895" name="line-1895"></a><span class="w"> </span><span class="n">broken</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_getenv</span><span class="w"> </span><span class="p">(</span><span class="s">"G_BROKEN_FILENAMES"</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1896" name="line-1896"></a> +<a id="line-1897" name="line-1897"></a><span class="w"> </span><span class="n">initialized</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1898" name="line-1898"></a> +<a id="line-1899" name="line-1899"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">broken</span><span class="p">;</span> +<a id="line-1900" name="line-1900"></a><span class="p">}</span> +<a id="line-1901" name="line-1901"></a> +<a id="line-1902" name="line-1902"></a><span class="cm">/*</span> +<a id="line-1903" name="line-1903"></a><span class="cm"> * This function is inspired by</span> +<a id="line-1904" name="line-1904"></a><span class="cm"> * caja/libcaja-private/caja-file.c:caja_file_get_display_name_nocopy</span> +<a id="line-1905" name="line-1905"></a><span class="cm"> * Revision: 1.309</span> +<a id="line-1906" name="line-1906"></a><span class="cm"> * Author: Darin Adler <[email protected]></span> +<a id="line-1907" name="line-1907"></a><span class="cm"> */</span> +<a id="line-1908" name="line-1908"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span> +<a id="line-1909" name="line-1909"></a><span class="nf">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-1910" name="line-1910"></a><span class="p">{</span> +<a id="line-1911" name="line-1911"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1912" name="line-1912"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-1913" name="line-1913"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">utf8_name</span><span class="p">;</span> +<a id="line-1914" name="line-1914"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">scheme</span><span class="p">;</span> +<a id="line-1915" name="line-1915"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">validated</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1916" name="line-1916"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">broken_filenames</span><span class="p">;</span> +<a id="line-1917" name="line-1917"></a> +<a id="line-1918" name="line-1918"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1919" name="line-1919"></a> +<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1921" name="line-1921"></a> +<a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1923" name="line-1923"></a> +<a id="line-1924" name="line-1924"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1925" name="line-1925"></a><span class="w"> </span><span class="cm">/* Use cached caption string */</span> +<a id="line-1926" name="line-1926"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="p">;</span> +<a id="line-1927" name="line-1927"></a> +<a id="line-1928" name="line-1928"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="n">scheme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri_scheme</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-1930" name="line-1930"></a> +<a id="line-1931" name="line-1931"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">scheme</span><span class="p">,</span><span class="w"> </span><span class="s">"file"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1932" name="line-1932"></a><span class="w"> </span><span class="cm">/* Support the G_BROKEN_FILENAMES feature of</span> +<a id="line-1933" name="line-1933"></a><span class="cm"> * glib by using g_filename_to_utf8 to convert</span> +<a id="line-1934" name="line-1934"></a><span class="cm"> * local filenames to UTF-8. Also do the same</span> +<a id="line-1935" name="line-1935"></a><span class="cm"> * thing with any local filename that does not</span> +<a id="line-1936" name="line-1936"></a><span class="cm"> * validate as good UTF-8.</span> +<a id="line-1937" name="line-1937"></a><span class="cm"> */</span> +<a id="line-1938" name="line-1938"></a><span class="w"> </span><span class="n">broken_filenames</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">have_broken_filenames</span><span class="w"> </span><span class="p">();</span> +<a id="line-1939" name="line-1939"></a> +<a id="line-1940" name="line-1940"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">broken_filenames</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1941" name="line-1941"></a><span class="w"> </span><span class="n">utf8_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_locale_to_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1942" name="line-1942"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">utf8_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1943" name="line-1943"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-1944" name="line-1944"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">utf8_name</span><span class="p">;</span> +<a id="line-1945" name="line-1945"></a><span class="w"> </span><span class="cm">/* Guaranteed to be correct utf8 here */</span> +<a id="line-1946" name="line-1946"></a><span class="w"> </span><span class="n">validated</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1947" name="line-1947"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1948" name="line-1948"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1949" name="line-1949"></a><span class="w"> </span><span class="cm">/* name was valid, no need to re-validate */</span> +<a id="line-1950" name="line-1950"></a><span class="w"> </span><span class="n">validated</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1951" name="line-1951"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1952" name="line-1952"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1953" name="line-1953"></a> +<a id="line-1954" name="line-1954"></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">validated</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1955" name="line-1955"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1956" name="line-1956"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">"[Invalid Unicode]"</span><span class="p">);</span> +<a id="line-1957" name="line-1957"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1958" name="line-1958"></a><span class="w"> </span><span class="n">utf8_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_util_make_valid_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-1959" name="line-1959"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-1960" name="line-1960"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">utf8_name</span><span class="p">;</span> +<a id="line-1961" name="line-1961"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1962" name="line-1962"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1963" name="line-1963"></a> +<a id="line-1964" name="line-1964"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">name</span><span class="p">;</span> +<a id="line-1965" name="line-1965"></a> +<a id="line-1966" name="line-1966"></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">-></span><span class="n">caption</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1967" name="line-1967"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">short_str</span><span class="p">;</span> +<a id="line-1968" name="line-1968"></a> +<a id="line-1969" name="line-1969"></a><span class="w"> </span><span class="n">short_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-1970" name="line-1970"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">short_str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1971" name="line-1971"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">caption</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">short_str</span><span class="p">);</span> +<a id="line-1972" name="line-1972"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1973" name="line-1973"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_filename_to_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">short_str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1974" name="line-1974"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1975" name="line-1975"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">short_str</span><span class="p">);</span> +<a id="line-1976" name="line-1976"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1977" name="line-1977"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">scheme</span><span class="p">);</span> +<a id="line-1978" name="line-1978"></a> +<a id="line-1979" name="line-1979"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">caption</span><span class="p">;</span> +<a id="line-1980" name="line-1980"></a><span class="p">}</span> +<a id="line-1981" name="line-1981"></a> +<a id="line-1982" name="line-1982"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span> +<a id="line-1983" name="line-1983"></a><span class="nf">eom_image_get_collate_key</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-1984" name="line-1984"></a><span class="p">{</span> +<a id="line-1985" name="line-1985"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1986" name="line-1986"></a> +<a id="line-1987" name="line-1987"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1988" name="line-1988"></a> +<a id="line-1989" name="line-1989"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1990" name="line-1990"></a> +<a id="line-1991" name="line-1991"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">collate_key</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1992" name="line-1992"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">caption</span><span class="p">;</span> +<a id="line-1993" name="line-1993"></a> +<a id="line-1994" name="line-1994"></a><span class="w"> </span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-1995" name="line-1995"></a> +<a id="line-1996" name="line-1996"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collate_key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_collate_key_for_filename</span><span class="w"> </span><span class="p">(</span><span class="n">caption</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1997" name="line-1997"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1998" name="line-1998"></a> +<a id="line-1999" name="line-1999"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collate_key</span><span class="p">;</span> +<a id="line-2000" name="line-2000"></a><span class="p">}</span> +<a id="line-2001" name="line-2001"></a> +<a id="line-2002" name="line-2002"></a><span class="kt">void</span> +<a id="line-2003" name="line-2003"></a><span class="nf">eom_image_cancel_load</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2004" name="line-2004"></a><span class="p">{</span> +<a id="line-2005" name="line-2005"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2006" name="line-2006"></a> +<a id="line-2007" name="line-2007"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-2008" name="line-2008"></a> +<a id="line-2009" name="line-2009"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2010" name="line-2010"></a> +<a id="line-2011" name="line-2011"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2012" name="line-2012"></a> +<a id="line-2013" name="line-2013"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_LOADING</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2014" name="line-2014"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cancel_loading</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-2015" name="line-2015"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2016" name="line-2016"></a> +<a id="line-2017" name="line-2017"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2018" name="line-2018"></a><span class="p">}</span> +<a id="line-2019" name="line-2019"></a> +<a id="line-2020" name="line-2020"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-2021" name="line-2021"></a><span class="n">ExifData</span><span class="w"> </span><span class="o">*</span> +<a id="line-2022" name="line-2022"></a><span class="nf">eom_image_get_exif_info</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2023" name="line-2023"></a><span class="p">{</span> +<a id="line-2024" name="line-2024"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2025" name="line-2025"></a><span class="w"> </span><span class="n">ExifData</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> +<a id="line-2026" name="line-2026"></a> +<a id="line-2027" name="line-2027"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2028" name="line-2028"></a> +<a id="line-2029" name="line-2029"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2030" name="line-2030"></a> +<a id="line-2031" name="line-2031"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2032" name="line-2032"></a> +<a id="line-2033" name="line-2033"></a><span class="w"> </span><span class="n">exif_data_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">);</span> +<a id="line-2034" name="line-2034"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif</span><span class="p">;</span> +<a id="line-2035" name="line-2035"></a> +<a id="line-2036" name="line-2036"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2037" name="line-2037"></a> +<a id="line-2038" name="line-2038"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-2039" name="line-2039"></a><span class="p">}</span> +<a id="line-2040" name="line-2040"></a><span class="cp">#endif</span> +<a id="line-2041" name="line-2041"></a> +<a id="line-2042" name="line-2042"></a><span class="cm">/**</span> +<a id="line-2043" name="line-2043"></a><span class="cm"> * eom_image_get_xmp_info:</span> +<a id="line-2044" name="line-2044"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-2045" name="line-2045"></a><span class="cm"> *</span> +<a id="line-2046" name="line-2046"></a><span class="cm"> * Gets the XMP info for @img or NULL if compiled without</span> +<a id="line-2047" name="line-2047"></a><span class="cm"> * libexempi support.</span> +<a id="line-2048" name="line-2048"></a><span class="cm"> *</span> +<a id="line-2049" name="line-2049"></a><span class="cm"> * Returns: (transfer full): the xmp data</span> +<a id="line-2050" name="line-2050"></a><span class="cm"> **/</span> +<a id="line-2051" name="line-2051"></a><span class="n">gpointer</span> +<a id="line-2052" name="line-2052"></a><span class="nf">eom_image_get_xmp_info</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2053" name="line-2053"></a><span class="p">{</span> +<a id="line-2054" name="line-2054"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2055" name="line-2055"></a> +<a id="line-2056" name="line-2056"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2057" name="line-2057"></a> +<a id="line-2058" name="line-2058"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-2059" name="line-2059"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2060" name="line-2060"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2061" name="line-2061"></a> +<a id="line-2062" name="line-2062"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2063" name="line-2063"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="w"> </span><span class="n">xmp_copy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp</span><span class="p">);</span> +<a id="line-2064" name="line-2064"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2065" name="line-2065"></a><span class="cp">#endif</span> +<a id="line-2066" name="line-2066"></a> +<a id="line-2067" name="line-2067"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-2068" name="line-2068"></a><span class="p">}</span> +<a id="line-2069" name="line-2069"></a> +<a id="line-2070" name="line-2070"></a><span class="cm">/**</span> +<a id="line-2071" name="line-2071"></a><span class="cm"> * eom_image_get_file:</span> +<a id="line-2072" name="line-2072"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-2073" name="line-2073"></a><span class="cm"> *</span> +<a id="line-2074" name="line-2074"></a><span class="cm"> * Gets the #GFile associated with @img</span> +<a id="line-2075" name="line-2075"></a><span class="cm"> *</span> +<a id="line-2076" name="line-2076"></a><span class="cm"> * Returns: (transfer full): a #GFile</span> +<a id="line-2077" name="line-2077"></a><span class="cm"> **/</span> +<a id="line-2078" name="line-2078"></a><span class="n">GFile</span><span class="w"> </span><span class="o">*</span> +<a id="line-2079" name="line-2079"></a><span class="nf">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2080" name="line-2080"></a><span class="p">{</span> +<a id="line-2081" name="line-2081"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2082" name="line-2082"></a> +<a id="line-2083" name="line-2083"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-2084" name="line-2084"></a><span class="p">}</span> +<a id="line-2085" name="line-2085"></a> +<a id="line-2086" name="line-2086"></a><span class="n">gboolean</span> +<a id="line-2087" name="line-2087"></a><span class="nf">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2088" name="line-2088"></a><span class="p">{</span> +<a id="line-2089" name="line-2089"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2090" name="line-2090"></a> +<a id="line-2091" name="line-2091"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">modified</span><span class="p">;</span> +<a id="line-2092" name="line-2092"></a><span class="p">}</span> +<a id="line-2093" name="line-2093"></a> +<a id="line-2094" name="line-2094"></a><span class="n">goffset</span> +<a id="line-2095" name="line-2095"></a><span class="nf">eom_image_get_bytes</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2096" name="line-2096"></a><span class="p">{</span> +<a id="line-2097" name="line-2097"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-2098" name="line-2098"></a> +<a id="line-2099" name="line-2099"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">bytes</span><span class="p">;</span> +<a id="line-2100" name="line-2100"></a><span class="p">}</span> +<a id="line-2101" name="line-2101"></a> +<a id="line-2102" name="line-2102"></a><span class="kt">void</span> +<a id="line-2103" name="line-2103"></a><span class="nf">eom_image_modified</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2104" name="line-2104"></a><span class="p">{</span> +<a id="line-2105" name="line-2105"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-2106" name="line-2106"></a> +<a id="line-2107" name="line-2107"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-2108" name="line-2108"></a><span class="p">}</span> +<a id="line-2109" name="line-2109"></a> +<a id="line-2110" name="line-2110"></a><span class="n">gchar</span><span class="o">*</span> +<a id="line-2111" name="line-2111"></a><span class="nf">eom_image_get_uri_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2112" name="line-2112"></a><span class="p">{</span> +<a id="line-2113" name="line-2113"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2114" name="line-2114"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2115" name="line-2115"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2116" name="line-2116"></a> +<a id="line-2117" name="line-2117"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2118" name="line-2118"></a> +<a id="line-2119" name="line-2119"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2120" name="line-2120"></a> +<a id="line-2121" name="line-2121"></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">-></span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2122" name="line-2122"></a><span class="w"> </span><span class="n">uri_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-2123" name="line-2123"></a> +<a id="line-2124" name="line-2124"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">uri_str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2125" name="line-2125"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_uri_unescape_string</span><span class="w"> </span><span class="p">(</span><span class="n">uri_str</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2126" name="line-2126"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri_str</span><span class="p">);</span> +<a id="line-2127" name="line-2127"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2128" name="line-2128"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2129" name="line-2129"></a> +<a id="line-2130" name="line-2130"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">str</span><span class="p">;</span> +<a id="line-2131" name="line-2131"></a><span class="p">}</span> +<a id="line-2132" name="line-2132"></a> +<a id="line-2133" name="line-2133"></a><span class="n">EomImageStatus</span> +<a id="line-2134" name="line-2134"></a><span class="nf">eom_image_get_status</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2135" name="line-2135"></a><span class="p">{</span> +<a id="line-2136" name="line-2136"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">EOM_IMAGE_STATUS_UNKNOWN</span><span class="p">);</span> +<a id="line-2137" name="line-2137"></a> +<a id="line-2138" name="line-2138"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="p">;</span> +<a id="line-2139" name="line-2139"></a><span class="p">}</span> +<a id="line-2140" name="line-2140"></a> +<a id="line-2141" name="line-2141"></a><span class="cm">/**</span> +<a id="line-2142" name="line-2142"></a><span class="cm"> * eom_image_get_metadata_status:</span> +<a id="line-2143" name="line-2143"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-2144" name="line-2144"></a><span class="cm"> *</span> +<a id="line-2145" name="line-2145"></a><span class="cm"> * Returns the current status of the image metadata, that is,</span> +<a id="line-2146" name="line-2146"></a><span class="cm"> * whether the metadata has not been read yet, is ready, or not available at all.</span> +<a id="line-2147" name="line-2147"></a><span class="cm"> *</span> +<a id="line-2148" name="line-2148"></a><span class="cm"> * Returns: one of #EomImageMetadataStatus</span> +<a id="line-2149" name="line-2149"></a><span class="cm"> **/</span> +<a id="line-2150" name="line-2150"></a><span class="n">EomImageMetadataStatus</span> +<a id="line-2151" name="line-2151"></a><span class="nf">eom_image_get_metadata_status</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2152" name="line-2152"></a><span class="p">{</span> +<a id="line-2153" name="line-2153"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_NOT_AVAILABLE</span><span class="p">);</span> +<a id="line-2154" name="line-2154"></a> +<a id="line-2155" name="line-2155"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_status</span><span class="p">;</span> +<a id="line-2156" name="line-2156"></a><span class="p">}</span> +<a id="line-2157" name="line-2157"></a> +<a id="line-2158" name="line-2158"></a><span class="kt">void</span> +<a id="line-2159" name="line-2159"></a><span class="nf">eom_image_data_ref</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2160" name="line-2160"></a><span class="p">{</span> +<a id="line-2161" name="line-2161"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-2162" name="line-2162"></a> +<a id="line-2163" name="line-2163"></a><span class="w"> </span><span class="n">g_object_ref</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">img</span><span class="p">));</span> +<a id="line-2164" name="line-2164"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">data_ref_count</span><span class="o">++</span><span class="p">;</span> +<a id="line-2165" name="line-2165"></a> +<a id="line-2166" name="line-2166"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">data_ref_count</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">)</span><span class="o">-></span><span class="n">ref_count</span><span class="p">);</span> +<a id="line-2167" name="line-2167"></a><span class="p">}</span> +<a id="line-2168" name="line-2168"></a> +<a id="line-2169" name="line-2169"></a><span class="kt">void</span> +<a id="line-2170" name="line-2170"></a><span class="nf">eom_image_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2171" name="line-2171"></a><span class="p">{</span> +<a id="line-2172" name="line-2172"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-2173" name="line-2173"></a> +<a id="line-2174" name="line-2174"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">data_ref_count</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2175" name="line-2175"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">data_ref_count</span><span class="o">--</span><span class="p">;</span> +<a id="line-2176" name="line-2176"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2177" name="line-2177"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"More image data unrefs than refs."</span><span class="p">);</span> +<a id="line-2178" name="line-2178"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2179" name="line-2179"></a> +<a id="line-2180" name="line-2180"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">data_ref_count</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2181" name="line-2181"></a><span class="w"> </span><span class="n">eom_image_free_mem_private</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-2182" name="line-2182"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2183" name="line-2183"></a> +<a id="line-2184" name="line-2184"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-2185" name="line-2185"></a> +<a id="line-2186" name="line-2186"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">data_ref_count</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">)</span><span class="o">-></span><span class="n">ref_count</span><span class="p">);</span> +<a id="line-2187" name="line-2187"></a><span class="p">}</span> +<a id="line-2188" name="line-2188"></a> +<a id="line-2189" name="line-2189"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-2190" name="line-2190"></a><span class="nf">compare_quarks</span><span class="w"> </span><span class="p">(</span><span class="n">gconstpointer</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">gconstpointer</span><span class="w"> </span><span class="n">b</span><span class="p">)</span> +<a id="line-2191" name="line-2191"></a><span class="p">{</span> +<a id="line-2192" name="line-2192"></a><span class="w"> </span><span class="n">GQuark</span><span class="w"> </span><span class="n">quark</span><span class="p">;</span> +<a id="line-2193" name="line-2193"></a> +<a id="line-2194" name="line-2194"></a><span class="w"> </span><span class="n">quark</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_quark_from_string</span><span class="w"> </span><span class="p">((</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">a</span><span class="p">);</span> +<a id="line-2195" name="line-2195"></a> +<a id="line-2196" name="line-2196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">quark</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">b</span><span class="p">);</span> +<a id="line-2197" name="line-2197"></a><span class="p">}</span> +<a id="line-2198" name="line-2198"></a> +<a id="line-2199" name="line-2199"></a><span class="cm">/**</span> +<a id="line-2200" name="line-2200"></a><span class="cm"> * eom_image_get_supported_mime_types:</span> +<a id="line-2201" name="line-2201"></a><span class="cm"> *</span> +<a id="line-2202" name="line-2202"></a><span class="cm"> * Gets the list of supported mimetypes</span> +<a id="line-2203" name="line-2203"></a><span class="cm"> *</span> +<a id="line-2204" name="line-2204"></a><span class="cm"> * Returns: (transfer none)(element-type utf8): a #GList of supported mimetypes</span> +<a id="line-2205" name="line-2205"></a><span class="cm"> **/</span> +<a id="line-2206" name="line-2206"></a><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-2207" name="line-2207"></a><span class="nf">eom_image_get_supported_mime_types</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-2208" name="line-2208"></a><span class="p">{</span> +<a id="line-2209" name="line-2209"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">supported_mime_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2210" name="line-2210"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">format_list</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-2211" name="line-2211"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">mime_types</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'mime_types' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'mime_types' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-2212" name="line-2212"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'i' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'i' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-2213" name="line-2213"></a> +<a id="line-2214" name="line-2214"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">supported_mime_types</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2215" name="line-2215"></a><span class="w"> </span><span class="n">format_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_formats</span><span class="w"> </span><span class="p">();</span> +<a id="line-2216" name="line-2216"></a> +<a id="line-2217" name="line-2217"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">format_list</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2218" name="line-2218"></a><span class="w"> </span><span class="n">mime_types</span><span class="w"> </span><span class="o">=</span> +<a id="line-2219" name="line-2219"></a><span class="w"> </span><span class="n">gdk_pixbuf_format_get_mime_types</span><span class="w"> </span><span class="p">((</span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-2220" name="line-2220"></a> +<a id="line-2221" name="line-2221"></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">mime_types</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2222" name="line-2222"></a><span class="w"> </span><span class="n">supported_mime_types</span><span class="w"> </span><span class="o">=</span> +<a id="line-2223" name="line-2223"></a><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">supported_mime_types</span><span class="p">,</span> +<a id="line-2224" name="line-2224"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">mime_types</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span> +<a id="line-2225" name="line-2225"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2226" name="line-2226"></a> +<a id="line-2227" name="line-2227"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">mime_types</span><span class="p">);</span> +<a id="line-2228" name="line-2228"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2229" name="line-2229"></a> +<a id="line-2230" name="line-2230"></a><span class="w"> </span><span class="n">supported_mime_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_sort</span><span class="w"> </span><span class="p">(</span><span class="n">supported_mime_types</span><span class="p">,</span> +<a id="line-2231" name="line-2231"></a><span class="w"> </span><span class="p">(</span><span class="n">GCompareFunc</span><span class="p">)</span><span class="w"> </span><span class="n">compare_quarks</span><span class="p">);</span> +<a id="line-2232" name="line-2232"></a> +<a id="line-2233" name="line-2233"></a><span class="w"> </span><span class="n">g_slist_free</span><span class="w"> </span><span class="p">(</span><span class="n">format_list</span><span class="p">);</span> +<a id="line-2234" name="line-2234"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2235" name="line-2235"></a> +<a id="line-2236" name="line-2236"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">supported_mime_types</span><span class="p">;</span> +<a id="line-2237" name="line-2237"></a><span class="p">}</span> +<a id="line-2238" name="line-2238"></a> +<a id="line-2239" name="line-2239"></a><span class="n">gboolean</span> +<a id="line-2240" name="line-2240"></a><span class="nf">eom_image_is_supported_mime_type</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">mime_type</span><span class="p">)</span> +<a id="line-2241" name="line-2241"></a><span class="p">{</span> +<a id="line-2242" name="line-2242"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-2243" name="line-2243"></a><span class="w"> </span><span class="n">GQuark</span><span class="w"> </span><span class="n">quark</span><span class="p">;</span> +<a id="line-2244" name="line-2244"></a> +<a id="line-2245" name="line-2245"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2246" name="line-2246"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2247" name="line-2247"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2248" name="line-2248"></a> +<a id="line-2249" name="line-2249"></a><span class="w"> </span><span class="n">quark</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_quark_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">);</span> +<a id="line-2250" name="line-2250"></a> +<a id="line-2251" name="line-2251"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_find_custom</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_get_supported_mime_types</span><span class="w"> </span><span class="p">(),</span> +<a id="line-2252" name="line-2252"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">quark</span><span class="p">),</span> +<a id="line-2253" name="line-2253"></a><span class="w"> </span><span class="p">(</span><span class="n">GCompareFunc</span><span class="p">)</span><span class="w"> </span><span class="n">compare_quarks</span><span class="p">);</span> +<a id="line-2254" name="line-2254"></a> +<a id="line-2255" name="line-2255"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2256" name="line-2256"></a><span class="p">}</span> +<a id="line-2257" name="line-2257"></a> +<a id="line-2258" name="line-2258"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-2259" name="line-2259"></a><span class="nf">eom_image_iter_advance</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2260" name="line-2260"></a><span class="p">{</span> +<a id="line-2261" name="line-2261"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2262" name="line-2262"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">new_frame</span><span class="p">;</span> +<a id="line-2263" name="line-2263"></a> +<a id="line-2264" name="line-2264"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2265" name="line-2265"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_PIXBUF_ANIMATION_ITER</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2266" name="line-2266"></a> +<a id="line-2267" name="line-2267"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2268" name="line-2268"></a> +<a id="line-2269" name="line-2269"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">new_frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_animation_iter_advance</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">TRUE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2270" name="line-2270"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2271" name="line-2271"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-2272" name="line-2272"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_animation_iter_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">);</span> +<a id="line-2273" name="line-2273"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-2274" name="line-2274"></a><span class="w"> </span><span class="cm">/* keep the transformation over time */</span> +<a id="line-2275" name="line-2275"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-2276" name="line-2276"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="o">*</span><span class="w"> </span><span class="n">transformed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_apply</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2277" name="line-2277"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-2278" name="line-2278"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">transformed</span><span class="p">;</span> +<a id="line-2279" name="line-2279"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">transformed</span><span class="p">);</span> +<a id="line-2280" name="line-2280"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">transformed</span><span class="p">);</span> +<a id="line-2281" name="line-2281"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2282" name="line-2282"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2283" name="line-2283"></a><span class="w"> </span><span class="cm">/* Emit next frame signal so we can update the display */</span> +<a id="line-2284" name="line-2284"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_NEXT_FRAME</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-2285" name="line-2285"></a><span class="w"> </span><span class="n">gdk_pixbuf_animation_iter_get_delay_time</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">));</span> +<a id="line-2286" name="line-2286"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2287" name="line-2287"></a> +<a id="line-2288" name="line-2288"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">new_frame</span><span class="p">;</span> +<a id="line-2289" name="line-2289"></a><span class="p">}</span> +<a id="line-2290" name="line-2290"></a> +<a id="line-2291" name="line-2291"></a><span class="cm">/**</span> +<a id="line-2292" name="line-2292"></a><span class="cm"> * eom_image_is_animation:</span> +<a id="line-2293" name="line-2293"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-2294" name="line-2294"></a><span class="cm"> *</span> +<a id="line-2295" name="line-2295"></a><span class="cm"> * Checks whether a given image is animated.</span> +<a id="line-2296" name="line-2296"></a><span class="cm"> *</span> +<a id="line-2297" name="line-2297"></a><span class="cm"> * Returns: #TRUE if it is an animated image, #FALSE otherwise.</span> +<a id="line-2298" name="line-2298"></a><span class="cm"> *</span> +<a id="line-2299" name="line-2299"></a><span class="cm"> **/</span> +<a id="line-2300" name="line-2300"></a><span class="n">gboolean</span> +<a id="line-2301" name="line-2301"></a><span class="nf">eom_image_is_animation</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2302" name="line-2302"></a><span class="p">{</span> +<a id="line-2303" name="line-2303"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2304" name="line-2304"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">anim</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2305" name="line-2305"></a><span class="p">}</span> +<a id="line-2306" name="line-2306"></a> +<a id="line-2307" name="line-2307"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-2308" name="line-2308"></a><span class="nf">private_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-2309" name="line-2309"></a><span class="p">{</span> +<a id="line-2310" name="line-2310"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-2311" name="line-2311"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2312" name="line-2312"></a> +<a id="line-2313" name="line-2313"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_is_animation</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-2314" name="line-2314"></a><span class="w"> </span><span class="o">!</span><span class="n">g_source_is_destroyed</span><span class="w"> </span><span class="p">(</span><span class="n">g_main_current_source</span><span class="w"> </span><span class="p">())</span><span class="w"> </span><span class="o">&&</span> +<a id="line-2315" name="line-2315"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">is_playing</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2316" name="line-2316"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_iter_advance</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">)</span><span class="w"> </span><span class="p">{};</span><span class="w"> </span><span class="cm">/* cpu-sucking ? */</span> +<a id="line-2317" name="line-2317"></a><span class="w"> </span><span class="n">g_timeout_add</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_animation_iter_get_delay_time</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">),</span><span class="w"> </span><span class="n">private_timeout</span><span class="p">,</span><span class="w"> </span><span class="n">img</span><span class="p">);</span> +<a id="line-2318" name="line-2318"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2319" name="line-2319"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2320" name="line-2320"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">is_playing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2321" name="line-2321"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"> </span><span class="cm">/* stop playing */</span> +<a id="line-2322" name="line-2322"></a><span class="p">}</span> +<a id="line-2323" name="line-2323"></a> +<a id="line-2324" name="line-2324"></a><span class="cm">/**</span> +<a id="line-2325" name="line-2325"></a><span class="cm"> * eom_image_start_animation:</span> +<a id="line-2326" name="line-2326"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-2327" name="line-2327"></a><span class="cm"> *</span> +<a id="line-2328" name="line-2328"></a><span class="cm"> * Starts playing an animated image.</span> +<a id="line-2329" name="line-2329"></a><span class="cm"> *</span> +<a id="line-2330" name="line-2330"></a><span class="cm"> * Returns: %TRUE on success, %FALSE if @img is already playing or isn't an animated image.</span> +<a id="line-2331" name="line-2331"></a><span class="cm"> **/</span> +<a id="line-2332" name="line-2332"></a><span class="n">gboolean</span> +<a id="line-2333" name="line-2333"></a><span class="nf">eom_image_start_animation</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2334" name="line-2334"></a><span class="p">{</span> +<a id="line-2335" name="line-2335"></a><span class="w"> </span><span class="n">EomImagePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2336" name="line-2336"></a> +<a id="line-2337" name="line-2337"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2338" name="line-2338"></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">img</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2339" name="line-2339"></a> +<a id="line-2340" name="line-2340"></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">eom_image_is_animation</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">is_playing</span><span class="p">)</span> +<a id="line-2341" name="line-2341"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2342" name="line-2342"></a> +<a id="line-2343" name="line-2343"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2344" name="line-2344"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">);</span> +<a id="line-2345" name="line-2345"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">is_playing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-2346" name="line-2346"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">status_mutex</span><span class="p">);</span> +<a id="line-2347" name="line-2347"></a> +<a id="line-2348" name="line-2348"></a><span class="w"> </span><span class="n">g_timeout_add</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_animation_iter_get_delay_time</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">anim_iter</span><span class="p">),</span><span class="w"> </span><span class="n">private_timeout</span><span class="p">,</span><span class="w"> </span><span class="n">img</span><span class="p">);</span> +<a id="line-2349" name="line-2349"></a> +<a id="line-2350" name="line-2350"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-2351" name="line-2351"></a><span class="p">}</span> +<a id="line-2352" name="line-2352"></a> +<a id="line-2353" name="line-2353"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-2354" name="line-2354"></a><span class="n">gboolean</span> +<a id="line-2355" name="line-2355"></a><span class="nf">eom_image_is_svg</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2356" name="line-2356"></a><span class="p">{</span> +<a id="line-2357" name="line-2357"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2358" name="line-2358"></a> +<a id="line-2359" name="line-2359"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2360" name="line-2360"></a><span class="p">}</span> +<a id="line-2361" name="line-2361"></a> +<a id="line-2362" name="line-2362"></a><span class="n">RsvgHandle</span><span class="w"> </span><span class="o">*</span> +<a id="line-2363" name="line-2363"></a><span class="nf">eom_image_get_svg</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2364" name="line-2364"></a><span class="p">{</span> +<a id="line-2365" name="line-2365"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2366" name="line-2366"></a> +<a id="line-2367" name="line-2367"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">svg</span><span class="p">;</span> +<a id="line-2368" name="line-2368"></a><span class="p">}</span> +<a id="line-2369" name="line-2369"></a> +<a id="line-2370" name="line-2370"></a><span class="cp">#endif</span> +<a id="line-2371" name="line-2371"></a> +<a id="line-2372" name="line-2372"></a><span class="cm">/**</span> +<a id="line-2373" name="line-2373"></a><span class="cm"> * eom_image_get_transform:</span> +<a id="line-2374" name="line-2374"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-2375" name="line-2375"></a><span class="cm"> *</span> +<a id="line-2376" name="line-2376"></a><span class="cm"> * Get @img transform.</span> +<a id="line-2377" name="line-2377"></a><span class="cm"> *</span> +<a id="line-2378" name="line-2378"></a><span class="cm"> * Returns: (transfer none): A #EomTransform.</span> +<a id="line-2379" name="line-2379"></a><span class="cm"> */</span> +<a id="line-2380" name="line-2380"></a> +<a id="line-2381" name="line-2381"></a><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span> +<a id="line-2382" name="line-2382"></a><span class="nf">eom_image_get_transform</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2383" name="line-2383"></a><span class="p">{</span> +<a id="line-2384" name="line-2384"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2385" name="line-2385"></a> +<a id="line-2386" name="line-2386"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trans</span><span class="p">;</span> +<a id="line-2387" name="line-2387"></a><span class="p">}</span> +<a id="line-2388" name="line-2388"></a> +<a id="line-2389" name="line-2389"></a><span class="cm">/**</span> +<a id="line-2390" name="line-2390"></a><span class="cm"> * eom_image_get_autorotate_transform:</span> +<a id="line-2391" name="line-2391"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-2392" name="line-2392"></a><span class="cm"> *</span> +<a id="line-2393" name="line-2393"></a><span class="cm"> * Get @img autorotate transform.</span> +<a id="line-2394" name="line-2394"></a><span class="cm"> *</span> +<a id="line-2395" name="line-2395"></a><span class="cm"> * Returns: (transfer none): A #EomTransform.</span> +<a id="line-2396" name="line-2396"></a><span class="cm"> */</span> +<a id="line-2397" name="line-2397"></a> +<a id="line-2398" name="line-2398"></a><span class="n">EomTransform</span><span class="o">*</span> +<a id="line-2399" name="line-2399"></a><span class="nf">eom_image_get_autorotate_transform</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2400" name="line-2400"></a><span class="p">{</span> +<a id="line-2401" name="line-2401"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2402" name="line-2402"></a> +<a id="line-2403" name="line-2403"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trans_autorotate</span><span class="p">;</span> +<a id="line-2404" name="line-2404"></a><span class="p">}</span> +<a id="line-2405" name="line-2405"></a> +<a id="line-2406" name="line-2406"></a><span class="cm">/**</span> +<a id="line-2407" name="line-2407"></a><span class="cm"> * eom_image_file_changed:</span> +<a id="line-2408" name="line-2408"></a><span class="cm"> * @img: a #EomImage</span> +<a id="line-2409" name="line-2409"></a><span class="cm"> *</span> +<a id="line-2410" name="line-2410"></a><span class="cm"> * Marks the image files contents as changed. Also, emits</span> +<a id="line-2411" name="line-2411"></a><span class="cm"> * EomImage::file-changed signal</span> +<a id="line-2412" name="line-2412"></a><span class="cm"> **/</span> +<a id="line-2413" name="line-2413"></a><span class="kt">void</span> +<a id="line-2414" name="line-2414"></a><span class="nf">eom_image_file_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2415" name="line-2415"></a><span class="p">{</span> +<a id="line-2416" name="line-2416"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-2417" name="line-2417"></a> +<a id="line-2418" name="line-2418"></a><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_is_changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-2419" name="line-2419"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_FILE_CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-2420" name="line-2420"></a><span class="p">}</span> +<a id="line-2421" name="line-2421"></a> +<a id="line-2422" name="line-2422"></a><span class="n">gboolean</span> +<a id="line-2423" name="line-2423"></a><span class="nf">eom_image_is_file_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2424" name="line-2424"></a><span class="p">{</span> +<a id="line-2425" name="line-2425"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-2426" name="line-2426"></a> +<a id="line-2427" name="line-2427"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_is_changed</span><span class="p">;</span> +<a id="line-2428" name="line-2428"></a><span class="p">}</span> +<a id="line-2429" name="line-2429"></a> +<a id="line-2430" name="line-2430"></a><span class="n">gboolean</span> +<a id="line-2431" name="line-2431"></a><span class="nf">eom_image_is_jpeg</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-2432" name="line-2432"></a><span class="p">{</span> +<a id="line-2433" name="line-2433"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2434" name="line-2434"></a> +<a id="line-2435" name="line-2435"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">((</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_type</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_FILE_FORMAT_JPEG</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">));</span> +<a id="line-2436" name="line-2436"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/13.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/13.html new file mode 100644 index 0000000..a203d5c --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/13.html @@ -0,0 +1,2153 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-jobs.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-jobs.c</p> +<a href="13.html#line-910"> variableScope 910</a><a href="13.html#line-910"> variableScope 910</a><a href="13.html#line-911"> variableScope 911</a><a href="13.html#line-911"> variableScope 911</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span> +<span class="normal">789</span> +<span class="normal">790</span> +<span class="normal">791</span> +<span class="normal">792</span> +<span class="normal">793</span> +<span class="normal">794</span> +<span class="normal">795</span> +<span class="normal">796</span> +<span class="normal">797</span> +<span class="normal">798</span> +<span class="normal">799</span> +<span class="normal">800</span> +<span class="normal">801</span> +<span class="normal">802</span> +<span class="normal">803</span> +<span class="normal">804</span> +<span class="normal">805</span> +<span class="normal">806</span> +<span class="normal">807</span> +<span class="normal">808</span> +<span class="normal">809</span> +<span class="normal">810</span> +<span class="normal">811</span> +<span class="normal">812</span> +<span class="normal">813</span> +<span class="normal">814</span> +<span class="normal">815</span> +<span class="normal">816</span> +<span class="normal">817</span> +<span class="normal">818</span> +<span class="normal">819</span> +<span class="normal">820</span> +<span class="normal">821</span> +<span class="normal">822</span> +<span class="normal">823</span> +<span class="normal">824</span> +<span class="normal">825</span> +<span class="normal">826</span> +<span class="normal">827</span> +<span class="normal">828</span> +<span class="normal">829</span> +<span class="normal">830</span> +<span class="normal">831</span> +<span class="normal">832</span> +<span class="normal">833</span> +<span class="normal">834</span> +<span class="normal">835</span> +<span class="normal">836</span> +<span class="normal">837</span> +<span class="normal">838</span> +<span class="normal">839</span> +<span class="normal">840</span> +<span class="normal">841</span> +<span class="normal">842</span> +<span class="normal">843</span> +<span class="normal">844</span> +<span class="normal">845</span> +<span class="normal">846</span> +<span class="normal">847</span> +<span class="normal">848</span> +<span class="normal">849</span> +<span class="normal">850</span> +<span class="normal">851</span> +<span class="normal">852</span> +<span class="normal">853</span> +<span class="normal">854</span> +<span class="normal">855</span> +<span class="normal">856</span> +<span class="normal">857</span> +<span class="normal">858</span> +<span class="normal">859</span> +<span class="normal">860</span> +<span class="normal">861</span> +<span class="normal">862</span> +<span class="normal">863</span> +<span class="normal">864</span> +<span class="normal">865</span> +<span class="normal">866</span> +<span class="normal">867</span> +<span class="normal">868</span> +<span class="normal">869</span> +<span class="normal">870</span> +<span class="normal">871</span> +<span class="normal">872</span> +<span class="normal">873</span> +<span class="normal">874</span> +<span class="normal">875</span> +<span class="normal">876</span> +<span class="normal">877</span> +<span class="normal">878</span> +<span class="normal">879</span> +<span class="normal">880</span> +<span class="normal">881</span> +<span class="normal">882</span> +<span class="normal">883</span> +<span class="normal">884</span> +<span class="normal">885</span> +<span class="normal">886</span> +<span class="normal">887</span> +<span class="normal">888</span> +<span class="normal">889</span> +<span class="normal">890</span> +<span class="normal">891</span> +<span class="normal">892</span> +<span class="normal">893</span> +<span class="normal">894</span> +<span class="normal">895</span> +<span class="normal">896</span> +<span class="normal">897</span> +<span class="normal">898</span> +<span class="normal">899</span> +<span class="normal">900</span> +<span class="normal">901</span> +<span class="normal">902</span> +<span class="normal">903</span> +<span class="normal">904</span> +<span class="normal">905</span> +<span class="normal">906</span> +<span class="normal">907</span> +<span class="normal">908</span> +<span class="normal">909</span> +<span class="normal">910</span> +<span class="normal">911</span> +<span class="normal">912</span> +<span class="normal">913</span> +<span class="normal">914</span> +<span class="normal">915</span> +<span class="normal">916</span> +<span class="normal">917</span> +<span class="normal">918</span> +<span class="normal">919</span> +<span class="normal">920</span> +<span class="normal">921</span> +<span class="normal">922</span> +<span class="normal">923</span> +<span class="normal">924</span> +<span class="normal">925</span> +<span class="normal">926</span> +<span class="normal">927</span> +<span class="normal">928</span> +<span class="normal">929</span> +<span class="normal">930</span> +<span class="normal">931</span> +<span class="normal">932</span> +<span class="normal">933</span> +<span class="normal">934</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - Jobs</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on evince code (shell/ev-jobs.c) by:</span> +<a id="line-8" name="line-8"></a><span class="cm"> * - Martin Kretzschmar <[email protected]></span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-11" name="line-11"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-12" name="line-12"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-13" name="line-13"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-14" name="line-14"></a><span class="cm"> *</span> +<a id="line-15" name="line-15"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-16" name="line-16"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-17" name="line-17"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-18" name="line-18"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-19" name="line-19"></a><span class="cm"> *</span> +<a id="line-20" name="line-20"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-21" name="line-21"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-22" name="line-22"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-23" name="line-23"></a><span class="cm"> */</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-uri-converter.h"</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-jobs.h"</span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-job-queue.h"</span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image.h"</span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-transform.h"</span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-list-store.h"</span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-thumbnail.h"</span> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-pixbuf-util.h"</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"><gdk-pixbuf/gdk-pixbuf.h></span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="p">,</span><span class="w"> </span><span class="n">eom_job</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobThumbnail</span><span class="p">,</span><span class="w"> </span><span class="n">eom_job_thumbnail</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_JOB</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobLoad</span><span class="p">,</span><span class="w"> </span><span class="n">eom_job_load</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_JOB</span><span class="p">);</span> +<a id="line-39" name="line-39"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobModel</span><span class="p">,</span><span class="w"> </span><span class="n">eom_job_model</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_JOB</span><span class="p">);</span> +<a id="line-40" name="line-40"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobTransform</span><span class="p">,</span><span class="w"> </span><span class="n">eom_job_transform</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_JOB</span><span class="p">);</span> +<a id="line-41" name="line-41"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSave</span><span class="p">,</span><span class="w"> </span><span class="n">eom_job_save</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_JOB</span><span class="p">);</span> +<a id="line-42" name="line-42"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSaveAs</span><span class="p">,</span><span class="w"> </span><span class="n">eom_job_save_as</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_JOB_SAVE</span><span class="p">);</span> +<a id="line-43" name="line-43"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobCopy</span><span class="p">,</span><span class="w"> </span><span class="n">eom_job_copy</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_JOB</span><span class="p">);</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="k">enum</span> +<a id="line-46" name="line-46"></a><span class="p">{</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">SIGNAL_FINISHED</span><span class="p">,</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">SIGNAL_PROGRESS</span><span class="p">,</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">SIGNAL_LAST_SIGNAL</span> +<a id="line-50" name="line-50"></a><span class="p">};</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">job_signals</span><span class="p">[</span><span class="n">SIGNAL_LAST_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_copy_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-55" name="line-55"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_load_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_model_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_save_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">);</span> +<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_save_as_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">);</span> +<a id="line-59" name="line-59"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_thumbnail_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-60" name="line-60"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_transform_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span> +<a id="line-63" name="line-63"></a><span class="p">{</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="cm">/* NOTE: We need to allocate the mutex here so the ABI stays the same when it used to use g_mutex_new */</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">mutex</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc</span><span class="w"> </span><span class="p">(</span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">GMutex</span><span class="p">));</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">g_mutex_init</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">progress</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="p">}</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-71" name="line-71"></a><span class="nf">eom_job_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-72" name="line-72"></a><span class="p">{</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="p">}</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">mutex</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">g_mutex_clear</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="p">}</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-88" name="line-88"></a><span class="p">}</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-91" name="line-91"></a><span class="nf">eom_job_run_default</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span> +<a id="line-92" name="line-92"></a><span class="p">{</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_critical</span><span class="w"> </span><span class="p">(</span><span class="s">"Class </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s"> does not implement the required run action"</span><span class="p">,</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_NAME</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT_GET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">)));</span> +<a id="line-95" name="line-95"></a><span class="p">}</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-98" name="line-98"></a><span class="nf">eom_job_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-99" name="line-99"></a><span class="p">{</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">oclass</span><span class="p">;</span> +<a id="line-101" name="line-101"></a> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">oclass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">);</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">oclass</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_dispose</span><span class="p">;</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">class</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_run_default</span><span class="p">;</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">job_signals</span><span class="w"> </span><span class="p">[</span><span class="n">SIGNAL_FINISHED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">EOM_TYPE_JOB</span><span class="p">,</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobClass</span><span class="p">,</span><span class="w"> </span><span class="n">finished</span><span class="p">),</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">job_signals</span><span class="w"> </span><span class="p">[</span><span class="n">SIGNAL_PROGRESS</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"progress"</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">EOM_TYPE_JOB</span><span class="p">,</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobClass</span><span class="p">,</span><span class="w"> </span><span class="n">progress</span><span class="p">),</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__FLOAT</span><span class="p">,</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">G_TYPE_FLOAT</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="p">}</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="kt">void</span> +<a id="line-129" name="line-129"></a><span class="nf">eom_job_finished</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span> +<a id="line-130" name="line-130"></a><span class="p">{</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">));</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">job_signals</span><span class="p">[</span><span class="n">SIGNAL_FINISHED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-134" name="line-134"></a><span class="p">}</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="cm">/**</span> +<a id="line-137" name="line-137"></a><span class="cm"> * eom_job_run:</span> +<a id="line-138" name="line-138"></a><span class="cm"> * @job: the job to execute.</span> +<a id="line-139" name="line-139"></a><span class="cm"> *</span> +<a id="line-140" name="line-140"></a><span class="cm"> * Executes the job passed as @job. Usually there is no need to call this</span> +<a id="line-141" name="line-141"></a><span class="cm"> * on your own. Jobs should be executed by using the EomJobQueue.</span> +<a id="line-142" name="line-142"></a><span class="cm"> **/</span> +<a id="line-143" name="line-143"></a><span class="kt">void</span> +<a id="line-144" name="line-144"></a><span class="nf">eom_job_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span> +<a id="line-145" name="line-145"></a><span class="p">{</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">EomJobClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">;</span> +<a id="line-147" name="line-147"></a> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">));</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_GET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="o">-></span><span class="n">run</span><span class="p">)</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">class</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">else</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">eom_job_run_default</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="p">}</span> +<a id="line-156" name="line-156"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-157" name="line-157"></a><span class="nf">notify_progress</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-158" name="line-158"></a><span class="p">{</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-160" name="line-160"></a> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">job_signals</span><span class="p">[</span><span class="n">SIGNAL_PROGRESS</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">progress</span><span class="p">);</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-164" name="line-164"></a><span class="p">}</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="kt">void</span> +<a id="line-167" name="line-167"></a><span class="nf">eom_job_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="n">progress</span><span class="p">)</span> +<a id="line-168" name="line-168"></a><span class="p">{</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">));</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">progress</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mf">0.0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">progress</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span> +<a id="line-171" name="line-171"></a> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">progress</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">progress</span><span class="p">;</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">notify_progress</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="p">}</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_thumbnail_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobThumbnail</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Do Nothing */</span><span class="w"> </span><span class="p">}</span> +<a id="line-180" name="line-180"></a> +<a id="line-181" name="line-181"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-182" name="line-182"></a><span class="nf">eom_job_thumbnail_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-183" name="line-183"></a><span class="p">{</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">EomJobThumbnail</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-185" name="line-185"></a> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_THUMBNAIL</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="p">}</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="p">}</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_thumbnail_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-199" name="line-199"></a><span class="p">}</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-202" name="line-202"></a><span class="nf">eom_job_thumbnail_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobThumbnailClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-203" name="line-203"></a><span class="p">{</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">oclass</span><span class="p">;</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">oclass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">);</span> +<a id="line-207" name="line-207"></a> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">oclass</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_thumbnail_dispose</span><span class="p">;</span> +<a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">EOM_JOB_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_thumbnail_run</span><span class="p">;</span> +<a id="line-211" name="line-211"></a><span class="p">}</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span> +<a id="line-214" name="line-214"></a><span class="nf">eom_job_thumbnail_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-215" name="line-215"></a><span class="p">{</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">EomJobThumbnail</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-217" name="line-217"></a> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">job</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">EOM_TYPE_JOB_THUMBNAIL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="p">}</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-225" name="line-225"></a><span class="p">}</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-228" name="line-228"></a><span class="nf">eom_job_thumbnail_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">)</span> +<a id="line-229" name="line-229"></a><span class="p">{</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">orig_width</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">orig_height</span><span class="p">;</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">EomJobThumbnail</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB_THUMBNAIL</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">));</span> +<a id="line-236" name="line-236"></a> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_THUMBNAIL</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-238" name="line-238"></a> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">}</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumbnail_load</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="o">&</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-246" name="line-246"></a> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="p">}</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">orig_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">,</span><span class="w"> </span><span class="s">"tEXt::Thumb::Image::Width"</span><span class="p">));</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">orig_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">,</span><span class="w"> </span><span class="s">"tEXt::Thumb::Image::Height"</span><span class="p">));</span> +<a id="line-254" name="line-254"></a> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumbnail_fit_to_size</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMB_SIZE</span><span class="p">);</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumbnail_add_frame</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-259" name="line-259"></a> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">orig_width</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">sscanf</span><span class="w"> </span><span class="p">(</span><span class="n">orig_width</span><span class="p">,</span><span class="w"> </span><span class="s">"%i"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">);</span> +<a id="line-262" name="line-262"></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">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">),</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">EOM_THUMBNAIL_ORIGINAL_WIDTH</span><span class="p">,</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="p">));</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">orig_width</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="p">}</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">orig_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">sscanf</span><span class="w"> </span><span class="p">(</span><span class="n">orig_height</span><span class="p">,</span><span class="w"> </span><span class="s">"%i"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">);</span> +<a id="line-269" name="line-269"></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">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">),</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">EOM_THUMBNAIL_ORIGINAL_HEIGHT</span><span class="p">,</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="p">));</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">orig_height</span><span class="p">);</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">}</span> +<a id="line-274" name="line-274"></a> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">}</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-280" name="line-280"></a><span class="p">}</span> +<a id="line-281" name="line-281"></a> +<a id="line-282" name="line-282"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_load_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobLoad</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Do Nothing */</span><span class="w"> </span><span class="p">}</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-285" name="line-285"></a><span class="nf">eom_job_load_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-286" name="line-286"></a><span class="p">{</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">EomJobLoad</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-288" name="line-288"></a> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_LOAD</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-290" name="line-290"></a> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">}</span> +<a id="line-295" name="line-295"></a> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_load_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-297" name="line-297"></a><span class="p">}</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-300" name="line-300"></a><span class="nf">eom_job_load_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobLoadClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-301" name="line-301"></a><span class="p">{</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">oclass</span><span class="p">;</span> +<a id="line-303" name="line-303"></a> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">oclass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">);</span> +<a id="line-305" name="line-305"></a> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">oclass</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_load_dispose</span><span class="p">;</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">EOM_JOB_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_load_run</span><span class="p">;</span> +<a id="line-308" name="line-308"></a><span class="p">}</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span> +<a id="line-311" name="line-311"></a><span class="nf">eom_job_load_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EomImageData</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-312" name="line-312"></a><span class="p">{</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">EomJobLoad</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-314" name="line-314"></a> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">job</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">EOM_TYPE_JOB_LOAD</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-316" name="line-316"></a> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="p">}</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-321" name="line-321"></a> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-323" name="line-323"></a><span class="p">}</span> +<a id="line-324" name="line-324"></a> +<a id="line-325" name="line-325"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-326" name="line-326"></a><span class="nf">eom_job_load_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span> +<a id="line-327" name="line-327"></a><span class="p">{</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB_LOAD</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">));</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="p">}</span> +<a id="line-334" name="line-334"></a> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">eom_image_load</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_JOB_LOAD</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">)</span><span class="o">-></span><span class="n">image</span><span class="p">),</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">EOM_JOB_LOAD</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">)</span><span class="o">-></span><span class="n">data</span><span class="p">,</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">job</span><span class="p">,</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="o">&</span><span class="n">job</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-341" name="line-341"></a><span class="p">}</span> +<a id="line-342" name="line-342"></a> +<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><span class="nf">eom_job_model_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobModel</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Do Nothing */</span><span class="w"> </span><span class="p">}</span> +<a id="line-344" name="line-344"></a> +<a id="line-345" name="line-345"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-346" name="line-346"></a><span class="nf">eom_job_model_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobModelClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-347" name="line-347"></a><span class="p">{</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">EOM_JOB_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_model_run</span><span class="p">;</span> +<a id="line-349" name="line-349"></a><span class="p">}</span> +<a id="line-350" name="line-350"></a> +<a id="line-351" name="line-351"></a><span class="cm">/**</span> +<a id="line-352" name="line-352"></a><span class="cm"> * eom_job_model_new:</span> +<a id="line-353" name="line-353"></a><span class="cm"> * @file_list: (element-type GFile): a #GFile list</span> +<a id="line-354" name="line-354"></a><span class="cm"> *</span> +<a id="line-355" name="line-355"></a><span class="cm"> * Creates a new #EomJob model.</span> +<a id="line-356" name="line-356"></a><span class="cm"> *</span> +<a id="line-357" name="line-357"></a><span class="cm"> * Returns: A #EomJob.</span> +<a id="line-358" name="line-358"></a><span class="cm"> */</span> +<a id="line-359" name="line-359"></a> +<a id="line-360" name="line-360"></a><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span> +<a id="line-361" name="line-361"></a><span class="nf">eom_job_model_new</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">)</span> +<a id="line-362" name="line-362"></a><span class="p">{</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">EomJobModel</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">job</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">EOM_TYPE_JOB_MODEL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-366" name="line-366"></a> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_list</span><span class="p">;</span> +<a id="line-368" name="line-368"></a> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-370" name="line-370"></a><span class="p">}</span> +<a id="line-371" name="line-371"></a> +<a id="line-372" name="line-372"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-373" name="line-373"></a><span class="nf">filter_files</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">files</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">**</span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">**</span><span class="n">error_list</span><span class="p">)</span> +<a id="line-374" name="line-374"></a><span class="p">{</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">files</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">GFileType</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_FILE_TYPE_UNKNOWN</span><span class="p">;</span> +<a id="line-381" name="line-381"></a> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-383" name="line-383"></a> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_TYPE</span><span class="s">","</span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-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">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_FILE_TYPE_UNKNOWN</span><span class="p">;</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_file_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-392" name="line-392"></a> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="cm">/* Workaround for gvfs backends that</span> +<a id="line-394" name="line-394"></a><span class="cm"> don't set the GFileType. */</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_UNKNOWN</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-396" name="line-396"></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">ctype</span><span class="p">;</span> +<a id="line-397" name="line-397"></a> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">ctype</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-399" name="line-399"></a> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="cm">/* If the content type is supported</span> +<a id="line-401" name="line-401"></a><span class="cm"> adjust the file_type */</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_is_supported_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">ctype</span><span class="p">))</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_FILE_TYPE_REGULAR</span><span class="p">;</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="p">}</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="p">}</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="p">}</span> +<a id="line-409" name="line-409"></a> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_TYPE_REGULAR</span><span class="p">:</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_TYPE_DIRECTORY</span><span class="p">:</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">));</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="o">*</span><span class="n">error_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">error_list</span><span class="p">,</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">));</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">}</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="p">}</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">file_list</span><span class="p">);</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="o">*</span><span class="n">error_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">error_list</span><span class="p">);</span> +<a id="line-424" name="line-424"></a><span class="p">}</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-427" name="line-427"></a><span class="nf">eom_job_model_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">)</span> +<a id="line-428" name="line-428"></a><span class="p">{</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">filtered_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">error_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">EomJobModel</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-432" name="line-432"></a> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">));</span> +<a id="line-434" name="line-434"></a> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-436" name="line-436"></a> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">filter_files</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">filtered_list</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error_list</span><span class="p">);</span> +<a id="line-438" name="line-438"></a> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">eom_list_store_new</span><span class="w"> </span><span class="p">());</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">eom_list_store_add_files</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">filtered_list</span><span class="p">);</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_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">filtered_list</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">error_list</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-445" name="line-445"></a> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-447" name="line-447"></a><span class="p">}</span> +<a id="line-448" name="line-448"></a> +<a id="line-449" name="line-449"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_transform_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobTransform</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Do Nothing */</span><span class="w"> </span><span class="p">}</span> +<a id="line-450" name="line-450"></a> +<a id="line-451" name="line-451"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-452" name="line-452"></a><span class="nf">eom_job_transform_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-453" name="line-453"></a><span class="p">{</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">EomJobTransform</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-457" name="line-457"></a> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">trans</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">trans</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="p">}</span> +<a id="line-462" name="line-462"></a> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-464" name="line-464"></a> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_transform_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-466" name="line-466"></a><span class="p">}</span> +<a id="line-467" name="line-467"></a> +<a id="line-468" name="line-468"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-469" name="line-469"></a><span class="nf">eom_job_transform_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobTransformClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-470" name="line-470"></a><span class="p">{</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">oclass</span><span class="p">;</span> +<a id="line-472" name="line-472"></a> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">oclass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">);</span> +<a id="line-474" name="line-474"></a> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">oclass</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_transform_dispose</span><span class="p">;</span> +<a id="line-476" name="line-476"></a> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">EOM_JOB_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_transform_run</span><span class="p">;</span> +<a id="line-478" name="line-478"></a><span class="p">}</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="cm">/**</span> +<a id="line-481" name="line-481"></a><span class="cm"> * eom_job_transform_new:</span> +<a id="line-482" name="line-482"></a><span class="cm"> * @images: (element-type EomImage) (transfer full): a #EomImage list</span> +<a id="line-483" name="line-483"></a><span class="cm"> * @trans: a #EomTransform</span> +<a id="line-484" name="line-484"></a><span class="cm"> *</span> +<a id="line-485" name="line-485"></a><span class="cm"> * Create a new #EomJob for image transformation.</span> +<a id="line-486" name="line-486"></a><span class="cm"> *</span> +<a id="line-487" name="line-487"></a><span class="cm"> * Returns: A #EomJob.</span> +<a id="line-488" name="line-488"></a><span class="cm"> */</span> +<a id="line-489" name="line-489"></a> +<a id="line-490" name="line-490"></a><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span> +<a id="line-491" name="line-491"></a><span class="nf">eom_job_transform_new</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">images</span><span class="p">,</span><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">)</span> +<a id="line-492" name="line-492"></a><span class="p">{</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">EomJobTransform</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-494" name="line-494"></a> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">job</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">EOM_TYPE_JOB_TRANSFORM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-496" name="line-496"></a> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">);</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="p">}</span> +<a id="line-502" name="line-502"></a> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">images</span><span class="p">;</span> +<a id="line-504" name="line-504"></a> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-506" name="line-506"></a><span class="p">}</span> +<a id="line-507" name="line-507"></a> +<a id="line-508" name="line-508"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-509" name="line-509"></a><span class="nf">eom_job_transform_image_modified</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-510" name="line-510"></a><span class="p">{</span> +<a id="line-511" name="line-511"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-512" name="line-512"></a> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">eom_image_modified</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-515" name="line-515"></a> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-517" name="line-517"></a><span class="p">}</span> +<a id="line-518" name="line-518"></a> +<a id="line-519" name="line-519"></a><span class="kt">void</span> +<a id="line-520" name="line-520"></a><span class="nf">eom_job_transform_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">)</span> +<a id="line-521" name="line-521"></a><span class="p">{</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">EomJobTransform</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-524" name="line-524"></a> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">));</span> +<a id="line-526" name="line-526"></a> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-528" name="line-528"></a> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="p">}</span> +<a id="line-533" name="line-533"></a> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-536" name="line-536"></a> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">eom_image_undo</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">eom_image_transform</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">ejob</span><span class="p">);</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="p">}</span> +<a id="line-542" name="line-542"></a> +<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="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">trans</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_transform_image_modified</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="p">}</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="p">}</span> +<a id="line-548" name="line-548"></a> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-550" name="line-550"></a><span class="p">}</span> +<a id="line-551" name="line-551"></a> +<a id="line-552" name="line-552"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_save_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* do nothing */</span><span class="w"> </span><span class="p">}</span> +<a id="line-553" name="line-553"></a> +<a id="line-554" name="line-554"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-555" name="line-555"></a><span class="nf">eom_job_save_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-556" name="line-556"></a><span class="p">{</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-558" name="line-558"></a> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_SAVE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-560" name="line-560"></a> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="p">}</span> +<a id="line-565" name="line-565"></a> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_save_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-567" name="line-567"></a><span class="p">}</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-570" name="line-570"></a><span class="nf">eom_job_save_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSaveClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-571" name="line-571"></a><span class="p">{</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_save_dispose</span><span class="p">;</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">EOM_JOB_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_save_run</span><span class="p">;</span> +<a id="line-574" name="line-574"></a><span class="p">}</span> +<a id="line-575" name="line-575"></a> +<a id="line-576" name="line-576"></a><span class="cm">/**</span> +<a id="line-577" name="line-577"></a><span class="cm"> * eom_job_save_new:</span> +<a id="line-578" name="line-578"></a><span class="cm"> * @images: (element-type EomImage) (transfer full): a #EomImage list</span> +<a id="line-579" name="line-579"></a><span class="cm"> *</span> +<a id="line-580" name="line-580"></a><span class="cm"> * Creates a new #EomJob for image saving.</span> +<a id="line-581" name="line-581"></a><span class="cm"> *</span> +<a id="line-582" name="line-582"></a><span class="cm"> * Returns: A #EomJob.</span> +<a id="line-583" name="line-583"></a><span class="cm"> */</span> +<a id="line-584" name="line-584"></a> +<a id="line-585" name="line-585"></a><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span> +<a id="line-586" name="line-586"></a><span class="nf">eom_job_save_new</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">images</span><span class="p">)</span> +<a id="line-587" name="line-587"></a><span class="p">{</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-589" name="line-589"></a> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">job</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">EOM_TYPE_JOB_SAVE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-591" name="line-591"></a> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">images</span><span class="p">;</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-594" name="line-594"></a> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-596" name="line-596"></a><span class="p">}</span> +<a id="line-597" name="line-597"></a> +<a id="line-598" name="line-598"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-599" name="line-599"></a><span class="nf">save_progress_handler</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">progress</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-600" name="line-600"></a><span class="p">{</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_SAVE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">);</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">job_progress</span><span class="p">;</span> +<a id="line-604" name="line-604"></a> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">job_progress</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="n">n_images</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">progress</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">n_images</span><span class="p">);</span> +<a id="line-606" name="line-606"></a> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">eom_job_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">),</span><span class="w"> </span><span class="n">job_progress</span><span class="p">);</span> +<a id="line-608" name="line-608"></a><span class="p">}</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-611" name="line-611"></a><span class="nf">eom_job_save_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">)</span> +<a id="line-612" name="line-612"></a><span class="p">{</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-615" name="line-615"></a> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB_SAVE</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">));</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_SAVE</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-619" name="line-619"></a> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-621" name="line-621"></a> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">save_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">handler_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-627" name="line-627"></a> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-629" name="line-629"></a> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="cm">/* Make sure the image doesn't go away while saving */</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">eom_image_data_ref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-632" name="line-632"></a> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_ALL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">EomImageMetadataStatus</span><span class="w"> </span><span class="n">m_status</span><span class="p">;</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">data2load</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-636" name="line-636"></a> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">m_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_metadata_status</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-638" name="line-638"></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">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_IMAGE</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="c1">// Queue full read in this case</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">data2load</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_ALL</span><span class="p">;</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">m_status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_NOT_READ</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="c1">// Load only if we haven't read it yet</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">data2load</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_XMP</span><span class="p">;</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="p">}</span> +<a id="line-645" name="line-645"></a> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data2load</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">eom_image_load</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">data2load</span><span class="p">,</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="o">&</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="p">}</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="p">}</span> +<a id="line-653" name="line-653"></a> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">handler_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"save-progress"</span><span class="p">,</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">save_progress_handler</span><span class="p">),</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">job</span><span class="p">);</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">save_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_save_info_new_from_image</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-659" name="line-659"></a> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_save_by_info</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">save_info</span><span class="p">,</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="o">&</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">save_info</span><span class="p">)</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">save_info</span><span class="p">);</span> +<a id="line-666" name="line-666"></a> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handler_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">handler_id</span><span class="p">);</span> +<a id="line-669" name="line-669"></a> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">eom_image_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-671" name="line-671"></a> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">success</span><span class="p">)</span><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="p">}</span> +<a id="line-674" name="line-674"></a> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-676" name="line-676"></a><span class="p">}</span> +<a id="line-677" name="line-677"></a> +<a id="line-678" name="line-678"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_save_as_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSaveAs</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* do nothing */</span><span class="w"> </span><span class="p">}</span> +<a id="line-679" name="line-679"></a> +<a id="line-680" name="line-680"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_save_as_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-681" name="line-681"></a><span class="p">{</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">EomJobSaveAs</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_SAVE_AS</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-683" name="line-683"></a> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">converter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">converter</span><span class="p">);</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">converter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="p">}</span> +<a id="line-688" name="line-688"></a> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="p">}</span> +<a id="line-693" name="line-693"></a> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_save_as_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-695" name="line-695"></a><span class="p">}</span> +<a id="line-696" name="line-696"></a> +<a id="line-697" name="line-697"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-698" name="line-698"></a><span class="nf">eom_job_save_as_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSaveAsClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-699" name="line-699"></a><span class="p">{</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_save_as_dispose</span><span class="p">;</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">EOM_JOB_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_save_as_run</span><span class="p">;</span> +<a id="line-702" name="line-702"></a><span class="p">}</span> +<a id="line-703" name="line-703"></a> +<a id="line-704" name="line-704"></a><span class="cm">/**</span> +<a id="line-705" name="line-705"></a><span class="cm"> * eom_job_save_as_new:</span> +<a id="line-706" name="line-706"></a><span class="cm"> * @images: (element-type EomImage) (transfer full): a #EomImage list</span> +<a id="line-707" name="line-707"></a><span class="cm"> * @converter: a URI converter</span> +<a id="line-708" name="line-708"></a><span class="cm"> * file: a #GFile</span> +<a id="line-709" name="line-709"></a><span class="cm"> *</span> +<a id="line-710" name="line-710"></a><span class="cm"> * Creates a new #EomJob for save as.</span> +<a id="line-711" name="line-711"></a><span class="cm"> *</span> +<a id="line-712" name="line-712"></a><span class="cm"> * Returns: A #EomJob.</span> +<a id="line-713" name="line-713"></a><span class="cm"> */</span> +<a id="line-714" name="line-714"></a> +<a id="line-715" name="line-715"></a><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span> +<a id="line-716" name="line-716"></a><span class="nf">eom_job_save_as_new</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">images</span><span class="p">,</span><span class="w"> </span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span> +<a id="line-717" name="line-717"></a><span class="p">{</span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">EomJobSaveAs</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-719" name="line-719"></a> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">converter</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">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-721" name="line-721"></a> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">job</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">EOM_TYPE_JOB_SAVE_AS</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-723" name="line-723"></a> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">EOM_JOB_SAVE</span><span class="p">(</span><span class="n">job</span><span class="p">)</span><span class="o">-></span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">images</span><span class="p">;</span> +<a id="line-725" name="line-725"></a> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">converter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">converter</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-728" name="line-728"></a> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-730" name="line-730"></a><span class="p">}</span> +<a id="line-731" name="line-731"></a> +<a id="line-732" name="line-732"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-733" name="line-733"></a><span class="nf">eom_job_save_as_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">)</span> +<a id="line-734" name="line-734"></a><span class="p">{</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">EomJobSaveAs</span><span class="w"> </span><span class="o">*</span><span class="n">saveas_job</span><span class="p">;</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-739" name="line-739"></a> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB_SAVE_AS</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">));</span> +<a id="line-741" name="line-741"></a> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_SAVE</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-743" name="line-743"></a> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">);</span> +<a id="line-745" name="line-745"></a> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">saveas_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_SAVE_AS</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-747" name="line-747"></a> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-749" name="line-749"></a> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">EomImageSaveInfo</span><span class="w"> </span><span class="o">*</span><span class="n">src_info</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dest_info</span><span class="p">;</span> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">handler_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-756" name="line-756"></a> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-758" name="line-758"></a> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">eom_image_data_ref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-760" name="line-760"></a> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_ALL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">EomImageMetadataStatus</span><span class="w"> </span><span class="n">m_status</span><span class="p">;</span> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">data2load</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-764" name="line-764"></a> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">m_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_metadata_status</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_IMAGE</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="c1">// Queue full read in this case</span> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">data2load</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_ALL</span><span class="p">;</span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">m_status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_NOT_READ</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="c1">// Load only if we haven't read it yet</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">data2load</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_XMP</span><span class="p">;</span> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="p">}</span> +<a id="line-773" name="line-773"></a> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data2load</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">eom_image_load</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">data2load</span><span class="p">,</span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="o">&</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="p">}</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="p">}</span> +<a id="line-781" name="line-781"></a> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-783" name="line-783"></a> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">handler_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"save-progress"</span><span class="p">,</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">save_progress_handler</span><span class="p">),</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">job</span><span class="p">);</span> +<a id="line-787" name="line-787"></a> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">src_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_save_info_new_from_image</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-789" name="line-789"></a> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">saveas_job</span><span class="o">-></span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-792" name="line-792"></a> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_pixbuf_get_format</span><span class="w"> </span><span class="p">(</span><span class="n">saveas_job</span><span class="o">-></span><span class="n">file</span><span class="p">);</span> +<a id="line-794" name="line-794"></a> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">dest_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_save_info_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">saveas_job</span><span class="o">-></span><span class="n">file</span><span class="p">,</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-797" name="line-797"></a> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="cm">/* SaveAsDialog has already secured permission to overwrite */</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dest_info</span><span class="o">-></span><span class="n">exists</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">dest_info</span><span class="o">-></span><span class="n">overwrite</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="p">}</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">dest_file</span><span class="p">;</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-805" name="line-805"></a> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_uri_converter_do</span><span class="w"> </span><span class="p">(</span><span class="n">saveas_job</span><span class="o">-></span><span class="n">converter</span><span class="p">,</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">image</span><span class="p">,</span> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="o">&</span><span class="n">dest_file</span><span class="p">,</span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="o">&</span><span class="n">format</span><span class="p">,</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-811" name="line-811"></a> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">);</span> +<a id="line-813" name="line-813"></a> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">dest_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_save_info_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">dest_file</span><span class="p">,</span> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="p">}</span> +<a id="line-817" name="line-817"></a> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_save_as_by_info</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">src_info</span><span class="p">,</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="n">dest_info</span><span class="p">,</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="o">&</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-822" name="line-822"></a> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">src_info</span><span class="p">)</span> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">src_info</span><span class="p">);</span> +<a id="line-825" name="line-825"></a> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dest_info</span><span class="p">)</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dest_info</span><span class="p">);</span> +<a id="line-828" name="line-828"></a> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handler_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">handler_id</span><span class="p">);</span> +<a id="line-831" name="line-831"></a> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">eom_image_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-833" name="line-833"></a> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">success</span><span class="p">)</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="p">}</span> +<a id="line-837" name="line-837"></a> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-839" name="line-839"></a><span class="p">}</span> +<a id="line-840" name="line-840"></a> +<a id="line-841" name="line-841"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_copy_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobCopy</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* do nothing */</span><span class="p">};</span> +<a id="line-842" name="line-842"></a> +<a id="line-843" name="line-843"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-844" name="line-844"></a><span class="nf">eom_job_copy_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-845" name="line-845"></a><span class="p">{</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">EomJobCopy</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_COPY</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-847" name="line-847"></a> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">dest</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">dest</span><span class="p">);</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">dest</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="p">}</span> +<a id="line-852" name="line-852"></a> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_copy_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-854" name="line-854"></a><span class="p">}</span> +<a id="line-855" name="line-855"></a> +<a id="line-856" name="line-856"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-857" name="line-857"></a><span class="nf">eom_job_copy_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobCopyClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-858" name="line-858"></a><span class="p">{</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_copy_dispose</span><span class="p">;</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">EOM_JOB_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">)</span><span class="o">-></span><span class="n">run</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_copy_run</span><span class="p">;</span> +<a id="line-861" name="line-861"></a><span class="p">}</span> +<a id="line-862" name="line-862"></a> +<a id="line-863" name="line-863"></a><span class="cm">/**</span> +<a id="line-864" name="line-864"></a><span class="cm"> * eom_job_copy_new:</span> +<a id="line-865" name="line-865"></a><span class="cm"> * @images: (element-type EomImage) (transfer full): a #EomImage list</span> +<a id="line-866" name="line-866"></a><span class="cm"> * @dest: destination path for the copy</span> +<a id="line-867" name="line-867"></a><span class="cm"> *</span> +<a id="line-868" name="line-868"></a><span class="cm"> * Creates a new #EomJob.</span> +<a id="line-869" name="line-869"></a><span class="cm"> *</span> +<a id="line-870" name="line-870"></a><span class="cm"> * Returns: A #EomJob.</span> +<a id="line-871" name="line-871"></a><span class="cm"> */</span> +<a id="line-872" name="line-872"></a> +<a id="line-873" name="line-873"></a><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span> +<a id="line-874" name="line-874"></a><span class="nf">eom_job_copy_new</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">images</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">dest</span><span class="p">)</span> +<a id="line-875" name="line-875"></a><span class="p">{</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="n">EomJobCopy</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-877" name="line-877"></a> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">images</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">dest</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-879" name="line-879"></a> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">job</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">EOM_TYPE_JOB_COPY</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-881" name="line-881"></a> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">images</span><span class="p">;</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">dest</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">dest</span><span class="p">);</span> +<a id="line-884" name="line-884"></a> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-886" name="line-886"></a><span class="p">}</span> +<a id="line-887" name="line-887"></a> +<a id="line-888" name="line-888"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-889" name="line-889"></a><span class="nf">eom_job_copy_progress_callback</span><span class="w"> </span><span class="p">(</span><span class="n">goffset</span><span class="w"> </span><span class="n">current_num_bytes</span><span class="p">,</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">goffset</span><span class="w"> </span><span class="n">total_num_bytes</span><span class="p">,</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-892" name="line-892"></a><span class="p">{</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">job_progress</span><span class="p">;</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">EomJobCopy</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-896" name="line-896"></a> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_COPY</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">);</span> +<a id="line-899" name="line-899"></a> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">job_progress</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">current_num_bytes</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="n">total_num_bytes</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="p">)</span><span class="o">/</span><span class="n">n_images</span><span class="p">;</span> +<a id="line-901" name="line-901"></a> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">eom_job_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">),</span><span class="w"> </span><span class="n">job_progress</span><span class="p">);</span> +<a id="line-903" name="line-903"></a><span class="p">}</span> +<a id="line-904" name="line-904"></a> +<a id="line-905" name="line-905"></a><span class="kt">void</span> +<a id="line-906" name="line-906"></a><span class="nf">eom_job_copy_run</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">ejob</span><span class="p">)</span> +<a id="line-907" name="line-907"></a><span class="p">{</span> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">EomJobCopy</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-910" name="line-910"></a><span class="hll"><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'src' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'src' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'dest' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'dest' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-911" name="line-911"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dest_filename</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'filename' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'filename' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'dest_filename' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'dest_filename' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-912" name="line-912"></a> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_JOB_COPY</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">));</span> +<a id="line-914" name="line-914"></a> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_JOB_COPY</span><span class="w"> </span><span class="p">(</span><span class="n">ejob</span><span class="p">);</span> +<a id="line-916" name="line-916"></a> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-918" name="line-918"></a> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_next</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="p">),</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="n">src</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="n">dest_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">dest</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">dest_filename</span><span class="p">);</span> +<a id="line-924" name="line-924"></a> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">g_file_copy</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">G_FILE_COPY_OVERWRITE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">eom_job_copy_progress_callback</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="p">,</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="o">&</span><span class="n">ejob</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dest_filename</span><span class="p">);</span> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="p">}</span> +<a id="line-932" name="line-932"></a> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">ejob</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-934" name="line-934"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/14.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/14.html new file mode 100644 index 0000000..2b6fa9a --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/14.html @@ -0,0 +1,2127 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-list-store.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-list-store.c</p> +<a href="14.html#line-250"> variableScope 250</a><a href="14.html#line-466"> variableScope 466</a><a href="14.html#line-546"> variableScope 546</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span> +<span class="normal">789</span> +<span class="normal">790</span> +<span class="normal">791</span> +<span class="normal">792</span> +<span class="normal">793</span> +<span class="normal">794</span> +<span class="normal">795</span> +<span class="normal">796</span> +<span class="normal">797</span> +<span class="normal">798</span> +<span class="normal">799</span> +<span class="normal">800</span> +<span class="normal">801</span> +<span class="normal">802</span> +<span class="normal">803</span> +<span class="normal">804</span> +<span class="normal">805</span> +<span class="normal">806</span> +<span class="normal">807</span> +<span class="normal">808</span> +<span class="normal">809</span> +<span class="normal">810</span> +<span class="normal">811</span> +<span class="normal">812</span> +<span class="normal">813</span> +<span class="normal">814</span> +<span class="normal">815</span> +<span class="normal">816</span> +<span class="normal">817</span> +<span class="normal">818</span> +<span class="normal">819</span> +<span class="normal">820</span> +<span class="normal">821</span> +<span class="normal">822</span> +<span class="normal">823</span> +<span class="normal">824</span> +<span class="normal">825</span> +<span class="normal">826</span> +<span class="normal">827</span> +<span class="normal">828</span> +<span class="normal">829</span> +<span class="normal">830</span> +<span class="normal">831</span> +<span class="normal">832</span> +<span class="normal">833</span> +<span class="normal">834</span> +<span class="normal">835</span> +<span class="normal">836</span> +<span class="normal">837</span> +<span class="normal">838</span> +<span class="normal">839</span> +<span class="normal">840</span> +<span class="normal">841</span> +<span class="normal">842</span> +<span class="normal">843</span> +<span class="normal">844</span> +<span class="normal">845</span> +<span class="normal">846</span> +<span class="normal">847</span> +<span class="normal">848</span> +<span class="normal">849</span> +<span class="normal">850</span> +<span class="normal">851</span> +<span class="normal">852</span> +<span class="normal">853</span> +<span class="normal">854</span> +<span class="normal">855</span> +<span class="normal">856</span> +<span class="normal">857</span> +<span class="normal">858</span> +<span class="normal">859</span> +<span class="normal">860</span> +<span class="normal">861</span> +<span class="normal">862</span> +<span class="normal">863</span> +<span class="normal">864</span> +<span class="normal">865</span> +<span class="normal">866</span> +<span class="normal">867</span> +<span class="normal">868</span> +<span class="normal">869</span> +<span class="normal">870</span> +<span class="normal">871</span> +<span class="normal">872</span> +<span class="normal">873</span> +<span class="normal">874</span> +<span class="normal">875</span> +<span class="normal">876</span> +<span class="normal">877</span> +<span class="normal">878</span> +<span class="normal">879</span> +<span class="normal">880</span> +<span class="normal">881</span> +<span class="normal">882</span> +<span class="normal">883</span> +<span class="normal">884</span> +<span class="normal">885</span> +<span class="normal">886</span> +<span class="normal">887</span> +<span class="normal">888</span> +<span class="normal">889</span> +<span class="normal">890</span> +<span class="normal">891</span> +<span class="normal">892</span> +<span class="normal">893</span> +<span class="normal">894</span> +<span class="normal">895</span> +<span class="normal">896</span> +<span class="normal">897</span> +<span class="normal">898</span> +<span class="normal">899</span> +<span class="normal">900</span> +<span class="normal">901</span> +<span class="normal">902</span> +<span class="normal">903</span> +<span class="normal">904</span> +<span class="normal">905</span> +<span class="normal">906</span> +<span class="normal">907</span> +<span class="normal">908</span> +<span class="normal">909</span> +<span class="normal">910</span> +<span class="normal">911</span> +<span class="normal">912</span> +<span class="normal">913</span> +<span class="normal">914</span> +<span class="normal">915</span> +<span class="normal">916</span> +<span class="normal">917</span> +<span class="normal">918</span> +<span class="normal">919</span> +<span class="normal">920</span> +<span class="normal">921</span> +<span class="normal">922</span> +<span class="normal">923</span> +<span class="normal">924</span> +<span class="normal">925</span> +<span class="normal">926</span> +<span class="normal">927</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - Image Store</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006-2008 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Claudio Saavedra <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on code by: Jens Finke <[email protected]></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 free software; you can redistribute it and/or modify</span> +<a id="line-10" name="line-10"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-11" name="line-11"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-12" name="line-12"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-13" name="line-13"></a><span class="cm"> *</span> +<a id="line-14" name="line-14"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-15" name="line-15"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-16" name="line-16"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-17" name="line-17"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-18" name="line-18"></a><span class="cm"> *</span> +<a id="line-19" name="line-19"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-20" name="line-20"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-21" name="line-21"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-22" name="line-22"></a><span class="cm"> */</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-list-store.h"</span> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-thumbnail.h"</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image.h"</span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-job-queue.h"</span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-jobs.h"</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"><string.h></span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomListStorePrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">monitors</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Monitors for the directories */</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">initial_image</span><span class="p">;</span><span class="w"> </span><span class="cm">/* The image that should be selected firstly by the view. */</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">busy_image</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Loading image icon */</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">missing_image</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Missing image icon */</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">GMutex</span><span class="w"> </span><span class="n">mutex</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Mutex for saving the jobs in the model */</span> +<a id="line-38" name="line-38"></a><span class="p">};</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="p">,</span><span class="w"> </span><span class="n">eom_list_store</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_LIST_STORE</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-43" name="line-43"></a><span class="nf">foreach_monitors_free</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-44" name="line-44"></a><span class="p">{</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">g_file_monitor_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">G_FILE_MONITOR</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-46" name="line-46"></a><span class="p">}</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-49" name="line-49"></a><span class="nf">eom_list_store_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-50" name="line-50"></a><span class="p">{</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">monitors</span><span class="p">,</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">foreach_monitors_free</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">monitors</span><span class="p">);</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">monitors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">busy_image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">busy_image</span><span class="p">);</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">busy_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="p">}</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">missing_image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">missing_image</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">missing_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="p">}</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">g_mutex_clear</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_list_store_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="p">}</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-76" name="line-76"></a><span class="nf">eom_list_store_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStoreClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-77" name="line-77"></a><span class="p">{</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_dispose</span><span class="p">;</span> +<a id="line-81" name="line-81"></a><span class="p">}</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="cm">/*</span> +<a id="line-84" name="line-84"></a><span class="cm"> Sorting functions</span> +<a id="line-85" name="line-85"></a><span class="cm">*/</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-88" name="line-88"></a><span class="nf">eom_list_store_compare_func</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">,</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">,</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-92" name="line-92"></a><span class="p">{</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">r_value</span><span class="p">;</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image_a</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">image_b</span><span class="p">;</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">a</span><span class="p">,</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image_a</span><span class="p">,</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">,</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image_b</span><span class="p">,</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">r_value</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">eom_image_get_collate_key</span><span class="w"> </span><span class="p">(</span><span class="n">image_a</span><span class="p">),</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">eom_image_get_collate_key</span><span class="w"> </span><span class="p">(</span><span class="n">image_b</span><span class="p">));</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">image_a</span><span class="p">));</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">image_b</span><span class="p">));</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">r_value</span><span class="p">;</span> +<a id="line-112" name="line-112"></a><span class="p">}</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span> +<a id="line-115" name="line-115"></a><span class="nf">eom_list_store_get_icon</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">icon_name</span><span class="p">)</span> +<a id="line-116" name="line-116"></a><span class="p">{</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">GtkIconTheme</span><span class="w"> </span><span class="o">*</span><span class="n">icon_theme</span><span class="p">;</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-120" name="line-120"></a> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">icon_theme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">();</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_load_icon</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="p">,</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMB_SIZE</span><span class="p">,</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Couldn't load icon: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="p">}</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-135" name="line-135"></a><span class="p">}</span> +<a id="line-136" name="line-136"></a> +<a id="line-137" name="line-137"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-138" name="line-138"></a><span class="nf">eom_list_store_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span> +<a id="line-139" name="line-139"></a><span class="p">{</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">GType</span><span class="w"> </span><span class="n">types</span><span class="p">[</span><span class="n">EOM_LIST_STORE_NUM_COLUMNS</span><span class="p">];</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">types</span><span class="p">[</span><span class="n">EOM_LIST_STORE_THUMBNAIL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_TYPE_PIXBUF</span><span class="p">;</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">types</span><span class="p">[</span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">types</span><span class="p">[</span><span class="n">EOM_LIST_STORE_THUMB_SET</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TYPE_BOOLEAN</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">types</span><span class="p">[</span><span class="n">EOM_LIST_STORE_EOM_JOB</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TYPE_POINTER</span><span class="p">;</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gtk_list_store_set_column_types</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_NUM_COLUMNS</span><span class="p">,</span><span class="w"> </span><span class="n">types</span><span class="p">);</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">);</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">monitors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">initial_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-154" name="line-154"></a> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">busy_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_icon</span><span class="w"> </span><span class="p">(</span><span class="s">"image-loading"</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">missing_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_icon</span><span class="w"> </span><span class="p">(</span><span class="s">"image-missing"</span><span class="p">);</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">g_mutex_init</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">gtk_tree_sortable_set_default_sort_func</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_SORTABLE</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">eom_list_store_compare_func</span><span class="p">,</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">gtk_tree_sortable_set_sort_column_id</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_SORTABLE</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID</span><span class="p">,</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">GTK_SORT_ASCENDING</span><span class="p">);</span> +<a id="line-167" name="line-167"></a><span class="p">}</span> +<a id="line-168" name="line-168"></a> +<a id="line-169" name="line-169"></a><span class="cm">/**</span> +<a id="line-170" name="line-170"></a><span class="cm"> * eom_list_store_new:</span> +<a id="line-171" name="line-171"></a><span class="cm"> *</span> +<a id="line-172" name="line-172"></a><span class="cm"> * Creates a new and empty #EomListStore.</span> +<a id="line-173" name="line-173"></a><span class="cm"> *</span> +<a id="line-174" name="line-174"></a><span class="cm"> * Returns: a newly created #EomListStore.</span> +<a id="line-175" name="line-175"></a><span class="cm"> **/</span> +<a id="line-176" name="line-176"></a><span class="n">GtkListStore</span><span class="o">*</span> +<a id="line-177" name="line-177"></a><span class="nf">eom_list_store_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-178" name="line-178"></a><span class="p">{</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_LIST_STORE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-180" name="line-180"></a><span class="p">}</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="cm">/*</span> +<a id="line-183" name="line-183"></a><span class="cm"> Searchs for a file in the store. If found and @iter_found is not NULL,</span> +<a id="line-184" name="line-184"></a><span class="cm"> then sets @iter_found to a #GtkTreeIter pointing to the file.</span> +<a id="line-185" name="line-185"></a><span class="cm"> */</span> +<a id="line-186" name="line-186"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-187" name="line-187"></a><span class="nf">is_file_in_list_store</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-188" name="line-188"></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">info_uri</span><span class="p">,</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter_found</span><span class="p">)</span> +<a id="line-190" name="line-190"></a><span class="p">{</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-196" name="line-196"></a> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_tree_model_get_iter_first</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-205" name="line-205"></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">image</span><span class="p">)</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-207" name="line-207"></a> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</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">str</span><span class="p">,</span><span class="w"> </span><span class="n">info_uri</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="o">?</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-216" name="line-216"></a> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">found</span><span class="w"> </span><span class="o">&&</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">));</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">found</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">iter_found</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="o">*</span><span class="n">iter_found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="p">}</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">found</span><span class="p">;</span> +<a id="line-225" name="line-225"></a><span class="p">}</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-228" name="line-228"></a><span class="nf">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter_found</span><span class="p">)</span> +<a id="line-231" name="line-231"></a><span class="p">{</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri_str</span><span class="p">;</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">uri_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-236" name="line-236"></a> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">is_file_in_list_store</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">uri_str</span><span class="p">,</span><span class="w"> </span><span class="n">iter_found</span><span class="p">);</span> +<a id="line-238" name="line-238"></a> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri_str</span><span class="p">);</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-242" name="line-242"></a><span class="p">}</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-245" name="line-245"></a><span class="nf">eom_job_thumbnail_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobThumbnail</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-246" name="line-246"></a><span class="p">{</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">;</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-250" name="line-250"></a><span class="hll"><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnail</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'thumbnail' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'thumbnail' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-252" name="line-252"></a> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-254" name="line-254"></a> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-256" name="line-256"></a> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-263" name="line-263"></a> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">eom_image_set_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="cm">/* Getting the thumbnail, in case it needed</span> +<a id="line-268" name="line-268"></a><span class="cm"> * transformations */</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">missing_image</span><span class="p">);</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">}</span> +<a id="line-273" name="line-273"></a> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMBNAIL</span><span class="p">,</span><span class="w"> </span><span class="n">thumbnail</span><span class="p">,</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMB_SET</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_JOB</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="p">}</span> +<a id="line-282" name="line-282"></a> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-284" name="line-284"></a><span class="p">}</span> +<a id="line-285" name="line-285"></a> +<a id="line-286" name="line-286"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-287" name="line-287"></a><span class="nf">on_image_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">)</span> +<a id="line-288" name="line-288"></a><span class="p">{</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span> +<a id="line-292" name="line-292"></a> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_pos_by_image</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">pos</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-295" name="line-295"></a> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">gtk_tree_model_get_iter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">eom_list_store_thumbnail_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-299" name="line-299"></a><span class="p">}</span> +<a id="line-300" name="line-300"></a> +<a id="line-301" name="line-301"></a><span class="cm">/**</span> +<a id="line-302" name="line-302"></a><span class="cm"> * eom_list_store_remove:</span> +<a id="line-303" name="line-303"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-304" name="line-304"></a><span class="cm"> * @iter: A #GtkTreeIter.</span> +<a id="line-305" name="line-305"></a><span class="cm"> *</span> +<a id="line-306" name="line-306"></a><span class="cm"> * Removes the image pointed by @iter from @store.</span> +<a id="line-307" name="line-307"></a><span class="cm"> **/</span> +<a id="line-308" name="line-308"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-309" name="line-309"></a><span class="nf">eom_list_store_remove</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">)</span> +<a id="line-310" name="line-310"></a><span class="p">{</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-316" name="line-316"></a> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">on_image_changed</span><span class="p">,</span><span class="w"> </span><span class="n">store</span><span class="p">);</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">gtk_list_store_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span> +<a id="line-321" name="line-321"></a><span class="p">}</span> +<a id="line-322" name="line-322"></a> +<a id="line-323" name="line-323"></a><span class="cm">/**</span> +<a id="line-324" name="line-324"></a><span class="cm"> * eom_list_store_append_image:</span> +<a id="line-325" name="line-325"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-326" name="line-326"></a><span class="cm"> * @image: An #EomImage.</span> +<a id="line-327" name="line-327"></a><span class="cm"> *</span> +<a id="line-328" name="line-328"></a><span class="cm"> * Adds an #EomImage to @store. The thumbnail of the image is not</span> +<a id="line-329" name="line-329"></a><span class="cm"> * loaded and will only be loaded if the thumbnail is made visible</span> +<a id="line-330" name="line-330"></a><span class="cm"> * or eom_list_store_set_thumbnail() is called.</span> +<a id="line-331" name="line-331"></a><span class="cm"> *</span> +<a id="line-332" name="line-332"></a><span class="cm"> **/</span> +<a id="line-333" name="line-333"></a><span class="kt">void</span> +<a id="line-334" name="line-334"></a><span class="nf">eom_list_store_append_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-335" name="line-335"></a><span class="p">{</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-337" name="line-337"></a> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_image_changed</span><span class="p">),</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">store</span><span class="p">);</span> +<a id="line-341" name="line-341"></a> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">,</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMBNAIL</span><span class="p">,</span><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">busy_image</span><span class="p">,</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMB_SET</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-348" name="line-348"></a><span class="p">}</span> +<a id="line-349" name="line-349"></a> +<a id="line-350" name="line-350"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-351" name="line-351"></a><span class="nf">eom_list_store_append_image_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span> +<a id="line-353" name="line-353"></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">caption</span><span class="p">)</span> +<a id="line-354" name="line-354"></a><span class="p">{</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-356" name="line-356"></a> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">));</span> +<a id="line-358" name="line-358"></a> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_new_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">caption</span><span class="p">);</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">eom_list_store_append_image</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="p">}</span> +<a id="line-363" name="line-363"></a> +<a id="line-364" name="line-364"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-365" name="line-365"></a><span class="nf">file_monitor_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GFileMonitor</span><span class="w"> </span><span class="o">*</span><span class="n">monitor</span><span class="p">,</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">other_file</span><span class="p">,</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">GFileMonitorEvent</span><span class="w"> </span><span class="n">event</span><span class="p">,</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">)</span> +<a id="line-370" name="line-370"></a><span class="p">{</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mimetype</span><span class="p">;</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-375" name="line-375"></a> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT</span><span class="p">:</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="w"> </span><span class="s">","</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</span><span class="p">,</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="p">}</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">mimetype</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-386" name="line-386"></a> +<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">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</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">eom_image_is_supported_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">mimetype</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">eom_image_file_changed</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">eom_list_store_thumbnail_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">eom_list_store_remove</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="p">}</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_is_supported_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">mimetype</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-400" name="line-400"></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">caption</span><span class="p">;</span> +<a id="line-401" name="line-401"></a> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">eom_list_store_append_image_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">caption</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="p">}</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="p">}</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_DELETED</span><span class="p">:</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-413" name="line-413"></a> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">eom_list_store_remove</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="p">}</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_CREATED</span><span class="p">:</span> +<a id="line-418" name="line-418"></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_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="w"> </span><span class="s">","</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</span><span class="p">,</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="p">}</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">mimetype</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-427" name="line-427"></a> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_is_supported_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">mimetype</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-429" name="line-429"></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">caption</span><span class="p">;</span> +<a id="line-430" name="line-430"></a> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">eom_list_store_append_image_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">caption</span><span class="p">);</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="p">}</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="p">}</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED</span><span class="p">:</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-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">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="p">}</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">mimetype</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">eom_image_is_supported_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">mimetype</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">eom_list_store_thumbnail_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="p">}</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="p">}</span> +<a id="line-454" name="line-454"></a><span class="p">}</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="cm">/*</span> +<a id="line-457" name="line-457"></a><span class="cm"> * Called for each file in a directory. Checks if the file is some</span> +<a id="line-458" name="line-458"></a><span class="cm"> * sort of image. If so, it creates an image object and adds it to the</span> +<a id="line-459" name="line-459"></a><span class="cm"> * list.</span> +<a id="line-460" name="line-460"></a><span class="cm"> */</span> +<a id="line-461" name="line-461"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-462" name="line-462"></a><span class="nf">directory_visit</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">directory</span><span class="p">,</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">children_info</span><span class="p">,</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">)</span> +<a id="line-465" name="line-465"></a><span class="p">{</span> +<a id="line-466" name="line-466"></a><span class="hll"><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">child</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'child' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'child' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">load_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-469" name="line-469"></a> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">mime_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">children_info</span><span class="p">);</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">children_info</span><span class="p">);</span> +<a id="line-472" name="line-472"></a> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_str_has_prefix</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"."</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="cm">/* We support opening any image type, so let eom to add any images in the current directory to the store */</span> +<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">g_content_type_is_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">,</span><span class="w"> </span><span class="s">"image/*"</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">eom_image_is_supported_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">load_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="p">}</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">}</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">load_uri</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-481" name="line-481"></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">caption</span><span class="p">;</span> +<a id="line-482" name="line-482"></a> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">directory</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">children_info</span><span class="p">);</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">eom_list_store_append_image_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="n">caption</span><span class="p">);</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="p">}</span> +<a id="line-487" name="line-487"></a><span class="p">}</span> +<a id="line-488" name="line-488"></a> +<a id="line-489" name="line-489"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-490" name="line-490"></a><span class="nf">eom_list_store_append_directory</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">GFileType</span><span class="w"> </span><span class="n">file_type</span><span class="p">)</span> +<a id="line-493" name="line-493"></a><span class="p">{</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">GFileMonitor</span><span class="w"> </span><span class="o">*</span><span class="n">file_monitor</span><span class="p">;</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">GFileEnumerator</span><span class="w"> </span><span class="o">*</span><span class="n">file_enumerator</span><span class="p">;</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-497" name="line-497"></a> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_DIRECTORY</span><span class="p">);</span> +<a id="line-499" name="line-499"></a> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">file_monitor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_monitor_directory</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-502" name="line-502"></a> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_monitor</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">file_monitor</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">file_monitor_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">store</span><span class="p">);</span> +<a id="line-506" name="line-506"></a> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="cm">/* prepend seems more efficient to me, we don't need this list</span> +<a id="line-508" name="line-508"></a><span class="cm"> to be sorted */</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">monitors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">monitors</span><span class="p">,</span><span class="w"> </span><span class="n">file_monitor</span><span class="p">);</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="p">}</span> +<a id="line-511" name="line-511"></a> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">file_enumerator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_enumerate_children</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="w"> </span><span class="s">","</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</span><span class="w"> </span><span class="s">","</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_NAME</span><span class="p">,</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_enumerator_next_file</span><span class="w"> </span><span class="p">(</span><span class="n">file_enumerator</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-518" name="line-518"></a> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="p">{</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">directory_visit</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">file_info</span><span class="p">,</span><span class="w"> </span><span class="n">store</span><span class="p">);</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_enumerator_next_file</span><span class="w"> </span><span class="p">(</span><span class="n">file_enumerator</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="p">}</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_enumerator</span><span class="p">);</span> +<a id="line-526" name="line-526"></a><span class="p">}</span> +<a id="line-527" name="line-527"></a> +<a id="line-528" name="line-528"></a><span class="cm">/**</span> +<a id="line-529" name="line-529"></a><span class="cm"> * eom_list_store_add_files:</span> +<a id="line-530" name="line-530"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-531" name="line-531"></a><span class="cm"> * @file_list: (element-type GFile): A %NULL-terminated list of #GFile's.</span> +<a id="line-532" name="line-532"></a><span class="cm"> *</span> +<a id="line-533" name="line-533"></a><span class="cm"> * Adds a list of #GFile's to @store. The given list</span> +<a id="line-534" name="line-534"></a><span class="cm"> * must be %NULL-terminated.</span> +<a id="line-535" name="line-535"></a><span class="cm"> *</span> +<a id="line-536" name="line-536"></a><span class="cm"> * If any of the #GFile's in @file_list is a directory, all the images</span> +<a id="line-537" name="line-537"></a><span class="cm"> * in that directory will be added to @store. If the list of files contains</span> +<a id="line-538" name="line-538"></a><span class="cm"> * only one file and this is a regular file, then all the images in the same</span> +<a id="line-539" name="line-539"></a><span class="cm"> * directory will be added as well to @store.</span> +<a id="line-540" name="line-540"></a><span class="cm"> *</span> +<a id="line-541" name="line-541"></a><span class="cm"> **/</span> +<a id="line-542" name="line-542"></a><span class="kt">void</span> +<a id="line-543" name="line-543"></a><span class="nf">eom_list_store_add_files</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">)</span> +<a id="line-544" name="line-544"></a><span class="p">{</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-546" name="line-546"></a><span class="hll"><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'file_info' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'file_info' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">GFileType</span><span class="w"> </span><span class="n">file_type</span><span class="p">;</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">initial_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-550" name="line-550"></a> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="p">}</span> +<a id="line-554" name="line-554"></a> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">gtk_tree_sortable_set_sort_column_id</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_SORTABLE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID</span><span class="p">,</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">GTK_SORT_ASCENDING</span><span class="p">);</span> +<a id="line-558" name="line-558"></a> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_list</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-562" name="line-562"></a> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_TYPE</span><span class="s">","</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="s">","</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</span><span class="p">,</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="p">}</span> +<a id="line-571" name="line-571"></a> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">caption</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">g_file_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">));</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">file_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_file_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-574" name="line-574"></a> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="cm">/* Workaround for gvfs backends that don't set the GFileType. */</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">file_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_UNKNOWN</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-577" name="line-577"></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">ctype</span><span class="p">;</span> +<a id="line-578" name="line-578"></a> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">ctype</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-580" name="line-580"></a> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="cm">/* If the content type is supported adjust file_type */</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_is_supported_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">ctype</span><span class="p">))</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">file_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_FILE_TYPE_REGULAR</span><span class="p">;</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="p">}</span> +<a id="line-585" name="line-585"></a> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-587" name="line-587"></a> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_DIRECTORY</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">eom_list_store_append_directory</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">file_type</span><span class="p">);</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_REGULAR</span><span class="w"> </span><span class="o">&&</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-592" name="line-592"></a> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">initial_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_dup</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-594" name="line-594"></a> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_TYPE</span><span class="p">,</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-599" name="line-599"></a> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="cm">/* If we can't get a file_info,</span> +<a id="line-601" name="line-601"></a><span class="cm"> file_type will stay as G_FILE_TYPE_REGULAR */</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">file_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_file_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="p">}</span> +<a id="line-606" name="line-606"></a> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_DIRECTORY</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">eom_list_store_append_directory</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">file_type</span><span class="p">);</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">initial_file</span><span class="p">,</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">eom_list_store_append_image_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">initial_file</span><span class="p">,</span><span class="w"> </span><span class="n">caption</span><span class="p">);</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="p">}</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">eom_list_store_append_image_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">initial_file</span><span class="p">,</span><span class="w"> </span><span class="n">caption</span><span class="p">);</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="p">}</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_REGULAR</span><span class="w"> </span><span class="o">&&</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">eom_list_store_append_image_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">caption</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="p">}</span> +<a id="line-623" name="line-623"></a> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">caption</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="p">}</span> +<a id="line-626" name="line-626"></a> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">gtk_tree_sortable_set_sort_column_id</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_SORTABLE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID</span><span class="p">,</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">GTK_SORT_ASCENDING</span><span class="p">);</span> +<a id="line-630" name="line-630"></a> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">initial_file</span><span class="w"> </span><span class="o">&&</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">initial_file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">initial_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_pos_by_iter</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">initial_file</span><span class="p">);</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">initial_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="p">}</span> +<a id="line-638" name="line-638"></a><span class="p">}</span> +<a id="line-639" name="line-639"></a> +<a id="line-640" name="line-640"></a><span class="cm">/**</span> +<a id="line-641" name="line-641"></a><span class="cm"> * eom_list_store_remove_image:</span> +<a id="line-642" name="line-642"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-643" name="line-643"></a><span class="cm"> * @image: An #EomImage.</span> +<a id="line-644" name="line-644"></a><span class="cm"> *</span> +<a id="line-645" name="line-645"></a><span class="cm"> * Removes @image from @store.</span> +<a id="line-646" name="line-646"></a><span class="cm"> **/</span> +<a id="line-647" name="line-647"></a><span class="kt">void</span> +<a id="line-648" name="line-648"></a><span class="nf">eom_list_store_remove_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-649" name="line-649"></a><span class="p">{</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-652" name="line-652"></a> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">));</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-655" name="line-655"></a> +<a id="line-656" name="line-656"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">eom_list_store_remove</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="p">}</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-662" name="line-662"></a><span class="p">}</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="cm">/**</span> +<a id="line-665" name="line-665"></a><span class="cm"> * eom_list_store_new_from_glist:</span> +<a id="line-666" name="line-666"></a><span class="cm"> * @list: (element-type EomImage): a %NULL-terminated list of #EomImage's.</span> +<a id="line-667" name="line-667"></a><span class="cm"> *</span> +<a id="line-668" name="line-668"></a><span class="cm"> * Creates a new #EomListStore from a list of #EomImage's.</span> +<a id="line-669" name="line-669"></a><span class="cm"> * The given list must be %NULL-terminated.</span> +<a id="line-670" name="line-670"></a><span class="cm"> *</span> +<a id="line-671" name="line-671"></a><span class="cm"> * Returns: a new #EomListStore.</span> +<a id="line-672" name="line-672"></a><span class="cm"> **/</span> +<a id="line-673" name="line-673"></a><span class="n">GtkListStore</span><span class="w"> </span><span class="o">*</span> +<a id="line-674" name="line-674"></a><span class="nf">eom_list_store_new_from_glist</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">list</span><span class="p">)</span> +<a id="line-675" name="line-675"></a><span class="p">{</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-677" name="line-677"></a> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-679" name="line-679"></a> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">eom_list_store_append_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">));</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="p">}</span> +<a id="line-684" name="line-684"></a> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">store</span><span class="p">;</span> +<a id="line-686" name="line-686"></a><span class="p">}</span> +<a id="line-687" name="line-687"></a> +<a id="line-688" name="line-688"></a><span class="cm">/**</span> +<a id="line-689" name="line-689"></a><span class="cm"> * eom_list_store_get_pos_by_image:</span> +<a id="line-690" name="line-690"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-691" name="line-691"></a><span class="cm"> * @image: An #EomImage.</span> +<a id="line-692" name="line-692"></a><span class="cm"> *</span> +<a id="line-693" name="line-693"></a><span class="cm"> * Gets the position where @image is stored in @store. If @image</span> +<a id="line-694" name="line-694"></a><span class="cm"> * is not stored in @store, -1 is returned.</span> +<a id="line-695" name="line-695"></a><span class="cm"> *</span> +<a id="line-696" name="line-696"></a><span class="cm"> * Returns: the position of @image in @store or -1 if not found.</span> +<a id="line-697" name="line-697"></a><span class="cm"> **/</span> +<a id="line-698" name="line-698"></a><span class="n">gint</span> +<a id="line-699" name="line-699"></a><span class="nf">eom_list_store_get_pos_by_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-700" name="line-700"></a><span class="p">{</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-704" name="line-704"></a> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-707" name="line-707"></a> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-709" name="line-709"></a> +<a id="line-710" name="line-710"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_file_in_list_store_file</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_pos_by_iter</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="p">}</span> +<a id="line-713" name="line-713"></a> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span> +<a id="line-716" name="line-716"></a><span class="p">}</span> +<a id="line-717" name="line-717"></a> +<a id="line-718" name="line-718"></a><span class="cm">/**</span> +<a id="line-719" name="line-719"></a><span class="cm"> * eom_list_store_get_image_by_pos:</span> +<a id="line-720" name="line-720"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-721" name="line-721"></a><span class="cm"> * @pos: the position of the required #EomImage.</span> +<a id="line-722" name="line-722"></a><span class="cm"> *</span> +<a id="line-723" name="line-723"></a><span class="cm"> * Gets the #EomImage in the position @pos of @store. If there is</span> +<a id="line-724" name="line-724"></a><span class="cm"> * no image at position @pos, %NULL is returned.</span> +<a id="line-725" name="line-725"></a><span class="cm"> *</span> +<a id="line-726" name="line-726"></a><span class="cm"> * Returns: (transfer full): the #EomImage in position @pos or %NULL.</span> +<a id="line-727" name="line-727"></a><span class="cm"> *</span> +<a id="line-728" name="line-728"></a><span class="cm"> **/</span> +<a id="line-729" name="line-729"></a><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span> +<a id="line-730" name="line-730"></a><span class="nf">eom_list_store_get_image_by_pos</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pos</span><span class="p">)</span> +<a id="line-731" name="line-731"></a><span class="p">{</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-734" name="line-734"></a> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-736" name="line-736"></a> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_model_iter_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pos</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="p">}</span> +<a id="line-742" name="line-742"></a> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-744" name="line-744"></a><span class="p">}</span> +<a id="line-745" name="line-745"></a> +<a id="line-746" name="line-746"></a><span class="cm">/**</span> +<a id="line-747" name="line-747"></a><span class="cm"> * eom_list_store_get_pos_by_iter:</span> +<a id="line-748" name="line-748"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-749" name="line-749"></a><span class="cm"> * @iter: A #GtkTreeIter pointing to an image in @store.</span> +<a id="line-750" name="line-750"></a><span class="cm"> *</span> +<a id="line-751" name="line-751"></a><span class="cm"> * Gets the position of the image pointed by @iter.</span> +<a id="line-752" name="line-752"></a><span class="cm"> *</span> +<a id="line-753" name="line-753"></a><span class="cm"> * Returns: The position of the image pointed by @iter.</span> +<a id="line-754" name="line-754"></a><span class="cm"> **/</span> +<a id="line-755" name="line-755"></a><span class="n">gint</span> +<a id="line-756" name="line-756"></a><span class="nf">eom_list_store_get_pos_by_iter</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">)</span> +<a id="line-758" name="line-758"></a><span class="p">{</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">indices</span><span class="p">;</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span> +<a id="line-762" name="line-762"></a> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">indices</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_get_indices</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">indices</span><span class="w"> </span><span class="p">[</span><span class="mi">0</span><span class="p">];</span> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-767" name="line-767"></a> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span> +<a id="line-769" name="line-769"></a><span class="p">}</span> +<a id="line-770" name="line-770"></a> +<a id="line-771" name="line-771"></a><span class="cm">/**</span> +<a id="line-772" name="line-772"></a><span class="cm"> * eom_list_store_length:</span> +<a id="line-773" name="line-773"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-774" name="line-774"></a><span class="cm"> *</span> +<a id="line-775" name="line-775"></a><span class="cm"> * Returns the number of images in the store.</span> +<a id="line-776" name="line-776"></a><span class="cm"> *</span> +<a id="line-777" name="line-777"></a><span class="cm"> * Returns: The number of images in @store.</span> +<a id="line-778" name="line-778"></a><span class="cm"> **/</span> +<a id="line-779" name="line-779"></a><span class="n">gint</span> +<a id="line-780" name="line-780"></a><span class="nf">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">)</span> +<a id="line-781" name="line-781"></a><span class="p">{</span> +<a id="line-782" name="line-782"></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">EOM_IS_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-783" name="line-783"></a> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gtk_tree_model_iter_n_children</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-785" name="line-785"></a><span class="p">}</span> +<a id="line-786" name="line-786"></a> +<a id="line-787" name="line-787"></a><span class="cm">/**</span> +<a id="line-788" name="line-788"></a><span class="cm"> * eom_list_store_get_initial_pos:</span> +<a id="line-789" name="line-789"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-790" name="line-790"></a><span class="cm"> *</span> +<a id="line-791" name="line-791"></a><span class="cm"> * Gets the position of the #EomImage that should be loaded first.</span> +<a id="line-792" name="line-792"></a><span class="cm"> * If not set, it returns -1.</span> +<a id="line-793" name="line-793"></a><span class="cm"> *</span> +<a id="line-794" name="line-794"></a><span class="cm"> * Returns: the position of the image to be loaded first or -1.</span> +<a id="line-795" name="line-795"></a><span class="cm"> *</span> +<a id="line-796" name="line-796"></a><span class="cm"> **/</span> +<a id="line-797" name="line-797"></a><span class="n">gint</span> +<a id="line-798" name="line-798"></a><span class="nf">eom_list_store_get_initial_pos</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">)</span> +<a id="line-799" name="line-799"></a><span class="p">{</span> +<a id="line-800" name="line-800"></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">EOM_IS_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-801" name="line-801"></a> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">initial_image</span><span class="p">;</span> +<a id="line-803" name="line-803"></a><span class="p">}</span> +<a id="line-804" name="line-804"></a> +<a id="line-805" name="line-805"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-806" name="line-806"></a><span class="nf">eom_list_store_remove_thumbnail_job</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">)</span> +<a id="line-808" name="line-808"></a><span class="p">{</span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-810" name="line-810"></a> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_JOB</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">job</span><span class="p">,</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-814" name="line-814"></a> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">eom_job_queue_remove_job</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_JOB</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="p">}</span> +<a id="line-823" name="line-823"></a> +<a id="line-824" name="line-824"></a><span class="p">}</span> +<a id="line-825" name="line-825"></a> +<a id="line-826" name="line-826"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-827" name="line-827"></a><span class="nf">eom_list_store_add_thumbnail_job</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">)</span> +<a id="line-828" name="line-828"></a><span class="p">{</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-831" name="line-831"></a> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_JOB</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">job</span><span class="p">,</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-836" name="line-836"></a> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="p">}</span> +<a id="line-841" name="line-841"></a> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_thumbnail_new</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-843" name="line-843"></a> +<a id="line-844" name="line-844"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_thumbnail_cb</span><span class="p">),</span> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">store</span><span class="p">);</span> +<a id="line-848" name="line-848"></a> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_JOB</span><span class="p">,</span><span class="w"> </span><span class="n">job</span><span class="p">,</span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mutex</span><span class="p">);</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-857" name="line-857"></a><span class="p">}</span> +<a id="line-858" name="line-858"></a> +<a id="line-859" name="line-859"></a><span class="cm">/**</span> +<a id="line-860" name="line-860"></a><span class="cm"> * eom_list_store_thumbnail_set:</span> +<a id="line-861" name="line-861"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-862" name="line-862"></a><span class="cm"> * @iter: A #GtkTreeIter pointing to an image in @store.</span> +<a id="line-863" name="line-863"></a><span class="cm"> *</span> +<a id="line-864" name="line-864"></a><span class="cm"> * Sets the thumbnail for the image pointed by @iter.</span> +<a id="line-865" name="line-865"></a><span class="cm"> *</span> +<a id="line-866" name="line-866"></a><span class="cm"> **/</span> +<a id="line-867" name="line-867"></a><span class="kt">void</span> +<a id="line-868" name="line-868"></a><span class="nf">eom_list_store_thumbnail_set</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">)</span> +<a id="line-870" name="line-870"></a><span class="p">{</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">thumb_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-872" name="line-872"></a> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMB_SET</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">thumb_set</span><span class="p">,</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-876" name="line-876"></a> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_set</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="p">}</span> +<a id="line-880" name="line-880"></a> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">eom_list_store_add_thumbnail_job</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span> +<a id="line-882" name="line-882"></a><span class="p">}</span> +<a id="line-883" name="line-883"></a> +<a id="line-884" name="line-884"></a><span class="cm">/**</span> +<a id="line-885" name="line-885"></a><span class="cm"> * eom_list_store_thumbnail_unset:</span> +<a id="line-886" name="line-886"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-887" name="line-887"></a><span class="cm"> * @iter: A #GtkTreeIter pointing to an image in @store.</span> +<a id="line-888" name="line-888"></a><span class="cm"> *</span> +<a id="line-889" name="line-889"></a><span class="cm"> * Unsets the thumbnail for the image pointed by @iter, changing</span> +<a id="line-890" name="line-890"></a><span class="cm"> * it to a "busy" icon.</span> +<a id="line-891" name="line-891"></a><span class="cm"> *</span> +<a id="line-892" name="line-892"></a><span class="cm"> **/</span> +<a id="line-893" name="line-893"></a><span class="kt">void</span> +<a id="line-894" name="line-894"></a><span class="nf">eom_list_store_thumbnail_unset</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">)</span> +<a id="line-896" name="line-896"></a><span class="p">{</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-898" name="line-898"></a> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">eom_list_store_remove_thumbnail_job</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span> +<a id="line-900" name="line-900"></a> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">eom_image_set_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-906" name="line-906"></a> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMBNAIL</span><span class="p">,</span><span class="w"> </span><span class="n">store</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">busy_image</span><span class="p">,</span> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMB_SET</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-911" name="line-911"></a><span class="p">}</span> +<a id="line-912" name="line-912"></a> +<a id="line-913" name="line-913"></a><span class="cm">/**</span> +<a id="line-914" name="line-914"></a><span class="cm"> * eom_list_store_thumbnail_refresh:</span> +<a id="line-915" name="line-915"></a><span class="cm"> * @store: An #EomListStore.</span> +<a id="line-916" name="line-916"></a><span class="cm"> * @iter: A #GtkTreeIter pointing to an image in @store.</span> +<a id="line-917" name="line-917"></a><span class="cm"> *</span> +<a id="line-918" name="line-918"></a><span class="cm"> * Refreshes the thumbnail for the image pointed by @iter.</span> +<a id="line-919" name="line-919"></a><span class="cm"> *</span> +<a id="line-920" name="line-920"></a><span class="cm"> **/</span> +<a id="line-921" name="line-921"></a><span class="kt">void</span> +<a id="line-922" name="line-922"></a><span class="nf">eom_list_store_thumbnail_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">)</span> +<a id="line-924" name="line-924"></a><span class="p">{</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">eom_list_store_remove_thumbnail_job</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">eom_list_store_add_thumbnail_job</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span> +<a id="line-927" name="line-927"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/15.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/15.html new file mode 100644 index 0000000..ac094b4 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/15.html @@ -0,0 +1,1603 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-metadata-details.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-metadata-details.c</p> +<a href="15.html#line-208"> unknownMacro 208</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - EOM Metadata Details</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-8" name="line-8"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-9" name="line-9"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-10" name="line-10"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-15" name="line-15"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-19" name="line-19"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-24" name="line-24"></a><span class="cp">#endif</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">"eom-metadata-details.h"</span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-entry.h></span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-utils.h></span> +<a id="line-32" name="line-32"></a><span class="cp">#endif</span> +<a id="line-33" name="line-33"></a><span class="cp">#if HAVE_EXEMPI</span> +<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><exempi/xmp.h></span> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><exempi/xmpconsts.h></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="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></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"><string.h></span> +<a id="line-42" name="line-42"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">,</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">,</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">,</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">EXIF_CATEGORY_GPS_DATA</span><span class="p">,</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">EXIF_CATEGORY_MAKER_NOTE</span><span class="p">,</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">,</span> +<a id="line-51" name="line-51"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">XMP_CATEGORY_EXIF</span><span class="p">,</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">XMP_CATEGORY_IPTC</span><span class="p">,</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">XMP_CATEGORY_RIGHTS</span><span class="p">,</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">XMP_CATEGORY_OTHER</span> +<a id="line-56" name="line-56"></a><span class="cp">#endif</span> +<a id="line-57" name="line-57"></a><span class="p">}</span><span class="w"> </span><span class="n">MetadataCategory</span><span class="p">;</span> +<a id="line-58" name="line-58"></a> +<a id="line-59" name="line-59"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="p">}</span><span class="w"> </span><span class="n">ExifCategoryInfo</span><span class="p">;</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">ExifCategoryInfo</span><span class="w"> </span><span class="n">exif_categories</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Camera"</span><span class="p">),</span><span class="w"> </span><span class="s">"0"</span><span class="w"> </span><span class="p">},</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Image Data"</span><span class="p">),</span><span class="w"> </span><span class="s">"1"</span><span class="w"> </span><span class="p">},</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Image Taking Conditions"</span><span class="p">),</span><span class="w"> </span><span class="s">"2"</span><span class="w"> </span><span class="p">},</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"GPS Data"</span><span class="p">),</span><span class="w"> </span><span class="s">"3"</span><span class="w"> </span><span class="p">},</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Maker Note"</span><span class="p">),</span><span class="w"> </span><span class="s">"4"</span><span class="w"> </span><span class="p">},</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Other"</span><span class="p">),</span><span class="w"> </span><span class="s">"5"</span><span class="w"> </span><span class="p">},</span> +<a id="line-71" name="line-71"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"XMP Exif"</span><span class="p">),</span><span class="w"> </span><span class="s">"6"</span><span class="w"> </span><span class="p">},</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"XMP IPTC"</span><span class="p">),</span><span class="w"> </span><span class="s">"7"</span><span class="w"> </span><span class="p">},</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"XMP Rights Management"</span><span class="p">),</span><span class="w"> </span><span class="s">"8"</span><span class="w"> </span><span class="p">},</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"XMP Other"</span><span class="p">),</span><span class="w"> </span><span class="s">"9"</span><span class="w"> </span><span class="p">},</span> +<a id="line-76" name="line-76"></a><span class="cp">#endif</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">}</span> +<a id="line-78" name="line-78"></a><span class="p">};</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">id</span><span class="p">;</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">MetadataCategory</span><span class="w"> </span><span class="n">category</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="p">}</span><span class="w"> </span><span class="n">ExifTagCategory</span><span class="p">;</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-86" name="line-86"></a><span class="k">static</span><span class="w"> </span><span class="n">ExifTagCategory</span><span class="w"> </span><span class="n">exif_tag_category_map</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_INTEROPERABILITY_INDEX</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_INTEROPERABILITY_VERSION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_IMAGE_WIDTH</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_IMAGE_LENGTH</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_BITS_PER_SAMPLE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="w"> </span><span class="p">},</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_COMPRESSION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_PHOTOMETRIC_INTERPRETATION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FILL_ORDER</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_DOCUMENT_NAME</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_IMAGE_DESCRIPTION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_MAKE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_MODEL</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_STRIP_OFFSETS</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_ORIENTATION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SAMPLES_PER_PIXEL</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_ROWS_PER_STRIP</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_STRIP_BYTE_COUNTS</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_X_RESOLUTION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_Y_RESOLUTION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_PLANAR_CONFIGURATION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_RESOLUTION_UNIT</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_TRANSFER_FUNCTION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SOFTWARE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_ARTIST</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_WHITE_POINT</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_PRIMARY_CHROMATICITIES</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_TRANSFER_RANGE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_JPEG_PROC</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_JPEG_INTERCHANGE_FORMAT</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_JPEG_INTERCHANGE_FORMAT_LENGTH</span><span class="p">,</span><span class="w"> </span><span class="p">},</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_YCBCR_COEFFICIENTS</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_YCBCR_SUB_SAMPLING</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_YCBCR_POSITIONING</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_REFERENCE_BLACK_WHITE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_RELATED_IMAGE_FILE_FORMAT</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_RELATED_IMAGE_WIDTH</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_RELATED_IMAGE_LENGTH</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_CFA_REPEAT_PATTERN_DIM</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_CFA_PATTERN</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_BATTERY_LEVEL</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_COPYRIGHT</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_EXPOSURE_TIME</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FNUMBER</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_IPTC_NAA</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_EXIF_IFD_POINTER</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_INTER_COLOR_PROFILE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_EXPOSURE_PROGRAM</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SPECTRAL_SENSITIVITY</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_GPS_INFO_IFD_POINTER</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_ISO_SPEED_RATINGS</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_OECF</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_EXIF_VERSION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_ORIGINAL</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_DIGITIZED</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_COMPONENTS_CONFIGURATION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_COMPRESSED_BITS_PER_PIXEL</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SHUTTER_SPEED_VALUE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_APERTURE_VALUE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_BRIGHTNESS_VALUE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_EXPOSURE_BIAS_VALUE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_MAX_APERTURE_VALUE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SUBJECT_DISTANCE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_METERING_MODE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_LIGHT_SOURCE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FLASH</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FOCAL_LENGTH</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SUBJECT_AREA</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_MAKER_NOTE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_USER_COMMENT</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SUBSEC_TIME</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SUB_SEC_TIME_ORIGINAL</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SUB_SEC_TIME_DIGITIZED</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FLASH_PIX_VERSION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_COLOR_SPACE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_PIXEL_X_DIMENSION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_PIXEL_Y_DIMENSION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_RELATED_SOUND_FILE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_INTEROPERABILITY_IFD_POINTER</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FLASH_ENERGY</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="w"> </span><span class="p">},</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SPATIAL_FREQUENCY_RESPONSE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FOCAL_PLANE_X_RESOLUTION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FOCAL_PLANE_Y_RESOLUTION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FOCAL_PLANE_RESOLUTION_UNIT</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SUBJECT_LOCATION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_EXPOSURE_INDEX</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SENSING_METHOD</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FILE_SOURCE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SCENE_TYPE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_NEW_CFA_PATTERN</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_CUSTOM_RENDERED</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">},</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_EXPOSURE_MODE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_WHITE_BALANCE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_DIGITAL_ZOOM_RATIO</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_FOCAL_LENGTH_IN_35MM_FILM</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SCENE_CAPTURE_TYPE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_GAIN_CONTROL</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_CONTRAST</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SATURATION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SHARPNESS</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_DEVICE_SETTING_DESCRIPTION</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_CAMERA</span><span class="p">},</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_SUBJECT_DISTANCE_RANGE</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS</span><span class="p">},</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EXIF_TAG_IMAGE_UNIQUE_ID</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_CATEGORY_IMAGE_DATA</span><span class="p">},</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="w"> </span><span class="p">}</span> +<a id="line-191" name="line-191"></a><span class="p">};</span> +<a id="line-192" name="line-192"></a><span class="cp">#endif</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="cp">#define MODEL_COLUMN_ATTRIBUTE 0</span> +<a id="line-195" name="line-195"></a><span class="cp">#define MODEL_COLUMN_VALUE 1</span> +<a id="line-196" name="line-196"></a> +<a id="line-197" name="line-197"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomMetadataDetailsPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">id_path_hash</span><span class="p">;</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">id_path_hash_mnote</span><span class="p">;</span> +<a id="line-202" name="line-202"></a><span class="p">};</span> +<a id="line-203" name="line-203"></a> +<a id="line-204" name="line-204"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="nf">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attribute</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">);</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_metadata_details_reset</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataDetails</span><span class="w"> </span><span class="o">*</span><span class="n">exif_details</span><span class="p">);</span> +<a id="line-207" name="line-207"></a> +<a id="line-208" name="line-208"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataDetails</span><span class="p">,</span><span class="w"> </span><span class="n">eom_metadata_details</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_TREE_VIEW</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-211" name="line-211"></a><span class="n">eom_metadata_details_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-212" name="line-212"></a><span class="p">{</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">EomMetadataDetailsPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-214" name="line-214"></a> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_DETAILS</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-216" name="line-216"></a> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">);</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="p">}</span> +<a id="line-221" name="line-221"></a> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">g_hash_table_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</span><span class="p">);</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="p">}</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash_mnote</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">g_hash_table_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash_mnote</span><span class="p">);</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash_mnote</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="p">}</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_metadata_details_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="p">}</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-235" name="line-235"></a><span class="n">eom_metadata_details_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">)</span> +<a id="line-236" name="line-236"></a><span class="p">{</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">EomMetadataDetailsPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">GtkTreeViewColumn</span><span class="w"> </span><span class="o">*</span><span class="n">column</span><span class="p">;</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">GtkCellRenderer</span><span class="w"> </span><span class="o">*</span><span class="n">cell</span><span class="p">;</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">details</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_details_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">details</span><span class="p">);</span> +<a id="line-242" name="line-242"></a> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">details</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-244" name="line-244"></a> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_store_new</span><span class="w"> </span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">));</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_direct_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_direct_equal</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash_mnote</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_direct_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_direct_equal</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-248" name="line-248"></a> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="cm">/* Tag name column */</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">cell</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">column</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_view_column_new_with_attributes</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Tag"</span><span class="p">),</span><span class="w"> </span><span class="n">cell</span><span class="p">,</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="s">"text"</span><span class="p">,</span><span class="w"> </span><span class="n">MODEL_COLUMN_ATTRIBUTE</span><span class="p">,</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">gtk_tree_view_append_column</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">details</span><span class="p">),</span><span class="w"> </span><span class="n">column</span><span class="p">);</span> +<a id="line-255" name="line-255"></a> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="cm">/* Value column */</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">cell</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">cell</span><span class="p">,</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="s">"editable"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">column</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_view_column_new_with_attributes</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Value"</span><span class="p">),</span><span class="w"> </span><span class="n">cell</span><span class="p">,</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="s">"text"</span><span class="p">,</span><span class="w"> </span><span class="n">MODEL_COLUMN_VALUE</span><span class="p">,</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">gtk_tree_view_append_column</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">details</span><span class="p">),</span><span class="w"> </span><span class="n">column</span><span class="p">);</span> +<a id="line-265" name="line-265"></a> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">eom_metadata_details_reset</span><span class="w"> </span><span class="p">(</span><span class="n">details</span><span class="p">);</span> +<a id="line-267" name="line-267"></a> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">gtk_tree_view_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">details</span><span class="p">),</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">));</span> +<a id="line-270" name="line-270"></a><span class="p">}</span> +<a id="line-271" name="line-271"></a> +<a id="line-272" name="line-272"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-273" name="line-273"></a><span class="n">eom_metadata_details_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataDetailsClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-274" name="line-274"></a><span class="p">{</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-276" name="line-276"></a> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_details_dispose</span><span class="p">;</span> +<a id="line-278" name="line-278"></a><span class="p">}</span> +<a id="line-279" name="line-279"></a> +<a id="line-280" name="line-280"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-281" name="line-281"></a><span class="k">static</span><span class="w"> </span><span class="n">MetadataCategory</span> +<a id="line-282" name="line-282"></a><span class="n">get_exif_category</span><span class="w"> </span><span class="p">(</span><span class="n">ExifEntry</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="p">)</span> +<a id="line-283" name="line-283"></a><span class="p">{</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">MetadataCategory</span><span class="w"> </span><span class="n">cat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXIF_CATEGORY_OTHER</span><span class="p">;</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="cm">/* Some GPS tag IDs overlap with other ones, so check the IFD */</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exif_entry_get_ifd</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_IFD_GPS</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EXIF_CATEGORY_GPS_DATA</span><span class="p">;</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="p">}</span> +<a id="line-291" name="line-291"></a> +<a id="line-292" name="line-292"></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">exif_tag_category_map</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</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">exif_tag_category_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">entry</span><span class="o">-></span><span class="n">tag</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">cat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_tag_category_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">category</span><span class="p">;</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">}</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">}</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">cat</span><span class="p">;</span> +<a id="line-300" name="line-300"></a><span class="p">}</span> +<a id="line-301" name="line-301"></a><span class="cp">#endif</span> +<a id="line-302" name="line-302"></a> +<a id="line-303" name="line-303"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span> +<a id="line-304" name="line-304"></a><span class="n">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attribute</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span> +<a id="line-305" name="line-305"></a><span class="p">{</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">utf_attribute</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">utf_value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">iter_valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-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">attribute</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">iter_valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">}</span> +<a id="line-316" name="line-316"></a> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">iter_valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">tree_path</span><span class="p">;</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">parent_iter</span><span class="p">;</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">parent_valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-321" name="line-321"></a> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">parent_valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="o">&</span><span class="n">parent_iter</span><span class="p">,</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">parent</span><span class="p">);</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">gtk_tree_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">parent_valid</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">&</span><span class="n">parent_iter</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">tree_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-332" name="line-332"></a> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tree_path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_to_string</span><span class="w"> </span><span class="p">(</span><span class="n">tree_path</span><span class="p">);</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">tree_path</span><span class="p">);</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="p">}</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="p">}</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="p">}</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">utf_attribute</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_util_make_valid_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">attribute</span><span class="p">);</span> +<a id="line-341" name="line-341"></a> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">gtk_tree_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">MODEL_COLUMN_ATTRIBUTE</span><span class="p">,</span><span class="w"> </span><span class="n">utf_attribute</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">utf_attribute</span><span class="p">);</span> +<a id="line-344" name="line-344"></a> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">utf_value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_util_make_valid_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">gtk_tree_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">MODEL_COLUMN_VALUE</span><span class="p">,</span><span class="w"> </span><span class="n">utf_value</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">utf_value</span><span class="p">);</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="p">}</span> +<a id="line-350" name="line-350"></a> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">path</span><span class="p">;</span> +<a id="line-352" name="line-352"></a><span class="p">}</span> +<a id="line-353" name="line-353"></a> +<a id="line-354" name="line-354"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-355" name="line-355"></a> +<a id="line-356" name="line-356"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-357" name="line-357"></a><span class="n">eom_exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">ExifEntry</span><span class="w"> </span><span class="o">*</span><span class="n">e</span><span class="p">,</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_buf</span><span class="p">)</span> +<a id="line-360" name="line-360"></a><span class="p">{</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">ExifByteOrder</span><span class="w"> </span><span class="n">bo</span><span class="p">;</span> +<a id="line-362" name="line-362"></a> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="cm">/* For now we only want to reformat some GPS values */</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">exif_entry_get_ifd</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EXIF_IFD_GPS</span><span class="p">))</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">);</span> +<a id="line-366" name="line-366"></a> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">bo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_byte_order</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="o">-></span><span class="n">parent</span><span class="o">-></span><span class="n">parent</span><span class="p">);</span> +<a id="line-368" name="line-368"></a> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="cm">/* Cast to number to avoid warnings about values not in enumeration */</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">((</span><span class="n">guint16</span><span class="p">)</span><span class="w"> </span><span class="n">e</span><span class="o">-></span><span class="n">tag</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EXIF_TAG_GPS_LATITUDE</span><span class="p">:</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EXIF_TAG_GPS_LONGITUDE</span><span class="p">:</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="p">{</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">rational_size</span><span class="p">;</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">ExifRational</span><span class="w"> </span><span class="n">r</span><span class="p">;</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="n">m</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.</span><span class="p">;</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">rational_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_format_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">EXIF_FORMAT_RATIONAL</span><span class="p">);</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">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="o">-></span><span class="n">components</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> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">e</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EXIF_FORMAT_RATIONAL</span><span class="p">))</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">);</span> +<a id="line-382" name="line-382"></a> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">bo</span><span class="p">);</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">rational_size</span><span class="p">,</span><span class="w"> </span><span class="n">bo</span><span class="p">);</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">r</span><span class="p">.</span><span class="n">denominator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-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">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">m</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">integ</span><span class="p">;</span> +<a id="line-394" name="line-394"></a> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">m</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)(</span><span class="n">modf</span><span class="w"> </span><span class="p">(</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">integ</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">60.0</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="n">integ</span><span class="p">;</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="p">}</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="p">}</span> +<a id="line-399" name="line-399"></a> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">rational_size</span><span class="p">),</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">bo</span><span class="p">);</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">integ</span><span class="p">;</span> +<a id="line-408" name="line-408"></a> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)(</span><span class="n">modf</span><span class="w"> </span><span class="p">(</span><span class="n">m</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">integ</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">60.0</span><span class="p">);</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">m</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="n">integ</span><span class="p">;</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="p">}</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="p">}</span> +<a id="line-413" name="line-413"></a> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">,</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="s">"%.0f° %.0f' %.2f</span><span class="se">\"</span><span class="s">"</span><span class="p">,</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">m</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">);</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">,</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="s">"%.0f° %.2f'"</span><span class="p">,</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">m</span><span class="p">);</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">}</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="p">}</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EXIF_TAG_GPS_LATITUDE_REF</span><span class="p">:</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EXIF_TAG_GPS_LONGITUDE_REF</span><span class="p">:</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">{</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="o">-></span><span class="n">components</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">||</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">e</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EXIF_FORMAT_ASCII</span><span class="p">))</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">);</span> +<a id="line-432" name="line-432"></a> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span><span class="w"> </span><span class="p">{</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">'N'</span><span class="p">:</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">,</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"North"</span><span class="p">));</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">'E'</span><span class="p">:</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">,</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"East"</span><span class="p">));</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">'W'</span><span class="p">:</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">,</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"West"</span><span class="p">));</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">'S'</span><span class="p">:</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">,</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"South"</span><span class="p">));</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">);</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="p">}</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">}</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">n_buf</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="p">}</span> +<a id="line-456" name="line-456"></a> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">buf</span><span class="p">;</span> +<a id="line-458" name="line-458"></a><span class="p">}</span> +<a id="line-459" name="line-459"></a> +<a id="line-460" name="line-460"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-461" name="line-461"></a><span class="n">exif_entry_cb</span><span class="w"> </span><span class="p">(</span><span class="n">ExifEntry</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-462" name="line-462"></a><span class="p">{</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">GtkTreeStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">;</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">EomMetadataDetails</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">EomMetadataDetailsPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">MetadataCategory</span><span class="w"> </span><span class="n">cat</span><span class="p">;</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">ExifIfd</span><span class="w"> </span><span class="n">ifd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_entry_get_ifd</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="p">);</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">b</span><span class="p">[</span><span class="mi">1024</span><span class="p">];</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ifd</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="mi">16</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">entry</span><span class="o">-></span><span class="n">tag</span><span class="p">;</span> +<a id="line-471" name="line-471"></a> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="cm">/* This should optimize away if comparision is correct */</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EXIF_IFD_COUNT</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">G_MAXUINT16</span><span class="p">);</span> +<a id="line-474" name="line-474"></a> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_DETAILS</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-476" name="line-476"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-477" name="line-477"></a> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TREE_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">)));</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="cm">/* Take the tag's IFD into account when caching their GtkTreePaths.</span> +<a id="line-481" name="line-481"></a><span class="cm"> * That should fix key collisions for tags that have the same number</span> +<a id="line-482" name="line-482"></a><span class="cm"> * but are stored in different IFDs. Exif tag numbers are 16-bit</span> +<a id="line-483" name="line-483"></a><span class="cm"> * values so we should be able to set the high word to the IFD number.</span> +<a id="line-484" name="line-484"></a><span class="cm"> */</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</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">key</span><span class="p">));</span> +<a id="line-486" name="line-486"></a> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">path</span><span class="p">,</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">exif_tag_get_name_in_ifd</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">tag</span><span class="p">,</span><span class="w"> </span><span class="n">ifd</span><span class="p">),</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">eom_exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">b</span><span class="p">)));</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-494" name="line-494"></a> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">ExifMnoteData</span><span class="w"> </span><span class="o">*</span><span class="n">mnote</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">tag</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_TAG_MAKER_NOTE</span><span class="w"> </span><span class="o">?</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">exif_data_get_mnote_data</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">parent</span><span class="o">-></span><span class="n">parent</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-497" name="line-497"></a> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mnote</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="c1">// Supported MakerNote Found</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_mnote_data_count</span><span class="w"> </span><span class="p">(</span><span class="n">mnote</span><span class="p">);</span> +<a id="line-501" name="line-501"></a> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="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"><</span><span class="w"> </span><span class="n">c</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash_mnote</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">i</span><span class="p">));</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">exif_mnote_data_get_title</span><span class="w"> </span><span class="p">(</span><span class="n">mnote</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">),</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">exif_mnote_data_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">mnote</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">b</span><span class="p">)));</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">exif_categories</span><span class="p">[</span><span class="n">EXIF_CATEGORY_MAKER_NOTE</span><span class="p">].</span><span class="n">path</span><span class="p">,</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">exif_mnote_data_get_title</span><span class="w"> </span><span class="p">(</span><span class="n">mnote</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">),</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">exif_mnote_data_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">mnote</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">b</span><span class="p">)));</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash_mnote</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">i</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="p">}</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="p">}</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">cat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_exif_category</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="p">);</span> +<a id="line-519" name="line-519"></a> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">exif_categories</span><span class="p">[</span><span class="n">cat</span><span class="p">].</span><span class="n">path</span><span class="p">,</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">exif_tag_get_name_in_ifd</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">tag</span><span class="p">,</span><span class="w"> </span><span class="n">ifd</span><span class="p">),</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">eom_exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">,</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">b</span><span class="p">)));</span> +<a id="line-526" name="line-526"></a> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</span><span class="p">,</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">),</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="p">}</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="p">}</span> +<a id="line-532" name="line-532"></a><span class="p">}</span> +<a id="line-533" name="line-533"></a><span class="cp">#endif</span> +<a id="line-534" name="line-534"></a> +<a id="line-535" name="line-535"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-536" name="line-536"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-537" name="line-537"></a><span class="n">exif_content_cb</span><span class="w"> </span><span class="p">(</span><span class="n">ExifContent</span><span class="w"> </span><span class="o">*</span><span class="n">content</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-538" name="line-538"></a><span class="p">{</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">exif_content_foreach_entry</span><span class="w"> </span><span class="p">(</span><span class="n">content</span><span class="p">,</span><span class="w"> </span><span class="n">exif_entry_cb</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-540" name="line-540"></a><span class="p">}</span> +<a id="line-541" name="line-541"></a><span class="cp">#endif</span> +<a id="line-542" name="line-542"></a> +<a id="line-543" name="line-543"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-544" name="line-544"></a><span class="n">eom_metadata_details_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-545" name="line-545"></a><span class="p">{</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">;</span> +<a id="line-547" name="line-547"></a> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_METADATA_DETAILS</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-549" name="line-549"></a> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-551" name="line-551"></a><span class="p">}</span> +<a id="line-552" name="line-552"></a> +<a id="line-553" name="line-553"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-554" name="line-554"></a><span class="n">eom_metadata_details_reset</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">)</span> +<a id="line-555" name="line-555"></a><span class="p">{</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">EomMetadataDetailsPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">details</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-558" name="line-558"></a> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">gtk_tree_store_clear</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">));</span> +<a id="line-560" name="line-560"></a> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">g_hash_table_remove_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</span><span class="p">);</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">g_hash_table_remove_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash_mnote</span><span class="p">);</span> +<a id="line-563" name="line-563"></a> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="k">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">exif_categories</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">label</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translated_string</span><span class="p">;</span> +<a id="line-566" name="line-566"></a> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">translated_string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gettext</span><span class="w"> </span><span class="p">(</span><span class="n">exif_categories</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">label</span><span class="p">);</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model</span><span class="p">),</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">exif_categories</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">path</span><span class="p">,</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">translated_string</span><span class="p">,</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="p">}</span> +<a id="line-575" name="line-575"></a><span class="p">}</span> +<a id="line-576" name="line-576"></a> +<a id="line-577" name="line-577"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-578" name="line-578"></a><span class="kt">void</span> +<a id="line-579" name="line-579"></a><span class="n">eom_metadata_details_update</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span><span class="w"> </span><span class="n">ExifData</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-580" name="line-580"></a><span class="p">{</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_DETAILS</span><span class="w"> </span><span class="p">(</span><span class="n">details</span><span class="p">));</span> +<a id="line-582" name="line-582"></a> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">eom_metadata_details_reset</span><span class="w"> </span><span class="p">(</span><span class="n">details</span><span class="p">);</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">exif_data_foreach_content</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">exif_content_cb</span><span class="p">,</span><span class="w"> </span><span class="n">details</span><span class="p">);</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="p">}</span> +<a id="line-587" name="line-587"></a><span class="p">}</span> +<a id="line-588" name="line-588"></a><span class="cp">#endif </span><span class="cm">/* HAVE_EXIF */</span> +<a id="line-589" name="line-589"></a> +<a id="line-590" name="line-590"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-591" name="line-591"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">id</span><span class="p">;</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">MetadataCategory</span><span class="w"> </span><span class="n">category</span><span class="p">;</span> +<a id="line-594" name="line-594"></a><span class="p">}</span><span class="w"> </span><span class="n">XmpNsCategory</span><span class="p">;</span> +<a id="line-595" name="line-595"></a> +<a id="line-596" name="line-596"></a><span class="k">static</span><span class="w"> </span><span class="n">XmpNsCategory</span><span class="w"> </span><span class="n">xmp_ns_category_map</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">NS_EXIF</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_CATEGORY_EXIF</span><span class="p">},</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">NS_TIFF</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_CATEGORY_EXIF</span><span class="p">},</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">NS_XAP</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_CATEGORY_EXIF</span><span class="p">},</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">NS_XAP_RIGHTS</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_CATEGORY_RIGHTS</span><span class="p">},</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">NS_EXIF_AUX</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_CATEGORY_EXIF</span><span class="p">},</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">NS_DC</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_CATEGORY_IPTC</span><span class="p">},</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">NS_IPTC4XMP</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_CATEGORY_IPTC</span><span class="p">},</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">NS_CC</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_CATEGORY_RIGHTS</span><span class="p">},</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">}</span> +<a id="line-606" name="line-606"></a><span class="p">};</span> +<a id="line-607" name="line-607"></a> +<a id="line-608" name="line-608"></a><span class="k">static</span><span class="w"> </span><span class="n">MetadataCategory</span> +<a id="line-609" name="line-609"></a><span class="nf">get_xmp_category</span><span class="w"> </span><span class="p">(</span><span class="n">XmpStringPtr</span><span class="w"> </span><span class="n">schema</span><span class="p">)</span> +<a id="line-610" name="line-610"></a><span class="p">{</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">MetadataCategory</span><span class="w"> </span><span class="n">cat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XMP_CATEGORY_OTHER</span><span class="p">;</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmp_string_cstr</span><span class="p">(</span><span class="n">schema</span><span class="p">);</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-614" name="line-614"></a> +<a id="line-615" name="line-615"></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">xmp_ns_category_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-616" name="line-616"></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">xmp_ns_category_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">cat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmp_ns_category_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">category</span><span class="p">;</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="p">}</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="p">}</span> +<a id="line-621" name="line-621"></a> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">cat</span><span class="p">;</span> +<a id="line-623" name="line-623"></a><span class="p">}</span> +<a id="line-624" name="line-624"></a> +<a id="line-625" name="line-625"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-626" name="line-626"></a><span class="nf">xmp_entry_insert</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataDetails</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">XmpStringPtr</span><span class="w"> </span><span class="n">xmp_schema</span><span class="p">,</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">XmpStringPtr</span><span class="w"> </span><span class="n">xmp_path</span><span class="p">,</span><span class="w"> </span><span class="n">XmpStringPtr</span><span class="w"> </span><span class="n">xmp_prop</span><span class="p">)</span> +<a id="line-628" name="line-628"></a><span class="p">{</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">GtkTreeStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">;</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">EomMetadataDetailsPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">MetadataCategory</span><span class="w"> </span><span class="n">cat</span><span class="p">;</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">;</span> +<a id="line-634" name="line-634"></a> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-636" name="line-636"></a> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_string_cstr</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_schema</span><span class="p">),</span><span class="w"> </span><span class="s">":"</span><span class="p">,</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">xmp_string_cstr</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_path</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-639" name="line-639"></a> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TREE_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">)));</span> +<a id="line-641" name="line-641"></a> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span> +<a id="line-643" name="line-643"></a> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">xmp_string_cstr</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_path</span><span class="p">),</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">xmp_string_cstr</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_prop</span><span class="p">));</span> +<a id="line-648" name="line-648"></a> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">key</span><span class="p">);</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="p">}</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">cat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_xmp_category</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_schema</span><span class="p">);</span> +<a id="line-653" name="line-653"></a> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">set_row_data</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">exif_categories</span><span class="p">[</span><span class="n">cat</span><span class="p">].</span><span class="n">path</span><span class="p">,</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">xmp_string_cstr</span><span class="p">(</span><span class="n">xmp_path</span><span class="p">),</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">xmp_string_cstr</span><span class="p">(</span><span class="n">xmp_prop</span><span class="p">));</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">id_path_hash</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="p">}</span> +<a id="line-660" name="line-660"></a><span class="p">}</span> +<a id="line-661" name="line-661"></a> +<a id="line-662" name="line-662"></a><span class="kt">void</span> +<a id="line-663" name="line-663"></a><span class="nf">eom_metadata_details_xmp_update</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataDetails</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">XmpPtr</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-664" name="line-664"></a><span class="p">{</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_DETAILS</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-666" name="line-666"></a> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">XmpIteratorPtr</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">xmp_iterator_new</span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">XMP_ITER_JUSTLEAFNODES</span><span class="p">);</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">XmpStringPtr</span><span class="w"> </span><span class="n">the_schema</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmp_string_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">XmpStringPtr</span><span class="w"> </span><span class="n">the_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmp_string_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">XmpStringPtr</span><span class="w"> </span><span class="n">the_prop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmp_string_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-672" name="line-672"></a> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_iterator_next</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">the_schema</span><span class="p">,</span><span class="w"> </span><span class="n">the_path</span><span class="p">,</span><span class="w"> </span><span class="n">the_prop</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">xmp_entry_insert</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">the_schema</span><span class="p">,</span><span class="w"> </span><span class="n">the_path</span><span class="p">,</span><span class="w"> </span><span class="n">the_prop</span><span class="p">);</span> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="p">}</span> +<a id="line-676" name="line-676"></a> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">xmp_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">the_prop</span><span class="p">);</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">xmp_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">the_path</span><span class="p">);</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">xmp_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">the_schema</span><span class="p">);</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">xmp_iterator_free</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="p">);</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="p">}</span> +<a id="line-682" name="line-682"></a><span class="p">}</span> +<a id="line-683" name="line-683"></a><span class="cp">#endif</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/16.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/16.html new file mode 100644 index 0000000..54e2b06 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/16.html @@ -0,0 +1,1565 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-metadata-reader-jpg.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-metadata-reader-jpg.c</p> +<a href="16.html#line-91"> unknownMacro 91</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of MATE -- JPEG Metadata Reader</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Felix Riemann <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on the original EomMetadataReader code.</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 free software; you can redistribute it and/or modify</span> +<a id="line-10" name="line-10"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-11" name="line-11"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-12" name="line-12"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-13" name="line-13"></a><span class="cm"> *</span> +<a id="line-14" name="line-14"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-15" name="line-15"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-16" name="line-16"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-17" name="line-17"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-18" name="line-18"></a><span class="cm"> *</span> +<a id="line-19" name="line-19"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-20" name="line-20"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-21" name="line-21"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-22" name="line-22"></a><span class="cm"> */</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-26" name="line-26"></a><span class="cp">#endif</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkx.h></span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-reader.h"</span> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-reader-jpg.h"</span> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-debug.h"</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">EMR_READ</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">EMR_READ_SIZE_HIGH_BYTE</span><span class="p">,</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">EMR_READ_SIZE_LOW_BYTE</span><span class="p">,</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">EMR_READ_MARKER</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">EMR_SKIP_BYTES</span><span class="p">,</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">EMR_READ_APP1</span><span class="p">,</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">EMR_READ_EXIF</span><span class="p">,</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">EMR_READ_XMP</span><span class="p">,</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">EMR_READ_ICC</span><span class="p">,</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">EMR_READ_IPTC</span><span class="p">,</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">EMR_FINISHED</span> +<a id="line-47" name="line-47"></a><span class="p">}</span><span class="w"> </span><span class="n">EomMetadataReaderState</span><span class="p">;</span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">EJA_EXIF</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">EJA_XMP</span><span class="p">,</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">EJA_OTHER</span> +<a id="line-53" name="line-53"></a><span class="p">}</span><span class="w"> </span><span class="n">EomJpegApp1Type</span><span class="p">;</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="cp">#define EOM_JPEG_MARKER_START 0xFF</span> +<a id="line-56" name="line-56"></a><span class="cp">#define EOM_JPEG_MARKER_APP1 0xE1</span> +<a id="line-57" name="line-57"></a><span class="cp">#define EOM_JPEG_MARKER_APP2 0xE2</span> +<a id="line-58" name="line-58"></a><span class="cp">#define EOM_JPEG_MARKER_APP14 0xED</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="cp">#define IS_FINISHED(priv) (priv->state == EMR_READ && \</span> +<a id="line-61" name="line-61"></a><span class="cp"> priv->exif_chunk != NULL && \</span> +<a id="line-62" name="line-62"></a><span class="cp"> priv->icc_chunk != NULL && \</span> +<a id="line-63" name="line-63"></a><span class="cp"> priv->iptc_chunk != NULL && \</span> +<a id="line-64" name="line-64"></a><span class="cp"> priv->xmp_chunk != NULL)</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">_EomMetadataReaderJpgPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">EomMetadataReaderState</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="cm">/* data fields */</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">exif_len</span><span class="p">;</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">exif_chunk</span><span class="p">;</span> +<a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">iptc_chunk</span><span class="p">;</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">iptc_len</span><span class="p">;</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">icc_len</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">icc_chunk</span><span class="p">;</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">xmp_chunk</span><span class="p">;</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">xmp_len</span><span class="p">;</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="cm">/* management fields */</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">size</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">last_marker</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="p">};</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-89" name="line-89"></a><span class="nf">eom_metadata_reader_jpg_init_emr_iface</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">g_iface</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">iface_data</span><span class="p">);</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_CODE</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="p">,</span><span class="w"> </span><span class="n">eom_metadata_reader_jpg</span><span class="p">,</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_CODE is a macro then please configure it.</span> +</span><a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">,</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">G_IMPLEMENT_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_METADATA_READER</span><span class="p">,</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">eom_metadata_reader_jpg_init_emr_iface</span><span class="p">)</span><span class="w"> </span>\ +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">G_ADD_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="p">))</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-98" name="line-98"></a><span class="n">eom_metadata_reader_jpg_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-99" name="line-99"></a><span class="p">{</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">EomMetadataReaderJpg</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_READER_JPG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-101" name="line-101"></a> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">);</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="p">}</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_chunk</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="p">}</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="p">);</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="p">}</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="p">);</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">}</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_metadata_reader_jpg_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-123" name="line-123"></a><span class="p">}</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-126" name="line-126"></a><span class="n">eom_metadata_reader_jpg_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-127" name="line-127"></a><span class="p">{</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">EomMetadataReaderJpgPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_jpg_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-137" name="line-137"></a><span class="p">}</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-140" name="line-140"></a><span class="n">eom_metadata_reader_jpg_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpgClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-141" name="line-141"></a><span class="p">{</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_jpg_dispose</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="p">}</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-148" name="line-148"></a><span class="n">eom_metadata_reader_jpg_finished</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-149" name="line-149"></a><span class="p">{</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_READER_JPG</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">);</span> +<a id="line-153" name="line-153"></a><span class="p">}</span> +<a id="line-154" name="line-154"></a> +<a id="line-155" name="line-155"></a><span class="k">static</span><span class="w"> </span><span class="n">EomJpegApp1Type</span> +<a id="line-156" name="line-156"></a><span class="n">eom_metadata_identify_app1</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">buf</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">)</span> +<a id="line-157" name="line-157"></a><span class="p">{</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">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><span class="p">{</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EJA_OTHER</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">}</span> +<a id="line-161" name="line-161"></a> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">len</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">29</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="w"> </span><span class="p">(</span><span class="s">"Exif"</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">EJA_EXIF</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">EJA_OTHER</span><span class="p">);</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="p">}</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="w"> </span><span class="p">(</span><span class="s">"Exif"</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EJA_EXIF</span><span class="p">;</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="w"> </span><span class="p">(</span><span class="s">"http://ns.adobe.com/xap/1.0/"</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="mi">29</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EJA_XMP</span><span class="p">;</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">}</span> +<a id="line-171" name="line-171"></a> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EJA_OTHER</span><span class="p">;</span> +<a id="line-173" name="line-173"></a><span class="p">}</span> +<a id="line-174" name="line-174"></a> +<a id="line-175" name="line-175"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-176" name="line-176"></a><span class="n">eom_metadata_reader_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpgPrivate</span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="p">,</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">chunk</span><span class="p">,</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="kt">int</span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="p">,</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">EomMetadataReaderState</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-182" name="line-182"></a><span class="p">{</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">len</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="cm">/* read data in one block */</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">((</span><span class="n">guchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">chunk</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">buf</span><span class="p">[</span><span class="o">*</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ</span><span class="p">;</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="cm">/* the for-loop consumes the other byte */</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">chunk_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="p">;</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">((</span><span class="n">guchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">chunk</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">buf</span><span class="p">[</span><span class="o">*</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">chunk_len</span><span class="p">);</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">chunk_len</span><span class="p">;</span><span class="w"> </span><span class="cm">/* bytes already read */</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">)</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><span class="cm">/* remaining data to read */</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="p">}</span> +<a id="line-196" name="line-196"></a><span class="p">}</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-199" name="line-199"></a><span class="n">eom_metadata_reader_jpg_consume</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">)</span> +<a id="line-200" name="line-200"></a><span class="p">{</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">EomMetadataReaderJpgPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">EomJpegApp1Type</span><span class="w"> </span><span class="n">app1_type</span><span class="p">;</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">EomMetadataReaderState</span><span class="w"> </span><span class="n">next_state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ</span><span class="p">;</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_READER_JPG</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">));</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">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="p">(</span><span class="n">i</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><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">);</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-214" name="line-214"></a> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ</span><span class="p">:</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_JPEG_MARKER_START</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_MARKER</span><span class="p">;</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="p">}</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="p">}</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-224" name="line-224"></a> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_MARKER</span><span class="p">:</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">buf</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xF0</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xE0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">buf</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xFE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="cm">/* we are reading some sort of APPxx or COM marker */</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="cm">/* these are always followed by 2 bytes of size information */</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">last_marker</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buf</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">];</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SIZE_HIGH_BYTE</span><span class="p">;</span> +<a id="line-232" name="line-232"></a> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"APPx or COM Marker Found: %x"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">last_marker</span><span class="p">);</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="p">}</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="cm">/* otherwise simply consume the byte */</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ</span><span class="p">;</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">}</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_SIZE_HIGH_BYTE</span><span class="p">:</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xff</span><span class="p">)</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SIZE_LOW_BYTE</span><span class="p">;</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-245" name="line-245"></a> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_SIZE_LOW_BYTE</span><span class="p">:</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xff</span><span class="p">);</span> +<a id="line-248" name="line-248"></a> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="cm">/* ignore the two size-bytes */</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ</span><span class="p">;</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">last_marker</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_JPEG_MARKER_APP1</span><span class="w"> </span><span class="o">&&</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">((</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)))</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="p">{</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_APP1</span><span class="p">;</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">last_marker</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_JPEG_MARKER_APP2</span><span class="w"> </span><span class="o">&&</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</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">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">14</span><span class="p">)</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="p">{</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="cm">/* Chunk has 14 bytes identification data */</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_ICC</span><span class="p">;</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">last_marker</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_JPEG_MARKER_APP14</span><span class="w"> </span><span class="o">&&</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="p">{</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_IPTC</span><span class="p">;</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_SKIP_BYTES</span><span class="p">;</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="p">}</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">last_marker</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-273" name="line-273"></a> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_SKIP_BYTES</span><span class="p">:</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"Skip bytes: %i"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-276" name="line-276"></a> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">len</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="cm">/* the for-loop consumes the other byte */</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="p">}</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">}</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* don't need to skip any more bytes */</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ</span><span class="p">;</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="p">}</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_APP1</span><span class="p">:</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"Read APP1 data, Length: %i"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-292" name="line-292"></a> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">app1_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_identify_app1</span><span class="w"> </span><span class="p">((</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="o">&</span><span class="n">buf</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-294" name="line-294"></a> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">app1_type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EJA_EXIF</span><span class="p">:</span> +<a id="line-297" name="line-297"></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">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">;</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">next_state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_EXIF</span><span class="p">;</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_SKIP_BYTES</span><span class="p">;</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="p">}</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EJA_XMP</span><span class="p">:</span> +<a id="line-309" name="line-309"></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">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="p">;</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">next_state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_XMP</span><span class="p">;</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_SKIP_BYTES</span><span class="p">;</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="p">}</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EJA_OTHER</span><span class="p">:</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="cm">/* skip unknown data */</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_SKIP_BYTES</span><span class="p">;</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span> +<a id="line-327" name="line-327"></a> +<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">chunk</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">eom_metadata_reader_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span><span class="w"> </span><span class="n">chunk</span><span class="p">,</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">next_state</span><span class="p">);</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="p">}</span> +<a id="line-334" name="line-334"></a> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">IS_FINISHED</span><span class="p">(</span><span class="n">priv</span><span class="p">))</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-338" name="line-338"></a> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_EXIF</span><span class="p">:</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"Read continuation of EXIF data, length: %i"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="p">{</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">eom_metadata_reader_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">,</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span><span class="w"> </span><span class="n">EMR_READ_EXIF</span><span class="p">);</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="p">}</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">IS_FINISHED</span><span class="p">(</span><span class="n">priv</span><span class="p">))</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-348" name="line-348"></a> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_XMP</span><span class="p">:</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"Read continuation of XMP data, length: %i"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="p">{</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">eom_metadata_reader_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="p">,</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span><span class="w"> </span><span class="n">EMR_READ_XMP</span><span class="p">);</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="p">}</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">IS_FINISHED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">))</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-358" name="line-358"></a> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_ICC</span><span class="p">:</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="s">"Read continuation of ICC data, "</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="s">"length: %i"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-363" name="line-363"></a> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">}</span> +<a id="line-369" name="line-369"></a> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">eom_metadata_reader_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="p">,</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">EMR_READ_ICC</span><span class="p">);</span> +<a id="line-374" name="line-374"></a> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="cm">/* Test that the chunk actually contains ICC data. */</span> +<a id="line-376" name="line-376"></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">-></span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EMR_READ</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="p">;</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-379" name="line-379"></a> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="cm">/* Chunk should begin with the</span> +<a id="line-381" name="line-381"></a><span class="cm"> * ICC_PROFILE\0 identifier */</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">&=</span><span class="w"> </span><span class="n">strncmp</span><span class="w"> </span><span class="p">(</span><span class="n">icc_chunk</span><span class="p">,</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="s">"ICC_PROFILE</span><span class="se">\0</span><span class="s">"</span><span class="p">,</span><span class="mi">12</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="cm">/* Make sure this is the first and only</span> +<a id="line-385" name="line-385"></a><span class="cm"> * ICC chunk in the file as we don't</span> +<a id="line-386" name="line-386"></a><span class="cm"> * support merging chunks yet. */</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">&=</span><span class="w"> </span><span class="o">*</span><span class="p">(</span><span class="n">guint16</span><span class="o">*</span><span class="p">)(</span><span class="n">icc_chunk</span><span class="o">+</span><span class="mi">12</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x101</span><span class="p">;</span> +<a id="line-388" name="line-388"></a> +<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="o">!</span><span class="n">valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="cm">/* This no ICC data. Throw it away. */</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="s">"Supposed ICC chunk didn't validate. "</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="s">"Ignoring."</span><span class="p">);</span> +<a id="line-394" name="line-394"></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">-></span><span class="n">icc_chunk</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="p">}</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="p">}</span> +<a id="line-399" name="line-399"></a> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">IS_FINISHED</span><span class="p">(</span><span class="n">priv</span><span class="p">))</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-403" name="line-403"></a> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_IPTC</span><span class="p">:</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="s">"Read continuation of IPTC data, "</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="s">"length: %i"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-408" name="line-408"></a> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="p">}</span> +<a id="line-414" name="line-414"></a> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">eom_metadata_reader_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">iptc_chunk</span><span class="p">,</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">EMR_READ_IPTC</span><span class="p">);</span> +<a id="line-419" name="line-419"></a> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">IS_FINISHED</span><span class="p">(</span><span class="n">priv</span><span class="p">))</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="p">}</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="p">}</span> +<a id="line-428" name="line-428"></a><span class="p">}</span> +<a id="line-429" name="line-429"></a> +<a id="line-430" name="line-430"></a><span class="cm">/* Returns the raw exif data. NOTE: The caller of this function becomes</span> +<a id="line-431" name="line-431"></a><span class="cm"> * the new owner of this piece of memory and is responsible for freeing it!</span> +<a id="line-432" name="line-432"></a><span class="cm"> */</span> +<a id="line-433" name="line-433"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-434" name="line-434"></a><span class="n">eom_metadata_reader_jpg_get_exif_chunk</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">,</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">**</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="o">*</span><span class="n">len</span><span class="p">)</span> +<a id="line-435" name="line-435"></a><span class="p">{</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">EomMetadataReaderJpgPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-437" name="line-437"></a> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_READER</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">));</span> +<a id="line-439" name="line-439"></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">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">guchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">;</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="o">*</span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_len</span><span class="p">;</span> +<a id="line-443" name="line-443"></a> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-446" name="line-446"></a><span class="p">}</span> +<a id="line-447" name="line-447"></a> +<a id="line-448" name="line-448"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-449" name="line-449"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-450" name="line-450"></a><span class="n">eom_metadata_reader_jpg_get_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-451" name="line-451"></a><span class="p">{</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">EomMetadataReaderJpgPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">ExifData</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> +<a id="line-454" name="line-454"></a> +<a id="line-455" name="line-455"></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">EOM_IS_METADATA_READER</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-457" name="line-457"></a> +<a id="line-458" name="line-458"></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">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_new_from_data</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_len</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="p">}</span> +<a id="line-461" name="line-461"></a> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-463" name="line-463"></a><span class="p">}</span> +<a id="line-464" name="line-464"></a><span class="cp">#endif</span> +<a id="line-465" name="line-465"></a> +<a id="line-466" name="line-466"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-467" name="line-467"></a> +<a id="line-468" name="line-468"></a><span class="cm">/* skip the signature */</span> +<a id="line-469" name="line-469"></a><span class="cp">#define EOM_XMP_OFFSET (29)</span> +<a id="line-470" name="line-470"></a> +<a id="line-471" name="line-471"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-472" name="line-472"></a><span class="n">eom_metadata_reader_jpg_get_xmp_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="w"> </span><span class="p">)</span> +<a id="line-473" name="line-473"></a><span class="p">{</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">EomMetadataReaderJpgPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">XmpPtr</span><span class="w"> </span><span class="n">xmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-476" name="line-476"></a> +<a id="line-477" name="line-477"></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">EOM_IS_METADATA_READER</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-478" name="line-478"></a> +<a id="line-479" name="line-479"></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">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-480" name="line-480"></a> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">xmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmp_new</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="o">+</span><span class="n">EOM_XMP_OFFSET</span><span class="p">,</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_len</span><span class="o">-</span><span class="n">EOM_XMP_OFFSET</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="p">}</span> +<a id="line-485" name="line-485"></a> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="n">xmp</span><span class="p">;</span> +<a id="line-487" name="line-487"></a><span class="p">}</span> +<a id="line-488" name="line-488"></a><span class="cp">#endif</span> +<a id="line-489" name="line-489"></a> +<a id="line-490" name="line-490"></a><span class="cm">/*</span> +<a id="line-491" name="line-491"></a><span class="cm"> * FIXME: very broken, assumes the profile fits in a single chunk. Change to</span> +<a id="line-492" name="line-492"></a><span class="cm"> * parse the sections and construct a single memory chunk, or maybe even parse</span> +<a id="line-493" name="line-493"></a><span class="cm"> * the profile.</span> +<a id="line-494" name="line-494"></a><span class="cm"> */</span> +<a id="line-495" name="line-495"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-496" name="line-496"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-497" name="line-497"></a><span class="n">eom_metadata_reader_jpg_get_icc_profile</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderJpg</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-498" name="line-498"></a><span class="p">{</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">EomMetadataReaderJpgPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">cmsHPROFILE</span><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-501" name="line-501"></a> +<a id="line-502" name="line-502"></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">EOM_IS_METADATA_READER</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-503" name="line-503"></a> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-505" name="line-505"></a> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">()))</span><span class="w"> </span><span class="p">{</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsOpenProfileFromMem</span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">14</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">14</span><span class="p">);</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="p">}</span> +<a id="line-510" name="line-510"></a> +<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="n">profile</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"JPEG has ICC profile"</span><span class="p">);</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"JPEG has invalid ICC profile"</span><span class="p">);</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="p">}</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="p">}</span> +<a id="line-517" name="line-517"></a> +<a id="line-518" name="line-518"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">profile</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">exif_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">ExifEntry</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="p">;</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">ExifByteOrder</span><span class="w"> </span><span class="n">o</span><span class="p">;</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">color_space</span><span class="p">;</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">ExifData</span><span class="w"> </span><span class="o">*</span><span class="n">exif</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_jpg_get_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">);</span> +<a id="line-524" name="line-524"></a> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">exif</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-526" name="line-526"></a> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">o</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_byte_order</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">);</span> +<a id="line-528" name="line-528"></a> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_COLOR_SPACE</span><span class="p">);</span> +<a id="line-530" name="line-530"></a> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">);</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="p">}</span> +<a id="line-535" name="line-535"></a> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">color_space</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_short</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-537" name="line-537"></a> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">color_space</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">1</span><span class="p">:</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"JPEG is sRGB"</span><span class="p">);</span> +<a id="line-541" name="line-541"></a> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsCreate_sRGBProfile</span><span class="w"> </span><span class="p">();</span> +<a id="line-543" name="line-543"></a> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">2</span><span class="p">:</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"JPEG is Adobe RGB (Disabled)"</span><span class="p">);</span> +<a id="line-547" name="line-547"></a> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="cm">/* TODO: create Adobe RGB profile */</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="c1">//profile = cmsCreate_Adobe1998Profile ();</span> +<a id="line-550" name="line-550"></a> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xFFFF</span><span class="p">:</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="p">{</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">cmsCIExyY</span><span class="w"> </span><span class="n">whitepoint</span><span class="p">;</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">cmsCIExyYTRIPLE</span><span class="w"> </span><span class="n">primaries</span><span class="p">;</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">cmsToneCurve</span><span class="w"> </span><span class="o">*</span><span class="n">gamma</span><span class="p">[</span><span class="mi">3</span><span class="p">];</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">gammaValue</span><span class="p">;</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">ExifRational</span><span class="w"> </span><span class="n">r</span><span class="p">;</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_format_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">EXIF_FORMAT_RATIONAL</span><span class="p">);</span> +<a id="line-561" name="line-561"></a> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_WHITE_POINT</span><span class="p">);</span> +<a id="line-563" name="line-563"></a> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">entry</span><span class="o">-></span><span class="n">components</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">whitepoint</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-567" name="line-567"></a> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">whitepoint</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">whitepoint</span><span class="p">.</span><span class="n">Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"No whitepoint found"</span><span class="p">);</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="p">}</span> +<a id="line-575" name="line-575"></a> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_PRIMARY_CHROMATICITIES</span><span class="p">);</span> +<a id="line-577" name="line-577"></a> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">entry</span><span class="o">-></span><span class="n">components</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><span class="p">{</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">offset</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Red</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-581" name="line-581"></a> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">offset</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Red</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-584" name="line-584"></a> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">offset</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Green</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-587" name="line-587"></a> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</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">offset</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Green</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-590" name="line-590"></a> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">offset</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Blue</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-593" name="line-593"></a> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">5</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">offset</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Blue</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-596" name="line-596"></a> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Red</span><span class="p">.</span><span class="n">Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Green</span><span class="p">.</span><span class="n">Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Blue</span><span class="p">.</span><span class="n">Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"No primary chromaticities found"</span><span class="p">);</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="p">}</span> +<a id="line-602" name="line-602"></a> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_GAMMA</span><span class="p">);</span> +<a id="line-604" name="line-604"></a> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">o</span><span class="p">);</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">gammaValue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">numerator</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"No gamma found"</span><span class="p">);</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">gammaValue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">2.2</span><span class="p">;</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="p">}</span> +<a id="line-612" name="line-612"></a> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">gamma</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gamma</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gamma</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsBuildGamma</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">gammaValue</span><span class="p">);</span> +<a id="line-614" name="line-614"></a> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsCreateRGBProfile</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">whitepoint</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">primaries</span><span class="p">,</span><span class="w"> </span><span class="n">gamma</span><span class="p">);</span> +<a id="line-616" name="line-616"></a> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">cmsFreeToneCurve</span><span class="p">(</span><span class="n">gamma</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> +<a id="line-618" name="line-618"></a> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"JPEG is calibrated"</span><span class="p">);</span> +<a id="line-620" name="line-620"></a> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="p">}</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="p">}</span> +<a id="line-624" name="line-624"></a> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">exif</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="p">}</span> +<a id="line-627" name="line-627"></a><span class="cp">#endif</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">profile</span><span class="p">;</span> +<a id="line-629" name="line-629"></a><span class="p">}</span> +<a id="line-630" name="line-630"></a><span class="cp">#endif</span> +<a id="line-631" name="line-631"></a> +<a id="line-632" name="line-632"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-633" name="line-633"></a><span class="n">eom_metadata_reader_jpg_init_emr_iface</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">g_iface</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">iface_data</span><span class="p">)</span> +<a id="line-634" name="line-634"></a><span class="p">{</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">EomMetadataReaderInterface</span><span class="w"> </span><span class="o">*</span><span class="n">iface</span><span class="p">;</span> +<a id="line-636" name="line-636"></a> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">iface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderInterface</span><span class="o">*</span><span class="p">)</span><span class="n">g_iface</span><span class="p">;</span> +<a id="line-638" name="line-638"></a> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">consume</span><span class="w"> </span><span class="o">=</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">))</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">eom_metadata_reader_jpg_consume</span><span class="p">;</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">))</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">eom_metadata_reader_jpg_finished</span><span class="p">;</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_raw_exif</span><span class="w"> </span><span class="o">=</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">**</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="o">*</span><span class="n">len</span><span class="p">))</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">eom_metadata_reader_jpg_get_exif_chunk</span><span class="p">;</span> +<a id="line-648" name="line-648"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_exif_data</span><span class="w"> </span><span class="o">=</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">))</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">eom_metadata_reader_jpg_get_exif_data</span><span class="p">;</span> +<a id="line-652" name="line-652"></a><span class="cp">#endif</span> +<a id="line-653" name="line-653"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_icc_profile</span><span class="w"> </span><span class="o">=</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">))</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">eom_metadata_reader_jpg_get_icc_profile</span><span class="p">;</span> +<a id="line-657" name="line-657"></a><span class="cp">#endif</span> +<a id="line-658" name="line-658"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_xmp_ptr</span><span class="w"> </span><span class="o">=</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">))</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">eom_metadata_reader_jpg_get_xmp_data</span><span class="p">;</span> +<a id="line-662" name="line-662"></a><span class="cp">#endif</span> +<a id="line-663" name="line-663"></a><span class="p">}</span> +<a id="line-664" name="line-664"></a> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/17.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/17.html new file mode 100644 index 0000000..3af45b6 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/17.html @@ -0,0 +1,1597 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-metadata-reader-png.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-metadata-reader-png.c</p> +<a href="17.html#line-93"> unknownMacro 93</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of MATE -- PNG Metadata Reader</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Felix Riemann <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on the old EomMetadataReader code.</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 free software; you can redistribute it and/or modify</span> +<a id="line-10" name="line-10"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-11" name="line-11"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-12" name="line-12"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-13" name="line-13"></a><span class="cm"> *</span> +<a id="line-14" name="line-14"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-15" name="line-15"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-16" name="line-16"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-17" name="line-17"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-18" name="line-18"></a><span class="cm"> *</span> +<a id="line-19" name="line-19"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-20" name="line-20"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-21" name="line-21"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-22" name="line-22"></a><span class="cm"> */</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-26" name="line-26"></a><span class="cp">#endif</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><zlib.h></span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkx.h></span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-reader.h"</span> +<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-reader-png.h"</span> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-debug.h"</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">EMR_READ_MAGIC</span><span class="p">,</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">EMR_READ_SIZE_HIGH_HIGH_BYTE</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">EMR_READ_SIZE_HIGH_LOW_BYTE</span><span class="p">,</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">EMR_READ_SIZE_LOW_HIGH_BYTE</span><span class="p">,</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">EMR_READ_SIZE_LOW_LOW_BYTE</span><span class="p">,</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">EMR_READ_CHUNK_NAME</span><span class="p">,</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">EMR_SKIP_BYTES</span><span class="p">,</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">EMR_CHECK_CRC</span><span class="p">,</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">EMR_SKIP_CRC</span><span class="p">,</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">EMR_READ_XMP_ITXT</span><span class="p">,</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">EMR_READ_ICCP</span><span class="p">,</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">EMR_READ_SRGB</span><span class="p">,</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">EMR_READ_CHRM</span><span class="p">,</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">EMR_READ_GAMA</span><span class="p">,</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">EMR_FINISHED</span> +<a id="line-53" name="line-53"></a><span class="p">}</span><span class="w"> </span><span class="n">EomMetadataReaderPngState</span><span class="p">;</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="cp">#if 0</span> +<a id="line-56" name="line-56"></a><span class="c">#define IS_FINISHED(priv) (priv->icc_chunk != NULL && \</span> +<a id="line-57" name="line-57"></a><span class="c"> priv->xmp_chunk != NULL)</span> +<a id="line-58" name="line-58"></a><span class="cp">#endif</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomMetadataReaderPngPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">EomMetadataReaderPngState</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-62" name="line-62"></a> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="cm">/* data fields */</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">icc_len</span><span class="p">;</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">icc_chunk</span><span class="p">;</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">xmp_chunk</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">xmp_len</span><span class="p">;</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">sRGB_len</span><span class="p">;</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">sRGB_chunk</span><span class="p">;</span> +<a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">cHRM_chunk</span><span class="p">;</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">cHRM_len</span><span class="p">;</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">gAMA_len</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">gAMA_chunk</span><span class="p">;</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="cm">/* management fields */</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">size</span><span class="p">;</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">;</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">sub_step</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="n">chunk_name</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="o">*</span><span class="n">crc_chunk</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="o">*</span><span class="n">crc_len</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">target_crc</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">hasIHDR</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="p">};</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-91" name="line-91"></a><span class="nf">eom_metadata_reader_png_init_emr_iface</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">g_iface</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">iface_data</span><span class="p">);</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_CODE</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderPng</span><span class="p">,</span><span class="w"> </span><span class="n">eom_metadata_reader_png</span><span class="p">,</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_CODE is a macro then please configure it.</span> +</span><a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">,</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">G_IMPLEMENT_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_METADATA_READER</span><span class="p">,</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_init_emr_iface</span><span class="p">)</span><span class="w"> </span>\ +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">G_ADD_PRIVATE</span><span class="p">(</span><span class="n">EomMetadataReaderPng</span><span class="p">))</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-100" name="line-100"></a><span class="n">eom_metadata_reader_png_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-101" name="line-101"></a><span class="p">{</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">EomMetadataReaderPng</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_READER_PNG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">EomMetadataReaderPngPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></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">-></span><span class="n">icc_chunk</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">);</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></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">-></span><span class="n">gAMA_chunk</span><span class="p">);</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_metadata_reader_png_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-121" name="line-121"></a><span class="p">}</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-124" name="line-124"></a><span class="n">eom_metadata_reader_png_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderPng</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-125" name="line-125"></a><span class="p">{</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">EomMetadataReaderPngPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_png_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_MAGIC</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hasIHDR</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-143" name="line-143"></a><span class="p">}</span> +<a id="line-144" name="line-144"></a> +<a id="line-145" name="line-145"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-146" name="line-146"></a><span class="n">eom_metadata_reader_png_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderPngClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-147" name="line-147"></a><span class="p">{</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_reader_png_dispose</span><span class="p">;</span> +<a id="line-151" name="line-151"></a><span class="p">}</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-154" name="line-154"></a><span class="n">eom_metadata_reader_png_finished</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderPng</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-155" name="line-155"></a><span class="p">{</span> +<a id="line-156" name="line-156"></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">EOM_IS_METADATA_READER_PNG</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">);</span> +<a id="line-159" name="line-159"></a><span class="p">}</span> +<a id="line-160" name="line-160"></a> +<a id="line-161" name="line-161"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-162" name="line-162"></a><span class="n">eom_metadata_reader_png_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderPngPrivate</span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="p">,</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">chunk</span><span class="p">,</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="kt">int</span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="p">,</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">EomMetadataReaderPngState</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-168" name="line-168"></a><span class="p">{</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="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">len</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="cm">/* read data in one block */</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">((</span><span class="n">guchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">chunk</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">buf</span><span class="p">[</span><span class="o">*</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_CHECK_CRC</span><span class="p">;</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="cm">/* the for-loop consumes the other byte */</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">chunk_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="p">;</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">((</span><span class="n">guchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">chunk</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">buf</span><span class="p">[</span><span class="o">*</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">chunk_len</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">chunk_len</span><span class="p">;</span><span class="w"> </span><span class="cm">/* bytes already read */</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">)</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><span class="cm">/* remaining data to read */</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">}</span> +<a id="line-183" name="line-183"></a><span class="p">}</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-186" name="line-186"></a><span class="n">eom_metadata_reader_png_consume</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderPng</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">)</span> +<a id="line-187" name="line-187"></a><span class="p">{</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">EomMetadataReaderPngPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">chunk_crc</span><span class="p">;</span> +<a id="line-191" name="line-191"></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">PNGMAGIC</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="s">"</span><span class="se">\x89</span><span class="s">PNG</span><span class="se">\x0D\x0A\x1a\x0A</span><span class="s">"</span><span class="p">;</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_READER_PNG</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">));</span> +<a id="line-194" name="line-194"></a> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-196" name="line-196"></a> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="k">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="p">(</span><span class="n">i</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><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">);</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_MAGIC</span><span class="p">:</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="cm">/* Check PNG magic string */</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</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> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="p">)</span><span class="n">buf</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PNGMAGIC</span><span class="p">[</span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="p">])</span><span class="w"> </span><span class="p">{</span> +<a id="line-206" name="line-206"></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">-></span><span class="n">sub_step</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">7</span><span class="p">)</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SIZE_HIGH_HIGH_BYTE</span><span class="p">;</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="o">++</span><span class="p">;</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="p">}</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_SIZE_HIGH_HIGH_BYTE</span><span class="p">:</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="cm">/* Read the high byte of the size's high word */</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">)</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="mi">24</span><span class="p">;</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SIZE_HIGH_LOW_BYTE</span><span class="p">;</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_SIZE_HIGH_LOW_BYTE</span><span class="p">:</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="cm">/* Read the low byte of the size's high word */</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">)</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SIZE_LOW_HIGH_BYTE</span><span class="p">;</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_SIZE_LOW_HIGH_BYTE</span><span class="p">:</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="cm">/* Read the high byte of the size's low word */</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xff</span><span class="p">)</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SIZE_LOW_LOW_BYTE</span><span class="p">;</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_SIZE_LOW_LOW_BYTE</span><span class="p">:</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="cm">/* Read the high byte of the size's low word */</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xff</span><span class="p">);</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="cm">/* The maximum chunk length is 2^31-1 */</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="p">(</span><span class="n">guint32</span><span class="p">)</span><span class="w"> </span><span class="mh">0x7fffffff</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_CHUNK_NAME</span><span class="p">;</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="cm">/* Make sure sub_step is 0 before next step */</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="s">"chunk size larger than "</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="s">"2^31-1; stopping parser"</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="p">}</span> +<a id="line-242" name="line-242"></a> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_CHUNK_NAME</span><span class="p">:</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="cm">/* Read the 4-byte chunk name */</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">3</span><span class="p">)</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-248" name="line-248"></a> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">[</span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buf</span><span class="p">[</span><span class="n">i</span><span class="p">];</span> +<a id="line-250" name="line-250"></a> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="o">++</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-253" name="line-253"></a> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">hasIHDR</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="cm">/* IHDR should be the first chunk in a PNG */</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">13</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">,</span><span class="w"> </span><span class="s">"IHDR"</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">){</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hasIHDR</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="cm">/* Stop parsing if it is not */</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="p">}</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="p">}</span> +<a id="line-264" name="line-264"></a> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="cm">/* Try to identify the chunk by its name.</span> +<a id="line-266" name="line-266"></a><span class="cm"> * Already do some sanity checks where possible */</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">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">,</span><span class="w"> </span><span class="s">"iTXt"</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="p">(</span><span class="mi">22</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">54</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_XMP_ITXT</span><span class="p">;</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">,</span><span class="w"> </span><span class="s">"iCCP"</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_ICCP</span><span class="p">;</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sRGB"</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</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">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SRGB</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cHRM"</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</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">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">32</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_CHRM</span><span class="p">;</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">,</span><span class="w"> </span><span class="s">"gAMA"</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</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">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_GAMA</span><span class="p">;</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">,</span><span class="w"> </span><span class="s">"IEND"</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="cm">/* Skip chunk + 4-byte CRC32 value */</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_SKIP_BYTES</span><span class="p">;</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">}</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_SKIP_CRC</span><span class="p">:</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="cm">/* Skip the 4-byte CRC32 value following every chunk */</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_SKIP_BYTES</span><span class="p">:</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="cm">/* Skip chunk and start reading the size of the next one */</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="s">"Skip bytes: %"</span><span class="w"> </span><span class="n">G_GSIZE_FORMAT</span><span class="p">,</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">len</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="cm">/* the for-loop consumes the other byte */</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SIZE_HIGH_HIGH_BYTE</span><span class="p">;</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="p">}</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="p">}</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_CHECK_CRC</span><span class="p">:</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="cm">/* Read the chunks CRC32 value from the file,... */</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">target_crc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-314" name="line-314"></a> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">target_crc</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">buf</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="p">((</span><span class="mi">3</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span> +<a id="line-316" name="line-316"></a> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="o">++</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="cm">/* ...generate the chunks CRC32,... */</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">chunk_crc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crc32</span><span class="w"> </span><span class="p">(</span><span class="n">crc32</span><span class="w"> </span><span class="p">(</span><span class="mf">0L</span><span class="p">,</span><span class="w"> </span><span class="n">Z_NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">chunk_name</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">chunk_crc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crc32</span><span class="w"> </span><span class="p">(</span><span class="n">chunk_crc</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">crc_chunk</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">crc_len</span><span class="p">);</span> +<a id="line-323" name="line-323"></a> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"Checking CRC: Chunk: 0x%X - Target: 0x%X"</span><span class="p">,</span><span class="w"> </span><span class="n">chunk_crc</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">target_crc</span><span class="p">);</span> +<a id="line-325" name="line-325"></a> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="cm">/* ...and check if they match. If they don't throw</span> +<a id="line-327" name="line-327"></a><span class="cm"> * the chunk away and stop parsing. */</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">priv</span><span class="o">-></span><span class="n">target_crc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">chunk_crc</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_READ_SIZE_HIGH_HIGH_BYTE</span><span class="p">;</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">crc_chunk</span><span class="p">);</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">crc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">crc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="cm">/* Stop parsing for security reasons */</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_FINISHED</span><span class="p">;</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="p">}</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sub_step</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_XMP_ITXT</span><span class="p">:</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="cm">/* Extract an iTXt chunk possibly containing</span> +<a id="line-341" name="line-341"></a><span class="cm"> * an XMP packet */</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="s">"Read XMP Chunk - size: %"</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">G_GSIZE_FORMAT</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-345" name="line-345"></a> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_len</span><span class="p">;</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="p">;</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">}</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="p">,</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">EMR_READ_XMP_ITXT</span><span class="p">);</span> +<a id="line-357" name="line-357"></a> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EMR_CHECK_CRC</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="cm">/* Check if it is actually an XMP chunk.</span> +<a id="line-360" name="line-360"></a><span class="cm"> * Throw it away if not.</span> +<a id="line-361" name="line-361"></a><span class="cm"> * The check has 4 extra \0's to check</span> +<a id="line-362" name="line-362"></a><span class="cm"> * if the chunk is configured correctly. */</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">memcmp</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="p">,</span><span class="w"> </span><span class="s">"XML:com.adobe.xmp</span><span class="se">\0\0\0\0\0</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="mi">22</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMR_SKIP_CRC</span><span class="p">;</span> +<a id="line-365" name="line-365"></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">-></span><span class="n">xmp_chunk</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">}</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="p">}</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_ICCP</span><span class="p">:</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="cm">/* Extract an iCCP chunk containing a</span> +<a id="line-373" name="line-373"></a><span class="cm"> * deflated ICC profile. */</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="s">"Read ICC Chunk - size: %"</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">G_GSIZE_FORMAT</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_len</span><span class="p">;</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="p">;</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="p">}</span> +<a id="line-385" name="line-385"></a> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="p">,</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">EMR_READ_ICCP</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_SRGB</span><span class="p">:</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="cm">/* Extract the sRGB chunk. Marks the image data as</span> +<a id="line-393" name="line-393"></a><span class="cm"> * being in sRGB colorspace. */</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="s">"Read sRGB Chunk - value: %u"</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="p">(</span><span class="n">buf</span><span class="o">+</span><span class="n">i</span><span class="p">));</span> +<a id="line-396" name="line-396"></a> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_len</span><span class="p">;</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</span><span class="p">;</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="p">}</span> +<a id="line-404" name="line-404"></a> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</span><span class="p">,</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">EMR_READ_SRGB</span><span class="p">);</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_CHRM</span><span class="p">:</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="cm">/* Extract the cHRM chunk. Contains the coordinates of</span> +<a id="line-412" name="line-412"></a><span class="cm"> * the image's whitepoint and primary chromacities. */</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="s">"Read cHRM Chunk - size: %"</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">G_GSIZE_FORMAT</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-416" name="line-416"></a> +<a id="line-417" name="line-417"></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">-></span><span class="n">cHRM_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_len</span><span class="p">;</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">;</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="p">}</span> +<a id="line-424" name="line-424"></a> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">EMR_READ_ICCP</span><span class="p">);</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EMR_READ_GAMA</span><span class="p">:</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="cm">/* Extract the gAMA chunk containing the</span> +<a id="line-432" name="line-432"></a><span class="cm"> * image's gamma value */</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="s">"Read gAMA-Chunk - size: %"</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">G_GSIZE_FORMAT</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-436" name="line-436"></a> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</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">guchar</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">);</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size</span><span class="p">;</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_len</span><span class="p">;</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">crc_chunk</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</span><span class="p">;</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="p">}</span> +<a id="line-444" name="line-444"></a> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_get_next_block</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">,</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</span><span class="p">,</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">EMR_READ_ICCP</span><span class="p">);</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">}</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="p">}</span> +<a id="line-454" name="line-454"></a><span class="p">}</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-457" name="line-457"></a> +<a id="line-458" name="line-458"></a><span class="cm">/* skip the chunk ID */</span> +<a id="line-459" name="line-459"></a><span class="cp">#define EOM_XMP_OFFSET (22)</span> +<a id="line-460" name="line-460"></a> +<a id="line-461" name="line-461"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-462" name="line-462"></a><span class="n">eom_metadata_reader_png_get_xmp_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderPng</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="w"> </span><span class="p">)</span> +<a id="line-463" name="line-463"></a><span class="p">{</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">EomMetadataReaderPngPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">XmpPtr</span><span class="w"> </span><span class="n">xmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-466" name="line-466"></a> +<a id="line-467" name="line-467"></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">EOM_IS_METADATA_READER_PNG</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-468" name="line-468"></a> +<a id="line-469" name="line-469"></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">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-470" name="line-470"></a> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">xmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmp_new</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_chunk</span><span class="o">+</span><span class="n">EOM_XMP_OFFSET</span><span class="p">,</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_len</span><span class="o">-</span><span class="n">EOM_XMP_OFFSET</span><span class="p">);</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="p">}</span> +<a id="line-475" name="line-475"></a> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="w"> </span><span class="n">xmp</span><span class="p">;</span> +<a id="line-477" name="line-477"></a><span class="p">}</span> +<a id="line-478" name="line-478"></a><span class="cp">#endif</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-481" name="line-481"></a> +<a id="line-482" name="line-482"></a><span class="cp">#define EXTRACT_DOUBLE_UINT_BLOCK_OFFSET(chunk,offset,divider) \</span> +<a id="line-483" name="line-483"></a><span class="cp"> (double)(GUINT32_FROM_BE(*((guint32*)((chunk)+((offset)*4))))/(double)(divider))</span> +<a id="line-484" name="line-484"></a> +<a id="line-485" name="line-485"></a><span class="cm">/* This is the amount of memory the inflate output buffer gets increased by</span> +<a id="line-486" name="line-486"></a><span class="cm"> * while decompressing the ICC profile */</span> +<a id="line-487" name="line-487"></a><span class="cp">#define EOM_ICC_INFLATE_BUFFER_STEP 1024</span> +<a id="line-488" name="line-488"></a> +<a id="line-489" name="line-489"></a><span class="cm">/* I haven't seen ICC profiles larger than 1MB yet.</span> +<a id="line-490" name="line-490"></a><span class="cm"> * A maximum output buffer of 5MB should be enough. */</span> +<a id="line-491" name="line-491"></a><span class="cp">#define EOM_ICC_INFLATE_BUFFER_LIMIT (1024*1024*5)</span> +<a id="line-492" name="line-492"></a> +<a id="line-493" name="line-493"></a><span class="cm">/* Apparently an sRGB profile saved in cHRM and gAMA chunks does not compute</span> +<a id="line-494" name="line-494"></a><span class="cm"> * a profile that exactly matches the built-in sRGB profile and thus could</span> +<a id="line-495" name="line-495"></a><span class="cm"> * cause a slight color deviation. Try catching this case to allow fallback</span> +<a id="line-496" name="line-496"></a><span class="cm"> * to the built-in profile instead.</span> +<a id="line-497" name="line-497"></a><span class="cm"> */</span> +<a id="line-498" name="line-498"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-499" name="line-499"></a><span class="n">_chrm_matches_srgb</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">cmsCIExyY</span><span class="w"> </span><span class="o">*</span><span class="n">whitepoint</span><span class="p">,</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">cmsCIExyYTRIPLE</span><span class="w"> </span><span class="o">*</span><span class="n">primaries</span><span class="p">,</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">gammaValue</span><span class="p">)</span> +<a id="line-502" name="line-502"></a><span class="p">{</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="cm">/* PNGs gAMA value for 2.2 is only accurate to the 4th decimal point */</span> +<a id="line-504" name="line-504"></a><span class="cp">#define DOUBLE_EQUAL_MAX_DIFF 1e-4</span> +<a id="line-505" name="line-505"></a><span class="cp">#define DOUBLE_EQUAL(a,b) (fabs (a - b) < DOUBLE_EQUAL_MAX_DIFF)</span> +<a id="line-506" name="line-506"></a> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">gammaValue</span><span class="p">,</span><span class="w"> </span><span class="mf">2.2</span><span class="p">)</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">whitepoint</span><span class="o">-></span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="mf">0.3127</span><span class="p">)</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">whitepoint</span><span class="o">-></span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mf">0.329</span><span class="p">)</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">primaries</span><span class="o">-></span><span class="n">Red</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="mf">0.64</span><span class="p">)</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">primaries</span><span class="o">-></span><span class="n">Red</span><span class="p">.</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mf">0.33</span><span class="p">)</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">primaries</span><span class="o">-></span><span class="n">Green</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="mf">0.3</span><span class="p">)</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">primaries</span><span class="o">-></span><span class="n">Green</span><span class="p">.</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mf">0.6</span><span class="p">)</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">primaries</span><span class="o">-></span><span class="n">Blue</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="mf">0.15</span><span class="p">)</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">primaries</span><span class="o">-></span><span class="n">Blue</span><span class="p">.</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mf">0.06</span><span class="p">));</span> +<a id="line-516" name="line-516"></a><span class="p">}</span> +<a id="line-517" name="line-517"></a> +<a id="line-518" name="line-518"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-519" name="line-519"></a><span class="n">eom_metadata_reader_png_get_icc_profile</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderPng</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-520" name="line-520"></a><span class="p">{</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">EomMetadataReaderPngPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">cmsHPROFILE</span><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-523" name="line-523"></a> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_READER_PNG</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-525" name="line-525"></a> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">emr</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-527" name="line-527"></a> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">outbuf</span><span class="p">;</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">z_stream</span><span class="w"> </span><span class="n">zstr</span><span class="p">;</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">z_ret</span><span class="p">;</span> +<a id="line-533" name="line-533"></a> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="cm">/* Use default allocation functions */</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">zalloc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Z_NULL</span><span class="p">;</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">zfree</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Z_NULL</span><span class="p">;</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">opaque</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Z_NULL</span><span class="p">;</span> +<a id="line-538" name="line-538"></a> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="cm">/* Skip the name of the ICC profile */</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">((</span><span class="n">guchar</span><span class="o">*</span><span class="p">)</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="o">+</span><span class="n">offset</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">offset</span><span class="o">++</span><span class="p">;</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="cm">/* Ensure the compression method (deflate) */</span> +<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="p">((</span><span class="n">guchar</span><span class="o">*</span><span class="p">)</span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="o">+</span><span class="p">(</span><span class="o">++</span><span class="n">offset</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="o">++</span><span class="n">offset</span><span class="p">;</span><span class="w"> </span><span class="c1">//offset now points to the start of the deflated data</span> +<a id="line-546" name="line-546"></a> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="cm">/* Prepare the zlib data structure for decompression */</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">next_in</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_chunk</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset</span><span class="p">;</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">avail_in</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">icc_len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">offset</span><span class="p">;</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">inflateInit</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zstr</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">Z_OK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="p">}</span> +<a id="line-553" name="line-553"></a> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="cm">/* Prepare output buffer and make zlib aware of it */</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">outbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_ICC_INFLATE_BUFFER_STEP</span><span class="p">);</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">next_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">outbuf</span><span class="p">;</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">avail_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_ICC_INFLATE_BUFFER_STEP</span><span class="p">;</span> +<a id="line-558" name="line-558"></a> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">zstr</span><span class="p">.</span><span class="n">avail_out</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="cm">/* The output buffer was not large enough to</span> +<a id="line-562" name="line-562"></a><span class="cm"> * hold all the decompressed data. Increase its</span> +<a id="line-563" name="line-563"></a><span class="cm"> * size and continue decompression. */</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">new_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">total_out</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">EOM_ICC_INFLATE_BUFFER_STEP</span><span class="p">;</span> +<a id="line-565" name="line-565"></a> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">new_size</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">EOM_ICC_INFLATE_BUFFER_LIMIT</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="cm">/* Enforce a memory limit for the output</span> +<a id="line-568" name="line-568"></a><span class="cm"> * buffer to avoid possible OOM cases */</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">inflateEnd</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zstr</span><span class="p">);</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">outbuf</span><span class="p">);</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"ICC profile is too large. Ignoring."</span><span class="p">);</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="p">}</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">outbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_realloc</span><span class="p">(</span><span class="n">outbuf</span><span class="p">,</span><span class="w"> </span><span class="n">new_size</span><span class="p">);</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">avail_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_ICC_INFLATE_BUFFER_STEP</span><span class="p">;</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">next_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">outbuf</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">total_out</span><span class="p">;</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="p">}</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">z_ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">inflate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zstr</span><span class="p">,</span><span class="w"> </span><span class="n">Z_SYNC_FLUSH</span><span class="p">);</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">z_ret</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">Z_OK</span><span class="p">);</span> +<a id="line-580" name="line-580"></a> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">z_ret</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">Z_STREAM_END</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_IMAGE_DATA</span><span class="p">,</span><span class="w"> </span><span class="s">"Error while inflating ICC profile: %s (%d)"</span><span class="p">,</span><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="n">z_ret</span><span class="p">);</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">inflateEnd</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zstr</span><span class="p">);</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">outbuf</span><span class="p">);</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="p">}</span> +<a id="line-587" name="line-587"></a> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">()))</span><span class="w"> </span><span class="p">{</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsOpenProfileFromMem</span><span class="p">(</span><span class="n">outbuf</span><span class="p">,</span><span class="w"> </span><span class="n">zstr</span><span class="p">.</span><span class="n">total_out</span><span class="p">);</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="p">}</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">inflateEnd</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zstr</span><span class="p">);</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">outbuf</span><span class="p">);</span> +<a id="line-593" name="line-593"></a> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"PNG has %s ICC profile"</span><span class="p">,</span><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"valid"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"invalid"</span><span class="p">);</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="p">}</span> +<a id="line-596" name="line-596"></a> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">profile</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sRGB_chunk</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"PNG is sRGB"</span><span class="p">);</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="cm">/* If the file has an sRGB chunk the image data is in the sRGB</span> +<a id="line-600" name="line-600"></a><span class="cm"> * colorspace. lcms has a built-in sRGB profile. */</span> +<a id="line-601" name="line-601"></a> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">()))</span><span class="w"> </span><span class="p">{</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsCreate_sRGBProfile</span><span class="w"> </span><span class="p">();</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="p">}</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="p">}</span> +<a id="line-606" name="line-606"></a> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">profile</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">cmsCIExyY</span><span class="w"> </span><span class="n">whitepoint</span><span class="p">;</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">cmsCIExyYTRIPLE</span><span class="w"> </span><span class="n">primaries</span><span class="p">;</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">cmsToneCurve</span><span class="w"> </span><span class="o">*</span><span class="n">gamma</span><span class="p">[</span><span class="mi">3</span><span class="p">];</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">gammaValue</span><span class="p">;</span> +<a id="line-612" name="line-612"></a> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="cm">/* This uglyness extracts the chromacity and whitepoint values</span> +<a id="line-614" name="line-614"></a><span class="cm"> * from a PNG's cHRM chunk. These can be accurate up to the</span> +<a id="line-615" name="line-615"></a><span class="cm"> * 5th decimal point.</span> +<a id="line-616" name="line-616"></a><span class="cm"> * They are saved as integer values multiplied by 100000. */</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"Trying to calculate color profile"</span><span class="p">);</span> +<a id="line-619" name="line-619"></a> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">whitepoint</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">whitepoint</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-622" name="line-622"></a> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Red</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Red</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Green</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Green</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Blue</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Blue</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cHRM_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-629" name="line-629"></a> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">whitepoint</span><span class="p">.</span><span class="n">Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Red</span><span class="p">.</span><span class="n">Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Green</span><span class="p">.</span><span class="n">Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">primaries</span><span class="p">.</span><span class="n">Blue</span><span class="p">.</span><span class="n">Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span> +<a id="line-631" name="line-631"></a> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">gammaValue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="mf">1.0</span><span class="o">/</span><span class="n">EXTRACT_DOUBLE_UINT_BLOCK_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">gAMA_chunk</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">100000</span><span class="p">);</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"Gamma %.5lf"</span><span class="p">,</span><span class="w"> </span><span class="n">gammaValue</span><span class="p">);</span> +<a id="line-634" name="line-634"></a> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="cm">/* Catch SRGB in cHRM/gAMA chunks and use accurate built-in</span> +<a id="line-636" name="line-636"></a><span class="cm"> * profile instead of computing one that "gets close". */</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">_chrm_matches_srgb</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">whitepoint</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">primaries</span><span class="p">,</span><span class="w"> </span><span class="n">gammaValue</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"gAMA and cHRM match sRGB"</span><span class="p">);</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">()))</span><span class="w"> </span><span class="p">{</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsCreate_sRGBProfile</span><span class="w"> </span><span class="p">();</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="p">}</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">gamma</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gamma</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gamma</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">cmsBuildGamma</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">gammaValue</span><span class="p">);</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">()))</span><span class="w"> </span><span class="p">{</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsCreateRGBProfile</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">whitepoint</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">primaries</span><span class="p">,</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">gamma</span><span class="p">);</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">cmsFreeToneCurve</span><span class="p">(</span><span class="n">gamma</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="p">}</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="p">}</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="p">}</span> +<a id="line-652" name="line-652"></a> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">profile</span><span class="p">;</span> +<a id="line-654" name="line-654"></a><span class="p">}</span> +<a id="line-655" name="line-655"></a><span class="cp">#endif</span> +<a id="line-656" name="line-656"></a> +<a id="line-657" name="line-657"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-658" name="line-658"></a><span class="n">eom_metadata_reader_png_init_emr_iface</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">g_iface</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">iface_data</span><span class="p">)</span> +<a id="line-659" name="line-659"></a><span class="p">{</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">EomMetadataReaderInterface</span><span class="w"> </span><span class="o">*</span><span class="n">iface</span><span class="p">;</span> +<a id="line-661" name="line-661"></a> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">iface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderInterface</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">g_iface</span><span class="p">;</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">consume</span><span class="w"> </span><span class="o">=</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">))</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_consume</span><span class="p">;</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="o">=</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">))</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_finished</span><span class="p">;</span> +<a id="line-670" name="line-670"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_icc_profile</span><span class="w"> </span><span class="o">=</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="p">(</span><span class="n">cmsHPROFILE</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">))</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_get_icc_profile</span><span class="p">;</span> +<a id="line-674" name="line-674"></a><span class="cp">#endif</span> +<a id="line-675" name="line-675"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_xmp_ptr</span><span class="w"> </span><span class="o">=</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">))</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">eom_metadata_reader_png_get_xmp_data</span><span class="p">;</span> +<a id="line-679" name="line-679"></a><span class="cp">#endif</span> +<a id="line-680" name="line-680"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/18.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/18.html new file mode 100644 index 0000000..8b99df8 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/18.html @@ -0,0 +1,499 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-metadata-reader.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-metadata-reader.c</p> +<a href="18.html#line-33"> unknownMacro 33</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of MATE -- Metadata Reader Interface</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Felix Riemann <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-8" name="line-8"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-9" name="line-9"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-10" name="line-10"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-15" name="line-15"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-19" name="line-19"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-24" name="line-24"></a><span class="cp">#endif</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"><gdk/gdk.h></span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-reader.h"</span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-reader-jpg.h"</span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-reader-png.h"</span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-debug.h"</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="hll"><span class="n">G_DEFINE_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="p">,</span><span class="w"> </span><span class="n">eom_metadata_reader</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INVALID</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_INTERFACE is a macro then please configure it.</span> +</span><a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="n">EomMetadataReader</span><span class="o">*</span> +<a id="line-36" name="line-36"></a><span class="n">eom_metadata_reader_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataFileType</span><span class="w"> </span><span class="n">type</span><span class="p">)</span> +<a id="line-37" name="line-37"></a><span class="p">{</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">;</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_METADATA_JPEG</span><span class="p">:</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">emr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_READER</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_METADATA_READER_JPG</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_METADATA_PNG</span><span class="p">:</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">emr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_READER</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_METADATA_READER_PNG</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">emr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="p">}</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">emr</span><span class="p">;</span> +<a id="line-53" name="line-53"></a><span class="p">}</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="n">gboolean</span> +<a id="line-56" name="line-56"></a><span class="n">eom_metadata_reader_finished</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-57" name="line-57"></a><span class="p">{</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_READER</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_METADATA_READER_GET_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">)</span><span class="o">-></span><span class="n">finished</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">);</span> +<a id="line-61" name="line-61"></a><span class="p">}</span> +<a id="line-62" name="line-62"></a> +<a id="line-63" name="line-63"></a><span class="kt">void</span> +<a id="line-64" name="line-64"></a><span class="n">eom_metadata_reader_consume</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">)</span> +<a id="line-65" name="line-65"></a><span class="p">{</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">EOM_METADATA_READER_GET_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">)</span><span class="o">-></span><span class="n">consume</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="p">}</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="cm">/* Returns the raw exif data. NOTE: The caller of this function becomes</span> +<a id="line-70" name="line-70"></a><span class="cm"> * the new owner of this piece of memory and is responsible for freeing it!</span> +<a id="line-71" name="line-71"></a><span class="cm"> */</span> +<a id="line-72" name="line-72"></a><span class="kt">void</span> +<a id="line-73" name="line-73"></a><span class="n">eom_metadata_reader_get_exif_chunk</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">,</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">**</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="o">*</span><span class="n">len</span><span class="p">)</span> +<a id="line-74" name="line-74"></a><span class="p">{</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">EOM_METADATA_READER_GET_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">)</span><span class="o">-></span><span class="n">get_raw_exif</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">);</span> +<a id="line-78" name="line-78"></a><span class="p">}</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-81" name="line-81"></a><span class="n">ExifData</span><span class="o">*</span> +<a id="line-82" name="line-82"></a><span class="n">eom_metadata_reader_get_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-83" name="line-83"></a><span class="p">{</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_METADATA_READER_GET_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">)</span><span class="o">-></span><span class="n">get_exif_data</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">);</span> +<a id="line-85" name="line-85"></a><span class="p">}</span> +<a id="line-86" name="line-86"></a><span class="cp">#endif</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-89" name="line-89"></a><span class="n">XmpPtr</span> +<a id="line-90" name="line-90"></a><span class="n">eom_metadata_reader_get_xmp_data</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-91" name="line-91"></a><span class="p">{</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_METADATA_READER_GET_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">)</span><span class="o">-></span><span class="n">get_xmp_ptr</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="p">}</span> +<a id="line-94" name="line-94"></a><span class="cp">#endif</span> +<a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-97" name="line-97"></a><span class="n">cmsHPROFILE</span> +<a id="line-98" name="line-98"></a><span class="n">eom_metadata_reader_get_icc_profile</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-99" name="line-99"></a><span class="p">{</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_METADATA_READER_GET_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">)</span><span class="o">-></span><span class="n">get_icc_profile</span><span class="w"> </span><span class="p">(</span><span class="n">emr</span><span class="p">);</span> +<a id="line-101" name="line-101"></a><span class="p">}</span> +<a id="line-102" name="line-102"></a><span class="cp">#endif</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="cm">/* Default vfunc that simply clears the output if not overriden by the</span> +<a id="line-105" name="line-105"></a><span class="cm"> implementing class. This mimics the old behavour of get_exif_chunk(). */</span> +<a id="line-106" name="line-106"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-107" name="line-107"></a><span class="n">_eom_metadata_reader_default_get_raw_exif</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">,</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">**</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="o">*</span><span class="n">length</span><span class="p">)</span> +<a id="line-109" name="line-109"></a><span class="p">{</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">length</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><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> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="o">*</span><span class="n">length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-113" name="line-113"></a><span class="p">}</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="cm">/* Default vfunc that simply returns NULL if not overriden by the implementing</span> +<a id="line-116" name="line-116"></a><span class="cm"> class. Mimics the old fallback behaviour of the getter functions. */</span> +<a id="line-117" name="line-117"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-118" name="line-118"></a><span class="n">_eom_metadata_reader_default_get_null</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReader</span><span class="w"> </span><span class="o">*</span><span class="n">emr</span><span class="p">)</span> +<a id="line-119" name="line-119"></a><span class="p">{</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-121" name="line-121"></a><span class="p">}</span> +<a id="line-122" name="line-122"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-123" name="line-123"></a><span class="n">eom_metadata_reader_default_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataReaderInterface</span><span class="w"> </span><span class="o">*</span><span class="n">iface</span><span class="p">)</span> +<a id="line-124" name="line-124"></a><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="cm">/* consume and finished are required to be implemented */</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="cm">/* Not-implemented funcs return NULL by default */</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_raw_exif</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_eom_metadata_reader_default_get_raw_exif</span><span class="p">;</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_exif_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_eom_metadata_reader_default_get_null</span><span class="p">;</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_icc_profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_eom_metadata_reader_default_get_null</span><span class="p">;</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">iface</span><span class="o">-></span><span class="n">get_xmp_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_eom_metadata_reader_default_get_null</span><span class="p">;</span> +<a id="line-131" name="line-131"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/19.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/19.html new file mode 100644 index 0000000..8c45ab8 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/19.html @@ -0,0 +1,1321 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-metadata-sidebar.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-metadata-sidebar.c</p> +<a href="19.html#line-94"> unknownMacro 94</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * eom-metadata-sidebar.c</span> +<a id="line-3" name="line-3"></a><span class="cm"> * This file is part of eom</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Felix Riemann <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Portions based on code by: Lucas Rocha <[email protected]></span> +<a id="line-8" name="line-8"></a><span class="cm"> * Hubert Figuiere <[email protected]> (XMP support)</span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> * Copyright (C) 2011 GNOME Foundation</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is free software; you can redistribute it and/or</span> +<a id="line-13" name="line-13"></a><span class="cm"> * modify it under the terms of the GNU General Public License</span> +<a id="line-14" name="line-14"></a><span class="cm"> * as published by the Free Software Foundation; either version 2</span> +<a id="line-15" name="line-15"></a><span class="cm"> * of the License, or (at your option) any later version.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-18" name="line-18"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-19" name="line-19"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-20" name="line-20"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-21" name="line-21"></a><span class="cm"> *</span> +<a id="line-22" name="line-22"></a><span class="cm"> * You should have received a copy of the GNU General Public License along</span> +<a id="line-23" name="line-23"></a><span class="cm"> * with this program; if not, write to the Free Software Foundation, Inc.,</span> +<a id="line-24" name="line-24"></a><span class="cm"> * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-25" name="line-25"></a><span class="cm"> */</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#endif</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image.h"</span> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-sidebar.h"</span> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-properties-dialog.h"</span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-scroll-view.h"</span> +<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-window.h"</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-43" name="line-43"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-data.h></span> +<a id="line-44" name="line-44"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-tag.h></span> +<a id="line-45" name="line-45"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-exif-util.h"</span> +<a id="line-46" name="line-46"></a><span class="cp">#endif</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="cp">#if HAVE_EXEMPI</span> +<a id="line-49" name="line-49"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><exempi/xmp.h></span> +<a id="line-50" name="line-50"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><exempi/xmpconsts.h></span> +<a id="line-51" name="line-51"></a><span class="cp">#endif</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="cm">/* There's no exempi support in the sidebar yet */</span> +<a id="line-54" name="line-54"></a><span class="cp">#if HAVE_EXIF </span><span class="cm">/*|| HAVE_EXEMPI */</span> +<a id="line-55" name="line-55"></a><span class="cp">#define HAVE_METADATA 1</span> +<a id="line-56" name="line-56"></a><span class="cp">#endif</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">PROP_PARENT_WINDOW</span> +<a id="line-62" name="line-62"></a><span class="p">};</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomMetadataSidebarPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">parent_window</span><span class="p">;</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">image_changed_id</span><span class="p">;</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">thumb_changed_id</span><span class="p">;</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">size_label</span><span class="p">;</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">type_label</span><span class="p">;</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">filesize_label</span><span class="p">;</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">folder_label</span><span class="p">;</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">aperture_label</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exposure_label</span><span class="p">;</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">focallen_label</span><span class="p">;</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">iso_label</span><span class="p">;</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">metering_label</span><span class="p">;</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">model_label</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">date_label</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">time_label</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="cp">#else</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">metadata_grid</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="cp">#endif</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_button</span><span class="p">;</span> +<a id="line-91" name="line-91"></a><span class="cp">#endif</span> +<a id="line-92" name="line-92"></a><span class="p">};</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="p">(</span><span class="n">EomMetadataSidebar</span><span class="p">,</span><span class="w"> </span><span class="n">eom_metadata_sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_SCROLLED_WINDOW</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-97" name="line-97"></a><span class="n">parent_file_display_name_query_info_cb</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">source_object</span><span class="p">,</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">GAsyncResult</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">,</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-100" name="line-100"></a><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">parent_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_FILE</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">baseuri</span><span class="p">;</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">;</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info_finish</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">,</span><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">g_file_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">));</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="p">}</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">baseuri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="s">"<a href=</span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s">>%s</a>"</span><span class="p">,</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">baseuri</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">display_name</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">gtk_label_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_label</span><span class="p">),</span><span class="w"> </span><span class="n">str</span><span class="p">);</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">baseuri</span><span class="p">);</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">display_name</span><span class="p">);</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_label</span><span class="p">),</span><span class="w"> </span><span class="n">str</span><span class="p">);</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="p">}</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-134" name="line-134"></a><span class="n">eom_metadata_sidebar_update_general_section</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">)</span> +<a id="line-135" name="line-135"></a><span class="p">{</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">EomMetadataSidebarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">parent_file</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">goffset</span><span class="w"> </span><span class="n">bytes</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">size_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">type_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">filesize_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">folder_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">}</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">);</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">ngettext</span><span class="p">(</span><span class="s">"%i × %i pixel"</span><span class="p">,</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="s">"%i × %i pixels"</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">),</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">size_label</span><span class="p">),</span><span class="w"> </span><span class="n">str</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Unknown"</span><span class="p">));</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">mime_str</span><span class="p">;</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">mime_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_content_type_get_description</span><span class="w"> </span><span class="p">(</span><span class="n">mime_str</span><span class="p">);</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="p">}</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">type_label</span><span class="p">),</span><span class="w"> </span><span class="n">str</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-174" name="line-174"></a> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_bytes</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_format_size</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">filesize_label</span><span class="p">),</span><span class="w"> </span><span class="n">str</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-179" name="line-179"></a> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">parent_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="cm">/* file is root directory itself */</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">parent_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="p">}</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">gtk_label_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">g_file_query_info_async</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">,</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</span><span class="p">,</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">G_PRIORITY_DEFAULT</span><span class="p">,</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">parent_file_display_name_query_info_cb</span><span class="p">,</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">));</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-195" name="line-195"></a><span class="p">}</span> +<a id="line-196" name="line-196"></a> +<a id="line-197" name="line-197"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-198" name="line-198"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-199" name="line-199"></a><span class="n">eom_metadata_sidebar_update_metadata_section</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">)</span> +<a id="line-200" name="line-200"></a><span class="p">{</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">EomMetadataSidebarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-202" name="line-202"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">ExifData</span><span class="w"> </span><span class="o">*</span><span class="n">exif_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">exif_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_exif_info</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="p">}</span> +<a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">aperture_label</span><span class="p">),</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_FNUMBER</span><span class="p">);</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exposure_label</span><span class="p">),</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">EXIF_TAG_EXPOSURE_TIME</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">eom_exif_util_set_focal_length_label_text</span><span class="w"> </span><span class="p">(</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">focallen_label</span><span class="p">),</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">);</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">iso_label</span><span class="p">),</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">EXIF_TAG_ISO_SPEED_RATINGS</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metering_label</span><span class="p">),</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">EXIF_TAG_METERING_MODE</span><span class="p">);</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">model_label</span><span class="p">),</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_MODEL</span><span class="p">);</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">eom_exif_util_format_datetime_label</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">date_label</span><span class="p">),</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_ORIGINAL</span><span class="p">,</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"%a, %d %B %Y"</span><span class="p">));</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">eom_exif_util_format_datetime_label</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">time_label</span><span class="p">),</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_ORIGINAL</span><span class="p">,</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"%X"</span><span class="p">));</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="cm">/* exif_data_unref can handle NULL-values */</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="p">(</span><span class="n">exif_data</span><span class="p">);</span> +<a id="line-237" name="line-237"></a><span class="cp">#endif </span><span class="cm">/* HAVE_EXIF */</span> +<a id="line-238" name="line-238"></a><span class="p">}</span> +<a id="line-239" name="line-239"></a><span class="cp">#endif </span><span class="cm">/* HAVE_METADATA */</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-242" name="line-242"></a><span class="n">eom_metadata_sidebar_update</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">)</span> +<a id="line-243" name="line-243"></a><span class="p">{</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">));</span> +<a id="line-245" name="line-245"></a> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">eom_metadata_sidebar_update_general_section</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">eom_metadata_sidebar_update_metadata_section</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="cp">#endif</span> +<a id="line-250" name="line-250"></a><span class="p">}</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-253" name="line-253"></a><span class="n">_thumbnail_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-254" name="line-254"></a><span class="p">{</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">eom_metadata_sidebar_update</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-256" name="line-256"></a><span class="p">}</span> +<a id="line-257" name="line-257"></a> +<a id="line-258" name="line-258"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-259" name="line-259"></a><span class="n">eom_metadata_sidebar_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-260" name="line-260"></a><span class="p">{</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">EomMetadataSidebarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-262" name="line-262"></a> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-265" name="line-265"></a> +<a id="line-266" name="line-266"></a><span class="cp">#if GLIB_CHECK_VERSION(2,62,0)</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">g_clear_signal_handler</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_changed_id</span><span class="p">,</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-269" name="line-269"></a><span class="cp">#else</span> +<a id="line-270" name="line-270"></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">-></span><span class="n">thumb_changed_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_changed_id</span><span class="p">);</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="p">}</span> +<a id="line-275" name="line-275"></a><span class="cp">#endif</span> +<a id="line-276" name="line-276"></a> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-279" name="line-279"></a> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-281" name="line-281"></a> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_changed_id</span><span class="w"> </span><span class="o">=</span> +<a id="line-285" name="line-285"></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">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"thumbnail-changed"</span><span class="p">,</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">_thumbnail_changed_cb</span><span class="p">),</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">eom_metadata_sidebar_update</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="p">}</span> +<a id="line-290" name="line-290"></a> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">),</span><span class="w"> </span><span class="s">"image"</span><span class="p">);</span> +<a id="line-292" name="line-292"></a><span class="p">}</span> +<a id="line-293" name="line-293"></a> +<a id="line-294" name="line-294"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-295" name="line-295"></a><span class="n">_notify_image_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-296" name="line-296"></a><span class="p">{</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">));</span> +<a id="line-301" name="line-301"></a> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_scroll_view_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">));</span> +<a id="line-303" name="line-303"></a> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">eom_metadata_sidebar_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-306" name="line-306"></a> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="p">}</span> +<a id="line-310" name="line-310"></a> +<a id="line-311" name="line-311"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-312" name="line-312"></a><span class="n">_folder_label_clicked_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkLabel</span><span class="w"> </span><span class="o">*</span><span class="n">label</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">uri</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-313" name="line-313"></a><span class="p">{</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">EomMetadataSidebarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_SIDEBAR</span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toplevel</span><span class="p">;</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">parent_window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-321" name="line-321"></a> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">parent_window</span><span class="p">);</span> +<a id="line-323" name="line-323"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-324" name="line-324"></a> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">toplevel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_toplevel</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">));</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">GTK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">toplevel</span><span class="p">))</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">toplevel</span><span class="p">);</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">else</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-330" name="line-330"></a> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">eom_util_show_file_in_filemanager</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">window</span><span class="p">);</span> +<a id="line-332" name="line-332"></a> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-334" name="line-334"></a><span class="p">}</span> +<a id="line-335" name="line-335"></a> +<a id="line-336" name="line-336"></a><span class="cp">#ifdef HAVE_METADATA</span> +<a id="line-337" name="line-337"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-338" name="line-338"></a><span class="n">_details_button_clicked_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkButton</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-339" name="line-339"></a><span class="p">{</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">EomMetadataSidebarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_SIDEBAR</span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">;</span> +<a id="line-342" name="line-342"></a> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">parent_window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-344" name="line-344"></a> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_properties_dialog</span><span class="w"> </span><span class="p">(</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">parent_window</span><span class="p">));</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">eom_properties_dialog_set_page</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG_PAGE_DETAILS</span><span class="p">);</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="p">}</span> +<a id="line-352" name="line-352"></a><span class="cp">#endif </span><span class="cm">/* HAVE_METADATA */</span> +<a id="line-353" name="line-353"></a> +<a id="line-354" name="line-354"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-355" name="line-355"></a><span class="n">eom_metadata_sidebar_set_parent_window</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">,</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-357" name="line-357"></a><span class="p">{</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">EomMetadataSidebarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-360" name="line-360"></a> +<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">EOM_IS_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">));</span> +<a id="line-362" name="line-362"></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">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">parent_window</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">parent_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">eom_metadata_sidebar_update</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_view</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::image"</span><span class="p">,</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">_notify_image_cb</span><span class="p">),</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-371" name="line-371"></a> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">),</span><span class="w"> </span><span class="s">"parent-window"</span><span class="p">);</span> +<a id="line-373" name="line-373"></a> +<a id="line-374" name="line-374"></a><span class="p">}</span> +<a id="line-375" name="line-375"></a> +<a id="line-376" name="line-376"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-377" name="line-377"></a><span class="n">eom_metadata_sidebar_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">)</span> +<a id="line-378" name="line-378"></a><span class="p">{</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">EomMetadataSidebarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-380" name="line-380"></a> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_sidebar_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-382" name="line-382"></a> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">gtk_widget_init_template</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">));</span> +<a id="line-384" name="line-384"></a> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">folder_label</span><span class="p">,</span><span class="w"> </span><span class="s">"activate-link"</span><span class="p">,</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">_folder_label_clicked_cb</span><span class="p">),</span><span class="w"> </span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-387" name="line-387"></a> +<a id="line-388" name="line-388"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-389" name="line-389"></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">-></span><span class="n">details_button</span><span class="p">,</span><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">_details_button_clicked_cb</span><span class="p">),</span><span class="w"> </span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-391" name="line-391"></a><span class="cp">#endif </span><span class="cm">/* HAVE_METADATA */</span> +<a id="line-392" name="line-392"></a> +<a id="line-393" name="line-393"></a><span class="cp">#ifndef HAVE_EXIF</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="p">{</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="cm">/* Remove the lower 8 lines as they are empty without libexif*/</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-397" name="line-397"></a> +<a id="line-398" name="line-398"></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">11</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">3</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">--</span><span class="p">)</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="p">{</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gtk_grid_remove_row</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_grid</span><span class="p">),</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="p">}</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="p">}</span> +<a id="line-403" name="line-403"></a><span class="cp">#endif </span><span class="cm">/* !HAVE_EXIF */</span> +<a id="line-404" name="line-404"></a><span class="p">}</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-407" name="line-407"></a><span class="n">eom_metadata_sidebar_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-409" name="line-409"></a><span class="p">{</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">;</span> +<a id="line-411" name="line-411"></a> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-413" name="line-413"></a> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-415" name="line-415"></a> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="p">{</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="p">}</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PARENT_WINDOW</span><span class="p">:</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">parent_window</span><span class="p">);</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="p">}</span> +<a id="line-428" name="line-428"></a><span class="p">}</span> +<a id="line-429" name="line-429"></a> +<a id="line-430" name="line-430"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-431" name="line-431"></a><span class="n">eom_metadata_sidebar_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-433" name="line-433"></a><span class="p">{</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">;</span> +<a id="line-435" name="line-435"></a> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-437" name="line-437"></a> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_METADATA_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="p">{</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="p">}</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PARENT_WINDOW</span><span class="p">:</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="p">{</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-448" name="line-448"></a> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">eom_metadata_sidebar_set_parent_window</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">}</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="p">}</span> +<a id="line-456" name="line-456"></a> +<a id="line-457" name="line-457"></a><span class="p">}</span> +<a id="line-458" name="line-458"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-459" name="line-459"></a><span class="n">eom_metadata_sidebar_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomMetadataSidebarClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-460" name="line-460"></a><span class="p">{</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">g_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> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-463" name="line-463"></a> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_sidebar_get_property</span><span class="p">;</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_sidebar_set_property</span><span class="p">;</span> +<a id="line-466" name="line-466"></a><span class="cm">/* g_obj_class->dispose = eom_metadata_sidebar_dispose;*/</span> +<a id="line-467" name="line-467"></a> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_PARENT_WINDOW</span><span class="p">,</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"parent-window"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">EOM_TYPE_WINDOW</span><span class="p">,</span><span class="w"> </span><span class="n">G_PARAM_READWRITE</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_STRINGS</span><span class="p">));</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"image"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_STRINGS</span><span class="p">)</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">);</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">gtk_widget_class_set_template_from_resource</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="s">"/org/mate/eom/ui/metadata-sidebar.ui"</span><span class="p">);</span> +<a id="line-482" name="line-482"></a> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">size_label</span><span class="p">);</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">type_label</span><span class="p">);</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">filesize_label</span><span class="p">);</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">folder_label</span><span class="p">);</span> +<a id="line-495" name="line-495"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">aperture_label</span><span class="p">);</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">exposure_label</span><span class="p">);</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">focallen_label</span><span class="p">);</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">iso_label</span><span class="p">);</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">metering_label</span><span class="p">);</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">model_label</span><span class="p">);</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">date_label</span><span class="p">);</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">time_label</span><span class="p">);</span> +<a id="line-520" name="line-520"></a><span class="cp">#else</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">metadata_grid</span><span class="p">);</span> +<a id="line-524" name="line-524"></a><span class="cp">#endif </span><span class="cm">/* HAVE_EXIF */</span> +<a id="line-525" name="line-525"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">EomMetadataSidebar</span><span class="p">,</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">details_button</span><span class="p">);</span> +<a id="line-529" name="line-529"></a><span class="cp">#endif </span><span class="cm">/* HAVE_METADATA */</span> +<a id="line-530" name="line-530"></a><span class="p">}</span> +<a id="line-531" name="line-531"></a> +<a id="line-532" name="line-532"></a><span class="n">GtkWidget</span><span class="o">*</span> +<a id="line-533" name="line-533"></a><span class="n">eom_metadata_sidebar_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-534" name="line-534"></a><span class="p">{</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gtk_widget_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_METADATA_SIDEBAR</span><span class="p">,</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="s">"hadjustment"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="s">"vadjustment"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="s">"hscrollbar-policy"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_POLICY_NEVER</span><span class="p">,</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="s">"vscrollbar-policy"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">,</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="s">"parent-window"</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">,</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-542" name="line-542"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/2.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/2.html new file mode 100644 index 0000000..efc67ad --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/2.html @@ -0,0 +1,2191 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: cut-n-paste/toolbar-editor/egg-toolbars-model.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> egg-toolbars-model.c</p> +<a href="2.html#line-65"> unknownMacro 65</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span> +<span class="normal">789</span> +<span class="normal">790</span> +<span class="normal">791</span> +<span class="normal">792</span> +<span class="normal">793</span> +<span class="normal">794</span> +<span class="normal">795</span> +<span class="normal">796</span> +<span class="normal">797</span> +<span class="normal">798</span> +<span class="normal">799</span> +<span class="normal">800</span> +<span class="normal">801</span> +<span class="normal">802</span> +<span class="normal">803</span> +<span class="normal">804</span> +<span class="normal">805</span> +<span class="normal">806</span> +<span class="normal">807</span> +<span class="normal">808</span> +<span class="normal">809</span> +<span class="normal">810</span> +<span class="normal">811</span> +<span class="normal">812</span> +<span class="normal">813</span> +<span class="normal">814</span> +<span class="normal">815</span> +<span class="normal">816</span> +<span class="normal">817</span> +<span class="normal">818</span> +<span class="normal">819</span> +<span class="normal">820</span> +<span class="normal">821</span> +<span class="normal">822</span> +<span class="normal">823</span> +<span class="normal">824</span> +<span class="normal">825</span> +<span class="normal">826</span> +<span class="normal">827</span> +<span class="normal">828</span> +<span class="normal">829</span> +<span class="normal">830</span> +<span class="normal">831</span> +<span class="normal">832</span> +<span class="normal">833</span> +<span class="normal">834</span> +<span class="normal">835</span> +<span class="normal">836</span> +<span class="normal">837</span> +<span class="normal">838</span> +<span class="normal">839</span> +<span class="normal">840</span> +<span class="normal">841</span> +<span class="normal">842</span> +<span class="normal">843</span> +<span class="normal">844</span> +<span class="normal">845</span> +<span class="normal">846</span> +<span class="normal">847</span> +<span class="normal">848</span> +<span class="normal">849</span> +<span class="normal">850</span> +<span class="normal">851</span> +<span class="normal">852</span> +<span class="normal">853</span> +<span class="normal">854</span> +<span class="normal">855</span> +<span class="normal">856</span> +<span class="normal">857</span> +<span class="normal">858</span> +<span class="normal">859</span> +<span class="normal">860</span> +<span class="normal">861</span> +<span class="normal">862</span> +<span class="normal">863</span> +<span class="normal">864</span> +<span class="normal">865</span> +<span class="normal">866</span> +<span class="normal">867</span> +<span class="normal">868</span> +<span class="normal">869</span> +<span class="normal">870</span> +<span class="normal">871</span> +<span class="normal">872</span> +<span class="normal">873</span> +<span class="normal">874</span> +<span class="normal">875</span> +<span class="normal">876</span> +<span class="normal">877</span> +<span class="normal">878</span> +<span class="normal">879</span> +<span class="normal">880</span> +<span class="normal">881</span> +<span class="normal">882</span> +<span class="normal">883</span> +<span class="normal">884</span> +<span class="normal">885</span> +<span class="normal">886</span> +<span class="normal">887</span> +<span class="normal">888</span> +<span class="normal">889</span> +<span class="normal">890</span> +<span class="normal">891</span> +<span class="normal">892</span> +<span class="normal">893</span> +<span class="normal">894</span> +<span class="normal">895</span> +<span class="normal">896</span> +<span class="normal">897</span> +<span class="normal">898</span> +<span class="normal">899</span> +<span class="normal">900</span> +<span class="normal">901</span> +<span class="normal">902</span> +<span class="normal">903</span> +<span class="normal">904</span> +<span class="normal">905</span> +<span class="normal">906</span> +<span class="normal">907</span> +<span class="normal">908</span> +<span class="normal">909</span> +<span class="normal">910</span> +<span class="normal">911</span> +<span class="normal">912</span> +<span class="normal">913</span> +<span class="normal">914</span> +<span class="normal">915</span> +<span class="normal">916</span> +<span class="normal">917</span> +<span class="normal">918</span> +<span class="normal">919</span> +<span class="normal">920</span> +<span class="normal">921</span> +<span class="normal">922</span> +<span class="normal">923</span> +<span class="normal">924</span> +<span class="normal">925</span> +<span class="normal">926</span> +<span class="normal">927</span> +<span class="normal">928</span> +<span class="normal">929</span> +<span class="normal">930</span> +<span class="normal">931</span> +<span class="normal">932</span> +<span class="normal">933</span> +<span class="normal">934</span> +<span class="normal">935</span> +<span class="normal">936</span> +<span class="normal">937</span> +<span class="normal">938</span> +<span class="normal">939</span> +<span class="normal">940</span> +<span class="normal">941</span> +<span class="normal">942</span> +<span class="normal">943</span> +<span class="normal">944</span> +<span class="normal">945</span> +<span class="normal">946</span> +<span class="normal">947</span> +<span class="normal">948</span> +<span class="normal">949</span> +<span class="normal">950</span> +<span class="normal">951</span> +<span class="normal">952</span> +<span class="normal">953</span> +<span class="normal">954</span> +<span class="normal">955</span> +<span class="normal">956</span> +<span class="normal">957</span> +<span class="normal">958</span> +<span class="normal">959</span> +<span class="normal">960</span> +<span class="normal">961</span> +<span class="normal">962</span> +<span class="normal">963</span> +<span class="normal">964</span> +<span class="normal">965</span> +<span class="normal">966</span> +<span class="normal">967</span> +<span class="normal">968</span> +<span class="normal">969</span> +<span class="normal">970</span> +<span class="normal">971</span> +<span class="normal">972</span> +<span class="normal">973</span> +<span class="normal">974</span> +<span class="normal">975</span> +<span class="normal">976</span> +<span class="normal">977</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2002-2004 Marco Pesenti Gritti</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2004 Christian Persch</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 as published by</span> +<a id="line-7" name="line-7"></a><span class="cm"> * the Free Software Foundation; either version 2, or (at your option)</span> +<a id="line-8" name="line-8"></a><span class="cm"> * any later version.</span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</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</span> +<a id="line-13" name="line-13"></a><span class="cm"> * GNU 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 General Public License</span> +<a id="line-16" name="line-16"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-17" name="line-17"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-18" name="line-18"></a><span class="cm"> *</span> +<a id="line-19" name="line-19"></a><span class="cm"> * $Id: egg-toolbars-model.c 929 2009-02-19 14:49:56Z friemann $</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</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">"egg-toolbars-model.h"</span> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eggtypebuiltins.h"</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eggmarshalers.h"</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><unistd.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libxml/tree.h></span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdk.h></span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">egg_toolbars_model_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">);</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="k">enum</span> +<a id="line-36" name="line-36"></a><span class="p">{</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">ITEM_ADDED</span><span class="p">,</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">ITEM_REMOVED</span><span class="p">,</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">TOOLBAR_ADDED</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">TOOLBAR_CHANGED</span><span class="p">,</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">TOOLBAR_REMOVED</span><span class="p">,</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span> +<a id="line-43" name="line-43"></a><span class="p">};</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-46" name="line-46"></a><span class="p">{</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">EggTbModelFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-49" name="line-49"></a><span class="p">}</span><span class="w"> </span><span class="n">EggToolbarsToolbar</span><span class="p">;</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-52" name="line-52"></a><span class="p">{</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-54" name="line-54"></a><span class="p">}</span><span class="w"> </span><span class="n">EggToolbarsItem</span><span class="p">;</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">LAST_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="k">struct</span><span class="w"> </span><span class="nc">EggToolbarsModelPrivate</span> +<a id="line-59" name="line-59"></a><span class="p">{</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbars</span><span class="p">;</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">types</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">flags</span><span class="p">;</span> +<a id="line-63" name="line-63"></a><span class="p">};</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="p">,</span><span class="w"> </span><span class="n">egg_toolbars_model</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="k">static</span><span class="w"> </span><span class="n">xmlDocPtr</span> +<a id="line-68" name="line-68"></a><span class="n">egg_toolbars_model_to_xml</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-69" name="line-69"></a><span class="p">{</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">l1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">l2</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">tl</span><span class="p">;</span> +<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">l3</span><span class="p">;</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">xmlDocPtr</span><span class="w"> </span><span class="n">doc</span><span class="p">;</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">tl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">;</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">xmlIndentTreeOutput</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">doc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlNewDoc</span><span class="w"> </span><span class="p">((</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"1.0"</span><span class="p">);</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">doc</span><span class="o">-></span><span class="n">children</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlNewDocNode</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"toolbars"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tl</span><span class="o">-></span><span class="n">children</span><span class="p">;</span><span class="w"> </span><span class="n">l1</span><span class="w"> </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">l1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l1</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">{</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">tnode</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">EggToolbarsToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l1</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">tnode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlNewChild</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="o">-></span><span class="n">children</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"toolbar"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">xmlSetProp</span><span class="w"> </span><span class="p">(</span><span class="n">tnode</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"name"</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">name</span><span class="p">);</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">xmlSetProp</span><span class="w"> </span><span class="p">(</span><span class="n">tnode</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"hidden"</span><span class="p">,</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="o">-></span><span class="n">flags</span><span class="o">&</span><span class="n">EGG_TB_MODEL_HIDDEN</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"true"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"false"</span><span class="p">);</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">xmlSetProp</span><span class="w"> </span><span class="p">(</span><span class="n">tnode</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"editable"</span><span class="p">,</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="o">-></span><span class="n">flags</span><span class="o">&</span><span class="n">EGG_TB_MODEL_NOT_EDITABLE</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"false"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"true"</span><span class="p">);</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l1</span><span class="o">-></span><span class="n">children</span><span class="p">;</span><span class="w"> </span><span class="n">l2</span><span class="w"> </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">l2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l2</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="p">{</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">EggToolbarsItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l2</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></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">item</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"_separator"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlNewChild</span><span class="w"> </span><span class="p">(</span><span class="n">tnode</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"separator"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="p">}</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlNewChild</span><span class="w"> </span><span class="p">(</span><span class="n">tnode</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"toolitem"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">xmlSetProp</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"name"</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">name</span><span class="p">);</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="cm">/* Add 'data' nodes for each data type which can be written out for this</span> +<a id="line-109" name="line-109"></a><span class="cm"> * item. Only write types which can be used to restore the data. */</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">types</span><span class="p">;</span><span class="w"> </span><span class="n">l3</span><span class="w"> </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">l3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l3</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">{</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">EggToolbarsItemType</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l3</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="o">-></span><span class="n">get_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">type</span><span class="o">-></span><span class="n">get_data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="p">{</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">dnode</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type</span><span class="o">-></span><span class="n">get_data</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">name</span><span class="p">);</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">{</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">dnode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlNewTextChild</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"data"</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">tmp</span><span class="p">);</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_atom_name</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="o">-></span><span class="n">type</span><span class="p">);</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">xmlSetProp</span><span class="w"> </span><span class="p">(</span><span class="n">dnode</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"type"</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">tmp</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="p">}</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">}</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">}</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">}</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="p">}</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">doc</span><span class="p">;</span> +<a id="line-134" name="line-134"></a><span class="p">}</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-137" name="line-137"></a><span class="n">safe_save_xml</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">xml_file</span><span class="p">,</span><span class="w"> </span><span class="n">xmlDocPtr</span><span class="w"> </span><span class="n">doc</span><span class="p">)</span> +<a id="line-138" name="line-138"></a><span class="p">{</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_file</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">old_file</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">old_exist</span><span class="p">;</span> +<a id="line-142" name="line-142"></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> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">tmp_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="s">".tmp"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">old_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="s">".old"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xmlSaveFormatFile</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">,</span><span class="w"> </span><span class="n">doc</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">{</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Failed to write XML data to %s"</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">failed</span><span class="p">;</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="p">}</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">old_exist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">);</span> +<a id="line-154" name="line-154"></a> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old_exist</span><span class="p">)</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="p">{</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rename</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="n">old_file</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="p">{</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Failed to rename %s to %s"</span><span class="p">,</span><span class="w"> </span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="n">old_file</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">failed</span><span class="p">;</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="p">}</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="p">}</span> +<a id="line-164" name="line-164"></a> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rename</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">,</span><span class="w"> </span><span class="n">xml_file</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">{</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Failed to rename %s to %s"</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file</span><span class="p">,</span><span class="w"> </span><span class="n">xml_file</span><span class="p">);</span> +<a id="line-168" name="line-168"></a> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rename</span><span class="w"> </span><span class="p">(</span><span class="n">old_file</span><span class="p">,</span><span class="w"> </span><span class="n">xml_file</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">{</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Failed to restore %s from %s"</span><span class="p">,</span><span class="w"> </span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="p">}</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">failed</span><span class="p">;</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="p">}</span> +<a id="line-176" name="line-176"></a> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old_exist</span><span class="p">)</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">{</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">unlink</span><span class="w"> </span><span class="p">(</span><span class="n">old_file</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">{</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Failed to delete old file %s"</span><span class="p">,</span><span class="w"> </span><span class="n">old_file</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">}</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="p">}</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="nl">failed</span><span class="p">:</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">old_file</span><span class="p">);</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_file</span><span class="p">);</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span> +<a id="line-190" name="line-190"></a><span class="p">}</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="kt">void</span> +<a id="line-193" name="line-193"></a><span class="n">egg_toolbars_model_save_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">xml_file</span><span class="p">,</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">version</span><span class="p">)</span> +<a id="line-196" name="line-196"></a><span class="p">{</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">xmlDocPtr</span><span class="w"> </span><span class="n">doc</span><span class="p">;</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">root</span><span class="p">;</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">));</span> +<a id="line-201" name="line-201"></a> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">doc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_to_xml</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">);</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlDocGetRootElement</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">xmlSetProp</span><span class="w"> </span><span class="p">(</span><span class="n">root</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"version"</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">version</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">safe_save_xml</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="n">doc</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">xmlFreeDoc</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="p">}</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-210" name="line-210"></a><span class="n">is_unique</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">EggToolbarsItem</span><span class="w"> </span><span class="o">*</span><span class="n">idata</span><span class="p">)</span> +<a id="line-212" name="line-212"></a><span class="p">{</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">EggToolbarsItem</span><span class="w"> </span><span class="o">*</span><span class="n">idata2</span><span class="p">;</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-215" name="line-215"></a> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_first_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </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">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_next_sibling</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">))</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="p">{</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_first_child</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_next_sibling</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">))</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="p">{</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">idata2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">idata</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">idata2</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">idata</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">idata2</span><span class="o">-></span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="p">{</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="p">}</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="p">}</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="p">}</span> +<a id="line-230" name="line-230"></a> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-232" name="line-232"></a><span class="p">}</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="k">static</span><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span> +<a id="line-235" name="line-235"></a><span class="n">toolbar_node_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-236" name="line-236"></a><span class="p">{</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">EggToolbarsToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-238" name="line-238"></a> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">toolbar</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">EggToolbarsToolbar</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-242" name="line-242"></a> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_node_new</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-244" name="line-244"></a><span class="p">}</span> +<a id="line-245" name="line-245"></a> +<a id="line-246" name="line-246"></a><span class="k">static</span><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span> +<a id="line-247" name="line-247"></a><span class="n">item_node_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-248" name="line-248"></a><span class="p">{</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">EggToolbarsItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></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">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-253" name="line-253"></a> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">item</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">EggToolbarsItem</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-256" name="line-256"></a> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">name</span><span class="p">));</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_INFINITE</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">,</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-></span><span class="n">name</span><span class="p">),</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_USED</span><span class="p">));</span> +<a id="line-262" name="line-262"></a> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_node_new</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="p">}</span> +<a id="line-265" name="line-265"></a> +<a id="line-266" name="line-266"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-267" name="line-267"></a><span class="n">item_node_free</span><span class="w"> </span><span class="p">(</span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">item_node</span><span class="p">,</span><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-268" name="line-268"></a><span class="p">{</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">EggToolbarsItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item_node</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-271" name="line-271"></a> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">name</span><span class="p">));</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_INFINITE</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">is_unique</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">item</span><span class="p">))</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">,</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-></span><span class="n">name</span><span class="p">),</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="o">~</span><span class="n">EGG_TB_MODEL_NAME_USED</span><span class="p">));</span> +<a id="line-277" name="line-277"></a> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-></span><span class="n">name</span><span class="p">);</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-280" name="line-280"></a> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">g_node_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">item_node</span><span class="p">);</span> +<a id="line-282" name="line-282"></a><span class="p">}</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-285" name="line-285"></a><span class="n">toolbar_node_free</span><span class="w"> </span><span class="p">(</span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar_node</span><span class="p">,</span><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-286" name="line-286"></a><span class="p">{</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">EggToolbarsToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar_node</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-288" name="line-288"></a> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">g_node_children_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_node</span><span class="p">,</span><span class="w"> </span><span class="n">G_TRAVERSE_ALL</span><span class="p">,</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="p">(</span><span class="n">GNodeForeachFunc</span><span class="p">)</span><span class="w"> </span><span class="n">item_node_free</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-291" name="line-291"></a> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="o">-></span><span class="n">name</span><span class="p">);</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-294" name="line-294"></a> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">g_node_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_node</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="p">}</span> +<a id="line-297" name="line-297"></a> +<a id="line-298" name="line-298"></a><span class="n">EggTbModelFlags</span> +<a id="line-299" name="line-299"></a><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">)</span> +<a id="line-301" name="line-301"></a><span class="p">{</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar_node</span><span class="p">;</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">EggToolbarsToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-304" name="line-304"></a> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">toolbar_node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-306" name="line-306"></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">toolbar_node</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-307" name="line-307"></a> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar_node</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">flags</span><span class="p">;</span> +<a id="line-311" name="line-311"></a><span class="p">}</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="kt">void</span> +<a id="line-314" name="line-314"></a><span class="n">egg_toolbars_model_set_flags</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">EggTbModelFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">)</span> +<a id="line-317" name="line-317"></a><span class="p">{</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar_node</span><span class="p">;</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">EggToolbarsToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-320" name="line-320"></a> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">toolbar_node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar_node</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-323" name="line-323"></a> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar_node</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-325" name="line-325"></a> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TOOLBAR_CHANGED</span><span class="p">],</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-330" name="line-330"></a><span class="p">}</span> +<a id="line-331" name="line-331"></a> +<a id="line-332" name="line-332"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-333" name="line-333"></a><span class="n">egg_toolbars_model_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">GdkAtom</span><span class="w"> </span><span class="n">type</span><span class="p">,</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-336" name="line-336"></a><span class="p">{</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">EggToolbarsItemType</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">;</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="kt">char</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> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span> +<a id="line-340" name="line-340"></a> +<a id="line-341" name="line-341"></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">GDK_NONE</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">gdk_atom_intern</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TOOLBAR_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">))</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="p">{</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">name</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="nb">NULL</span><span class="p">);</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="p">}</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">types</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="p">{</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">get_data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">{</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">get_data</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="p">}</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="p">}</span> +<a id="line-357" name="line-357"></a> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-359" name="line-359"></a><span class="p">}</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-362" name="line-362"></a><span class="n">egg_toolbars_model_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">GdkAtom</span><span class="w"> </span><span class="n">type</span><span class="p">,</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">,</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">create</span><span class="p">)</span> +<a id="line-366" name="line-366"></a><span class="p">{</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">EggToolbarsItemType</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">;</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span> +<a id="line-370" name="line-370"></a> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_NONE</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">gdk_atom_intern</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TOOLBAR_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">))</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="p">{</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strdup</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="p">}</span> +<a id="line-377" name="line-377"></a> +<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="n">create</span><span class="p">)</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="p">{</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">types</span><span class="p">;</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="p">{</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-></span><span class="n">data</span><span class="p">;</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">t</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">new_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">new_name</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="p">}</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">name</span><span class="p">;</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="p">}</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="k">else</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="p">{</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">types</span><span class="p">;</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="p">{</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">get_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="o">-></span><span class="n">get_name</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="p">}</span> +<a id="line-397" name="line-397"></a> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">name</span><span class="p">;</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="p">}</span> +<a id="line-400" name="line-400"></a><span class="p">}</span> +<a id="line-401" name="line-401"></a> +<a id="line-402" name="line-402"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-403" name="line-403"></a><span class="n">impl_add_item</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-407" name="line-407"></a><span class="p">{</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">parent_node</span><span class="p">;</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">child_node</span><span class="p">;</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">real_position</span><span class="p">;</span> +<a id="line-411" name="line-411"></a> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-413" name="line-413"></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">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-414" name="line-414"></a> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">parent_node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">child_node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item_node_new</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">g_node_insert</span><span class="w"> </span><span class="p">(</span><span class="n">parent_node</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">,</span><span class="w"> </span><span class="n">child_node</span><span class="p">);</span> +<a id="line-418" name="line-418"></a> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">real_position</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_child_position</span><span class="w"> </span><span class="p">(</span><span class="n">parent_node</span><span class="p">,</span><span class="w"> </span><span class="n">child_node</span><span class="p">);</span> +<a id="line-420" name="line-420"></a> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">ITEM_ADDED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span><span class="w"> </span><span class="n">real_position</span><span class="p">);</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-425" name="line-425"></a><span class="p">}</span> +<a id="line-426" name="line-426"></a> +<a id="line-427" name="line-427"></a><span class="n">gboolean</span> +<a id="line-428" name="line-428"></a><span class="n">egg_toolbars_model_add_item</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-432" name="line-432"></a><span class="p">{</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">EggToolbarsModelClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_TOOLBARS_MODEL_GET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">);</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">klass</span><span class="o">-></span><span class="n">add_item</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-435" name="line-435"></a><span class="p">}</span> +<a id="line-436" name="line-436"></a> +<a id="line-437" name="line-437"></a><span class="kt">int</span> +<a id="line-438" name="line-438"></a><span class="n">egg_toolbars_model_add_toolbar</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-441" name="line-441"></a><span class="p">{</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">node</span><span class="p">;</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">real_position</span><span class="p">;</span> +<a id="line-444" name="line-444"></a> +<a id="line-445" name="line-445"></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">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-446" name="line-446"></a> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar_node_new</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">g_node_insert</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-449" name="line-449"></a> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">real_position</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_child_position</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-451" name="line-451"></a> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TOOLBAR_ADDED</span><span class="p">],</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">real_position</span><span class="p">);</span> +<a id="line-454" name="line-454"></a> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_node_child_position</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-456" name="line-456"></a><span class="p">}</span> +<a id="line-457" name="line-457"></a> +<a id="line-458" name="line-458"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-459" name="line-459"></a><span class="n">parse_data_list</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">child</span><span class="p">,</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">create</span><span class="p">)</span> +<a id="line-462" name="line-462"></a><span class="p">{</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="p">{</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"data"</span><span class="p">))</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="p">{</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">xmlChar</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlGetProp</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"type"</span><span class="p">);</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">xmlChar</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="n">xmlNodeGetContent</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">);</span> +<a id="line-470" name="line-470"></a> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="p">{</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">GdkAtom</span><span class="w"> </span><span class="n">atom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_atom_intern</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="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">atom</span><span class="p">,</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="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">create</span><span class="p">);</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="p">}</span> +<a id="line-476" name="line-476"></a> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">);</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="p">}</span> +<a id="line-480" name="line-480"></a> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">next</span><span class="p">;</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="p">}</span> +<a id="line-483" name="line-483"></a> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">name</span><span class="p">;</span> +<a id="line-485" name="line-485"></a><span class="p">}</span> +<a id="line-486" name="line-486"></a> +<a id="line-487" name="line-487"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-488" name="line-488"></a><span class="n">parse_item_list</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">child</span><span class="p">,</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">)</span> +<a id="line-491" name="line-491"></a><span class="p">{</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">)</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="p">{</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"toolitem"</span><span class="p">))</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="p">{</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-497" name="line-497"></a> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="cm">/* Try to get the name using the data elements first,</span> +<a id="line-499" name="line-499"></a><span class="cm"> as they are more 'portable' or 'persistent'. */</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_data_list</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">children</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="p">{</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_data_list</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">children</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="p">}</span> +<a id="line-505" name="line-505"></a> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="cm">/* If that fails, try to use the name. */</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="p">{</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">xmlChar</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlGetProp</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"type"</span><span class="p">);</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">xmlChar</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="n">xmlGetProp</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"name"</span><span class="p">);</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">GdkAtom</span><span class="w"> </span><span class="n">atom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">gdk_atom_intern</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="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">GDK_NONE</span><span class="p">;</span> +<a id="line-512" name="line-512"></a> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="cm">/* If an old format, try to use it. */</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">atom</span><span class="p">,</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="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="p">{</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">atom</span><span class="p">,</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="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="p">}</span> +<a id="line-519" name="line-519"></a> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">);</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="p">}</span> +<a id="line-523" name="line-523"></a> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="p">{</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">egg_toolbars_model_add_item</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="p">}</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="p">}</span> +<a id="line-530" name="line-530"></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">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"separator"</span><span class="p">))</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="p">{</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">egg_toolbars_model_add_item</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="s">"_separator"</span><span class="p">);</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="p">}</span> +<a id="line-534" name="line-534"></a> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">next</span><span class="p">;</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="p">}</span> +<a id="line-537" name="line-537"></a><span class="p">}</span> +<a id="line-538" name="line-538"></a> +<a id="line-539" name="line-539"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-540" name="line-540"></a><span class="n">parse_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">child</span><span class="p">)</span> +<a id="line-542" name="line-542"></a><span class="p">{</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">)</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="p">{</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"toolbar"</span><span class="p">))</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="p">{</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">xmlChar</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">;</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">;</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">EggTbModelFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-550" name="line-550"></a> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlGetProp</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"name"</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">position</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_add_toolbar</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</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="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">string</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">);</span> +<a id="line-555" name="line-555"></a> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlGetProp</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"editable"</span><span class="p">);</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"false"</span><span class="p">))</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NOT_EDITABLE</span><span class="p">;</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">);</span> +<a id="line-560" name="line-560"></a> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlGetProp</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"hidden"</span><span class="p">);</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"true"</span><span class="p">))</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_TB_MODEL_HIDDEN</span><span class="p">;</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">);</span> +<a id="line-565" name="line-565"></a> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlGetProp</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"style"</span><span class="p">);</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"icons-only"</span><span class="p">))</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EGG_TB_MODEL_ICONS</span><span class="p">;</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">);</span> +<a id="line-570" name="line-570"></a> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">egg_toolbars_model_set_flags</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">);</span> +<a id="line-572" name="line-572"></a> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">parse_item_list</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">children</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="p">}</span> +<a id="line-575" name="line-575"></a> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">next</span><span class="p">;</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="p">}</span> +<a id="line-578" name="line-578"></a><span class="p">}</span> +<a id="line-579" name="line-579"></a> +<a id="line-580" name="line-580"></a><span class="n">gboolean</span> +<a id="line-581" name="line-581"></a><span class="n">egg_toolbars_model_load_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">xml_file</span><span class="p">)</span> +<a id="line-583" name="line-583"></a><span class="p">{</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">xmlDocPtr</span><span class="w"> </span><span class="n">doc</span><span class="p">;</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">root</span><span class="p">;</span> +<a id="line-586" name="line-586"></a> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-588" name="line-588"></a> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">xml_file</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-590" name="line-590"></a> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">doc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlParseFile</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">);</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="p">{</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Failed to load XML data from %s"</span><span class="p">,</span><span class="w"> </span><span class="n">xml_file</span><span class="p">);</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="p">}</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlDocGetRootElement</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="p">);</span> +<a id="line-598" name="line-598"></a> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">parse_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">root</span><span class="o">-></span><span class="n">children</span><span class="p">);</span> +<a id="line-600" name="line-600"></a> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">xmlFreeDoc</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="p">);</span> +<a id="line-602" name="line-602"></a> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-604" name="line-604"></a><span class="p">}</span> +<a id="line-605" name="line-605"></a> +<a id="line-606" name="line-606"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-607" name="line-607"></a><span class="n">parse_available_list</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">child</span><span class="p">)</span> +<a id="line-609" name="line-609"></a><span class="p">{</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-611" name="line-611"></a> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">)</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="p">{</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"toolitem"</span><span class="p">))</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="p">{</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">xmlChar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlGetProp</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"name"</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_name_flags</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</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="o">*</span><span class="p">)</span><span class="n">name</span><span class="p">);</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">egg_toolbars_model_set_name_flags</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</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="o">*</span><span class="p">)</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_KNOWN</span><span class="p">);</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">xmlFree</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="p">}</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">next</span><span class="p">;</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="p">}</span> +<a id="line-627" name="line-627"></a><span class="p">}</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-630" name="line-630"></a><span class="n">parse_names</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">child</span><span class="p">)</span> +<a id="line-632" name="line-632"></a><span class="p">{</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">)</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="p">{</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xmlStrEqual</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">xmlChar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="s">"available"</span><span class="p">))</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="p">{</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">parse_available_list</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">children</span><span class="p">);</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="p">}</span> +<a id="line-639" name="line-639"></a> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child</span><span class="o">-></span><span class="n">next</span><span class="p">;</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="p">}</span> +<a id="line-642" name="line-642"></a><span class="p">}</span> +<a id="line-643" name="line-643"></a> +<a id="line-644" name="line-644"></a><span class="n">gboolean</span> +<a id="line-645" name="line-645"></a><span class="n">egg_toolbars_model_load_names</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">xml_file</span><span class="p">)</span> +<a id="line-647" name="line-647"></a><span class="p">{</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">xmlDocPtr</span><span class="w"> </span><span class="n">doc</span><span class="p">;</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">root</span><span class="p">;</span> +<a id="line-650" name="line-650"></a> +<a id="line-651" name="line-651"></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">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-652" name="line-652"></a> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">xml_file</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-654" name="line-654"></a> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">doc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlParseFile</span><span class="w"> </span><span class="p">(</span><span class="n">xml_file</span><span class="p">);</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="p">{</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Failed to load XML data from %s"</span><span class="p">,</span><span class="w"> </span><span class="n">xml_file</span><span class="p">);</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="p">}</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlDocGetRootElement</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="p">);</span> +<a id="line-662" name="line-662"></a> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">parse_names</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">root</span><span class="o">-></span><span class="n">children</span><span class="p">);</span> +<a id="line-664" name="line-664"></a> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">xmlFreeDoc</span><span class="w"> </span><span class="p">(</span><span class="n">doc</span><span class="p">);</span> +<a id="line-666" name="line-666"></a> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-668" name="line-668"></a><span class="p">}</span> +<a id="line-669" name="line-669"></a> +<a id="line-670" name="line-670"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-671" name="line-671"></a><span class="n">egg_toolbars_model_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModelClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-672" name="line-672"></a><span class="p">{</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-674" name="line-674"></a> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_finalize</span><span class="p">;</span> +<a id="line-676" name="line-676"></a> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">klass</span><span class="o">-></span><span class="n">add_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">impl_add_item</span><span class="p">;</span> +<a id="line-678" name="line-678"></a> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">ITEM_ADDED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"item_added"</span><span class="p">,</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">),</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModelClass</span><span class="p">,</span><span class="w"> </span><span class="n">item_added</span><span class="p">),</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">_egg_marshal_VOID__INT_INT</span><span class="p">,</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TOOLBAR_ADDED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"toolbar_added"</span><span class="p">,</span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">),</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModelClass</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_added</span><span class="p">),</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__INT</span><span class="p">,</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">ITEM_REMOVED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"item_removed"</span><span class="p">,</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">),</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModelClass</span><span class="p">,</span><span class="w"> </span><span class="n">item_removed</span><span class="p">),</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">_egg_marshal_VOID__INT_INT</span><span class="p">,</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TOOLBAR_REMOVED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"toolbar_removed"</span><span class="p">,</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">),</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModelClass</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_removed</span><span class="p">),</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__INT</span><span class="p">,</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TOOLBAR_CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"toolbar_changed"</span><span class="p">,</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">),</span> +<a id="line-710" name="line-710"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModelClass</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_changed</span><span class="p">),</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__INT</span><span class="p">,</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-714" name="line-714"></a><span class="p">}</span> +<a id="line-715" name="line-715"></a> +<a id="line-716" name="line-716"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-717" name="line-717"></a><span class="n">egg_toolbars_model_init</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-718" name="line-718"></a><span class="p">{</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">);</span> +<a id="line-720" name="line-720"></a> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">egg_toolbars_model_set_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"_separator"</span><span class="p">,</span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_KNOWN</span><span class="w"> </span><span class="o">|</span> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_INFINITE</span><span class="p">);</span> +<a id="line-726" name="line-726"></a><span class="p">}</span> +<a id="line-727" name="line-727"></a> +<a id="line-728" name="line-728"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-729" name="line-729"></a><span class="n">egg_toolbars_model_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-730" name="line-730"></a><span class="p">{</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EGG_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-732" name="line-732"></a> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">g_node_children_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">G_TRAVERSE_ALL</span><span class="p">,</span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="p">(</span><span class="n">GNodeForeachFunc</span><span class="p">)</span><span class="w"> </span><span class="n">toolbar_node_free</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">g_node_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">);</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">g_hash_table_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">);</span> +<a id="line-737" name="line-737"></a> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">egg_toolbars_model_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-739" name="line-739"></a><span class="p">}</span> +<a id="line-740" name="line-740"></a> +<a id="line-741" name="line-741"></a><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span> +<a id="line-742" name="line-742"></a><span class="n">egg_toolbars_model_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-743" name="line-743"></a><span class="p">{</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EGG_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TYPE_TOOLBARS_MODEL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-745" name="line-745"></a><span class="p">}</span> +<a id="line-746" name="line-746"></a> +<a id="line-747" name="line-747"></a><span class="kt">void</span> +<a id="line-748" name="line-748"></a><span class="n">egg_toolbars_model_remove_toolbar</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">)</span> +<a id="line-750" name="line-750"></a><span class="p">{</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">node</span><span class="p">;</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">EggTbModelFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-753" name="line-753"></a> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">));</span> +<a id="line-755" name="line-755"></a> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbars_model_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-757" name="line-757"></a> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NOT_REMOVABLE</span><span class="p">))</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="p">{</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-762" name="line-762"></a> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">toolbar_node_free</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-764" name="line-764"></a> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TOOLBAR_REMOVED</span><span class="p">],</span> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="p">}</span> +<a id="line-768" name="line-768"></a><span class="p">}</span> +<a id="line-769" name="line-769"></a> +<a id="line-770" name="line-770"></a><span class="kt">void</span> +<a id="line-771" name="line-771"></a><span class="n">egg_toolbars_model_remove_item</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">)</span> +<a id="line-774" name="line-774"></a><span class="p">{</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-776" name="line-776"></a> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">));</span> +<a id="line-778" name="line-778"></a> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-781" name="line-781"></a> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-784" name="line-784"></a> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">item_node_free</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-786" name="line-786"></a> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">ITEM_REMOVED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-789" name="line-789"></a><span class="p">}</span> +<a id="line-790" name="line-790"></a> +<a id="line-791" name="line-791"></a><span class="kt">void</span> +<a id="line-792" name="line-792"></a><span class="n">egg_toolbars_model_move_item</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">,</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">new_toolbar_position</span><span class="p">,</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">new_position</span><span class="p">)</span> +<a id="line-797" name="line-797"></a><span class="p">{</span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">new_toolbar</span><span class="p">;</span> +<a id="line-799" name="line-799"></a> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">));</span> +<a id="line-801" name="line-801"></a> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-804" name="line-804"></a> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">new_toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">new_toolbar_position</span><span class="p">);</span> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">new_toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-807" name="line-807"></a> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-810" name="line-810"></a> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">g_node_unlink</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="p">);</span> +<a id="line-812" name="line-812"></a> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">ITEM_REMOVED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-815" name="line-815"></a> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="n">g_node_insert</span><span class="w"> </span><span class="p">(</span><span class="n">new_toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">new_position</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-817" name="line-817"></a> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">ITEM_ADDED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">new_toolbar_position</span><span class="p">,</span><span class="w"> </span><span class="n">new_position</span><span class="p">);</span> +<a id="line-820" name="line-820"></a><span class="p">}</span> +<a id="line-821" name="line-821"></a> +<a id="line-822" name="line-822"></a><span class="kt">void</span> +<a id="line-823" name="line-823"></a><span class="n">egg_toolbars_model_delete_item</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-825" name="line-825"></a><span class="p">{</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">EggToolbarsItem</span><span class="w"> </span><span class="o">*</span><span class="n">idata</span><span class="p">;</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">EggToolbarsToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">tdata</span><span class="p">;</span> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="p">;</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">tpos</span><span class="p">,</span><span class="w"> </span><span class="n">ipos</span><span class="p">;</span> +<a id="line-830" name="line-830"></a> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_IS_TOOLBARS_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">));</span> +<a id="line-832" name="line-832"></a> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_first_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">);</span> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="n">tpos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-835" name="line-835"></a> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="p">{</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_first_child</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">ipos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-840" name="line-840"></a> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="cm">/* Don't delete toolbars that were already empty */</span> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="p">{</span> +<a id="line-844" name="line-844"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_next_sibling</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="p">}</span> +<a id="line-847" name="line-847"></a> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="p">{</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_next_sibling</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="n">idata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-852" name="line-852"></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">idata</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="p">{</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">item_node_free</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">ITEM_REMOVED</span><span class="p">],</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">tpos</span><span class="p">,</span><span class="w"> </span><span class="n">ipos</span><span class="p">);</span> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="p">}</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="k">else</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="p">{</span> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">ipos</span><span class="o">++</span><span class="p">;</span> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="p">}</span> +<a id="line-863" name="line-863"></a> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">next</span><span class="p">;</span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="p">}</span> +<a id="line-866" name="line-866"></a> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_next_sibling</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="n">tdata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">tdata</span><span class="o">-></span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NOT_REMOVABLE</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-870" name="line-870"></a><span class="w"> </span><span class="n">g_node_first_child</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="p">{</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">toolbar_node_free</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-873" name="line-873"></a> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">),</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TOOLBAR_REMOVED</span><span class="p">],</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">tpos</span><span class="p">);</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="p">}</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="k">else</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="p">{</span> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">tpos</span><span class="o">++</span><span class="p">;</span> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="p">}</span> +<a id="line-882" name="line-882"></a> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">next</span><span class="p">;</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="p">}</span> +<a id="line-885" name="line-885"></a><span class="p">}</span> +<a id="line-886" name="line-886"></a> +<a id="line-887" name="line-887"></a><span class="kt">int</span> +<a id="line-888" name="line-888"></a><span class="n">egg_toolbars_model_n_items</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">)</span> +<a id="line-890" name="line-890"></a><span class="p">{</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-892" name="line-892"></a> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-895" name="line-895"></a> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_node_n_children</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-897" name="line-897"></a><span class="p">}</span> +<a id="line-898" name="line-898"></a> +<a id="line-899" name="line-899"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-900" name="line-900"></a><span class="n">egg_toolbars_model_item_nth</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">,</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">)</span> +<a id="line-903" name="line-903"></a><span class="p">{</span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">EggToolbarsItem</span><span class="w"> </span><span class="o">*</span><span class="n">idata</span><span class="p">;</span> +<a id="line-907" name="line-907"></a> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">toolbar_position</span><span class="p">);</span> +<a id="line-909" name="line-909"></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">toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-910" name="line-910"></a> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-913" name="line-913"></a> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">idata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">idata</span><span class="o">-></span><span class="n">name</span><span class="p">;</span> +<a id="line-916" name="line-916"></a><span class="p">}</span> +<a id="line-917" name="line-917"></a> +<a id="line-918" name="line-918"></a><span class="kt">int</span> +<a id="line-919" name="line-919"></a><span class="n">egg_toolbars_model_n_toolbars</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-920" name="line-920"></a><span class="p">{</span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_node_n_children</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">);</span> +<a id="line-922" name="line-922"></a><span class="p">}</span> +<a id="line-923" name="line-923"></a> +<a id="line-924" name="line-924"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-925" name="line-925"></a><span class="n">egg_toolbars_model_toolbar_nth</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">position</span><span class="p">)</span> +<a id="line-927" name="line-927"></a><span class="p">{</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">GNode</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">EggToolbarsToolbar</span><span class="w"> </span><span class="o">*</span><span class="n">tdata</span><span class="p">;</span> +<a id="line-930" name="line-930"></a> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_node_nth_child</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbars</span><span class="p">,</span><span class="w"> </span><span class="n">position</span><span class="p">);</span> +<a id="line-932" name="line-932"></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">toolbar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-933" name="line-933"></a> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">tdata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">toolbar</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-935" name="line-935"></a> +<a id="line-936" name="line-936"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">tdata</span><span class="o">-></span><span class="n">name</span><span class="p">;</span> +<a id="line-937" name="line-937"></a><span class="p">}</span> +<a id="line-938" name="line-938"></a> +<a id="line-939" name="line-939"></a><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-940" name="line-940"></a><span class="n">egg_toolbars_model_get_types</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-941" name="line-941"></a><span class="p">{</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">types</span><span class="p">;</span> +<a id="line-943" name="line-943"></a><span class="p">}</span> +<a id="line-944" name="line-944"></a> +<a id="line-945" name="line-945"></a><span class="kt">void</span> +<a id="line-946" name="line-946"></a><span class="n">egg_toolbars_model_set_types</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">types</span><span class="p">)</span> +<a id="line-947" name="line-947"></a><span class="p">{</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">types</span><span class="p">;</span> +<a id="line-949" name="line-949"></a><span class="p">}</span> +<a id="line-950" name="line-950"></a> +<a id="line-951" name="line-951"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-952" name="line-952"></a><span class="n">fill_avail_array</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="p">)</span> +<a id="line-953" name="line-953"></a><span class="p">{</span> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_KNOWN</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_USED</span><span class="p">))</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span> +<a id="line-957" name="line-957"></a><span class="p">}</span> +<a id="line-958" name="line-958"></a> +<a id="line-959" name="line-959"></a><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span> +<a id="line-960" name="line-960"></a><span class="n">egg_toolbars_model_get_name_avail</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">)</span> +<a id="line-961" name="line-961"></a><span class="p">{</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">g_hash_table_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GHFunc</span><span class="p">)</span><span class="w"> </span><span class="n">fill_avail_array</span><span class="p">,</span><span class="w"> </span><span class="n">array</span><span class="p">);</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">array</span><span class="p">;</span> +<a id="line-965" name="line-965"></a><span class="p">}</span> +<a id="line-966" name="line-966"></a> +<a id="line-967" name="line-967"></a><span class="n">gint</span> +<a id="line-968" name="line-968"></a><span class="n">egg_toolbars_model_get_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-969" name="line-969"></a><span class="p">{</span> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">));</span> +<a id="line-971" name="line-971"></a><span class="p">}</span> +<a id="line-972" name="line-972"></a> +<a id="line-973" name="line-973"></a><span class="kt">void</span> +<a id="line-974" name="line-974"></a><span class="n">egg_toolbars_model_set_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">flags</span><span class="p">)</span> +<a id="line-975" name="line-975"></a><span class="p">{</span> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">),</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="p">));</span> +<a id="line-977" name="line-977"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/20.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/20.html new file mode 100644 index 0000000..4a3db90 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/20.html @@ -0,0 +1,515 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-plugin-engine.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-plugin-engine.c</p> +<a href="20.html#line-45"> unknownMacro 45</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - EOM Plugin Manager</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2007 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on gedit code (gedit/gedit-module.c) by:</span> +<a id="line-8" name="line-8"></a><span class="cm"> * - Paolo Maggi <[email protected]></span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-11" name="line-11"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-12" name="line-12"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-13" name="line-13"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-14" name="line-14"></a><span class="cm"> *</span> +<a id="line-15" name="line-15"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-16" name="line-16"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-17" name="line-17"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-18" name="line-18"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-19" name="line-19"></a><span class="cm"> *</span> +<a id="line-20" name="line-20"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-21" name="line-21"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-22" name="line-22"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-23" name="line-23"></a><span class="cm"> */</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-27" name="line-27"></a><span class="cp">#endif</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">"eom-plugin-engine.h"</span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-debug.h"</span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-config-keys.h"</span> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</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"><glib/gi18n.h></span> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><girepository.h></span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="cp">#define USER_EOM_PLUGINS_LOCATION "plugins/"</span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomPluginEnginePrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">plugins_settings</span><span class="p">;</span> +<a id="line-43" name="line-43"></a><span class="p">};</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomPluginEngine</span><span class="p">,</span><span class="w"> </span><span class="n">eom_plugin_engine</span><span class="p">,</span><span class="w"> </span><span class="n">PEAS_TYPE_ENGINE</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-48" name="line-48"></a><span class="n">eom_plugin_engine_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-49" name="line-49"></a><span class="p">{</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">EomPluginEngine</span><span class="w"> </span><span class="o">*</span><span class="n">engine</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PLUGIN_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">engine</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugins_settings</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="p">{</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">engine</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugins_settings</span><span class="p">);</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">engine</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugins_settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="p">}</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_plugin_engine_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-59" name="line-59"></a><span class="p">}</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-62" name="line-62"></a><span class="n">eom_plugin_engine_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPluginEngineClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-63" name="line-63"></a><span class="p">{</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_plugin_engine_dispose</span><span class="p">;</span> +<a id="line-67" name="line-67"></a><span class="p">}</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-70" name="line-70"></a><span class="n">eom_plugin_engine_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPluginEngine</span><span class="w"> </span><span class="o">*</span><span class="n">engine</span><span class="p">)</span> +<a id="line-71" name="line-71"></a><span class="p">{</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_PLUGINS</span><span class="p">);</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">engine</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_plugin_engine_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">engine</span><span class="p">);</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">engine</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugins_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">EOM_CONF_PLUGINS</span><span class="p">);</span> +<a id="line-77" name="line-77"></a><span class="p">}</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="n">EomPluginEngine</span><span class="w"> </span><span class="o">*</span> +<a id="line-80" name="line-80"></a><span class="n">eom_plugin_engine_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-81" name="line-81"></a><span class="p">{</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">EomPluginEngine</span><span class="w"> </span><span class="o">*</span><span class="n">engine</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">user_plugin_path</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">private_path</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">private_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">LIBDIR</span><span class="p">,</span><span class="w"> </span><span class="s">"girepository-1.0"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="cm">/* This should be moved to libpeas */</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_irepository_require</span><span class="w"> </span><span class="p">(</span><span class="n">g_irepository_get_default</span><span class="w"> </span><span class="p">(),</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="s">"Peas"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="p">{</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Error loading Peas typelib: %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="p">}</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_irepository_require</span><span class="w"> </span><span class="p">(</span><span class="n">g_irepository_get_default</span><span class="w"> </span><span class="p">(),</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="s">"PeasGtk"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Error loading PeasGtk typelib: %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="p">}</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_irepository_require_private</span><span class="w"> </span><span class="p">(</span><span class="n">g_irepository_get_default</span><span class="w"> </span><span class="p">(),</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">private_path</span><span class="p">,</span><span class="w"> </span><span class="s">"Eom"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="p">{</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Error loading Eom typelib: %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="p">}</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">private_path</span><span class="p">);</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">engine</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PLUGIN_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_PLUGIN_ENGINE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">peas_engine_enable_loader</span><span class="w"> </span><span class="p">(</span><span class="n">PEAS_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">engine</span><span class="p">),</span><span class="w"> </span><span class="s">"python3"</span><span class="p">);</span> +<a id="line-120" name="line-120"></a> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">user_plugin_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">eom_util_dot_dir</span><span class="w"> </span><span class="p">(),</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">USER_EOM_PLUGINS_LOCATION</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">peas_engine_add_search_path</span><span class="w"> </span><span class="p">(</span><span class="n">PEAS_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">engine</span><span class="p">),</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">user_plugin_path</span><span class="p">,</span><span class="w"> </span><span class="n">user_plugin_path</span><span class="p">);</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">peas_engine_add_search_path</span><span class="w"> </span><span class="p">(</span><span class="n">PEAS_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">engine</span><span class="p">),</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">EOM_PLUGIN_DIR</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_PLUGIN_DIR</span><span class="p">);</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">engine</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugins_settings</span><span class="p">,</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">EOM_CONF_PLUGINS_ACTIVE_PLUGINS</span><span class="p">,</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">engine</span><span class="p">,</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="s">"loaded-plugins"</span><span class="p">,</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">user_plugin_path</span><span class="p">);</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">engine</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/21.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/21.html new file mode 100644 index 0000000..f826d55 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/21.html @@ -0,0 +1,913 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-preferences-dialog.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-preferences-dialog.c</p> +<a href="21.html#line-45"> unusedStructMember 45</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - EOM Preferences Dialog</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on code by:</span> +<a id="line-8" name="line-8"></a><span class="cm"> * - Jens Finke <[email protected]></span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-11" name="line-11"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-12" name="line-12"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-13" name="line-13"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-14" name="line-14"></a><span class="cm"> *</span> +<a id="line-15" name="line-15"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-16" name="line-16"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-17" name="line-17"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-18" name="line-18"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-19" name="line-19"></a><span class="cm"> *</span> +<a id="line-20" name="line-20"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-21" name="line-21"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-22" name="line-22"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-23" name="line-23"></a><span class="cm"> */</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-27" name="line-27"></a><span class="cp">#endif</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">"eom-preferences-dialog.h"</span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-scroll-view.h"</span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-config-keys.h"</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"><glib.h></span> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span> +<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libpeas-gtk/peas-gtk-plugin-manager.h></span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="cp">#define GSETTINGS_OBJECT_VALUE "GSETTINGS_VALUE"</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomPreferencesDialogPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">view_settings</span><span class="p">;</span> +<a id="line-45" name="line-45"></a><span class="hll"><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">ui_settings</span><span class="p">;</span><span class="error2"><--- struct member '_EomPreferencesDialogPrivate::ui_settings' is never used.</span> +</span><a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">fullscreen_settings</span><span class="p">;</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">notebook</span><span class="p">;</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">interpolate_check</span><span class="p">;</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">extrapolate_check</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">autorotate_check</span><span class="p">;</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">bg_color_check</span><span class="p">;</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">bg_color_button</span><span class="p">;</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">color_radio</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">checkpattern_radio</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">background_radio</span><span class="p">;</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">transp_color_button</span><span class="p">;</span> +<a id="line-58" name="line-58"></a> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">upscale_check</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">random_check</span><span class="p">;</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">loop_check</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">seconds_spin</span><span class="p">;</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">plugin_manager</span><span class="p">;</span> +<a id="line-65" name="line-65"></a><span class="p">};</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="k">static</span><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">instance</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomPreferencesDialog</span><span class="p">,</span><span class="w"> </span><span class="n">eom_preferences_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</span><span class="p">);</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-72" name="line-72"></a><span class="nf">pd_string_to_rgba_mapping</span><span class="w"> </span><span class="p">(</span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">variant</span><span class="p">,</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-75" name="line-75"></a><span class="p">{</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">color</span><span class="p">;</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></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">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">variant</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE_STRING</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_rgba_parse</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">variant</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">g_value_set_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">color</span><span class="p">);</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">}</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="p">}</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="k">static</span><span class="w"> </span><span class="n">GVariant</span><span class="o">*</span> +<a id="line-89" name="line-89"></a><span class="nf">pd_rgba_to_string_mapping</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GVariantType</span><span class="w"> </span><span class="o">*</span><span class="n">expected_type</span><span class="p">,</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-92" name="line-92"></a><span class="p">{</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">variant</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">hex_val</span><span class="p">;</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">G_VALUE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_TYPE_RGBA</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">g_variant_type_equal</span><span class="w"> </span><span class="p">(</span><span class="n">expected_type</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE_STRING</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">hex_val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_rgba_to_string</span><span class="p">(</span><span class="n">color</span><span class="p">);</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">variant</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_new_string</span><span class="w"> </span><span class="p">(</span><span class="n">hex_val</span><span class="p">);</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">hex_val</span><span class="p">);</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">variant</span><span class="p">;</span> +<a id="line-108" name="line-108"></a><span class="p">}</span> +<a id="line-109" name="line-109"></a> +<a id="line-110" name="line-110"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-111" name="line-111"></a><span class="nf">pd_transp_radio_toggle_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-112" name="line-112"></a><span class="p">{</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_toggle_button_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)))</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">GSETTINGS_OBJECT_VALUE</span><span class="p">);</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">g_settings_set_enum</span><span class="w"> </span><span class="p">(</span><span class="n">G_SETTINGS</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="n">EOM_CONF_VIEW_TRANSPARENCY</span><span class="p">,</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-122" name="line-122"></a><span class="p">}</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-125" name="line-125"></a><span class="nf">random_change_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">,</span><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><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span> +<a id="line-126" name="line-126"></a><span class="p">{</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">!</span><span class="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> +<a id="line-128" name="line-128"></a><span class="p">}</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-131" name="line-131"></a><span class="nf">eom_preferences_response_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">res_id</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-132" name="line-132"></a><span class="p">{</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">res_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_RESPONSE_HELP</span><span class="p">:</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">eom_util_show_help</span><span class="w"> </span><span class="p">(</span><span class="s">"eom-prefs"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">instance</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">}</span> +<a id="line-141" name="line-141"></a><span class="p">}</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="kt">void</span> +<a id="line-144" name="line-144"></a><span class="nf">eom_preferences_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPreferencesDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-145" name="line-145"></a><span class="p">{</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidgetClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-147" name="line-147"></a> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="cm">/* This should make sure the libpeas-gtk dependency isn't</span> +<a id="line-149" name="line-149"></a><span class="cm"> * dropped by aggressive linkers (#739618) */</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">g_type_ensure</span><span class="w"> </span><span class="p">(</span><span class="n">PEAS_GTK_TYPE_PLUGIN_MANAGER</span><span class="p">);</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">gtk_widget_class_set_template_from_resource</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="s">"/org/mate/eom/ui/eom-preferences-dialog.ui"</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">notebook</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">interpolate_check</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">extrapolate_check</span><span class="p">);</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">autorotate_check</span><span class="p">);</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">bg_color_check</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">bg_color_button</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">color_radio</span><span class="p">);</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">checkpattern_radio</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">background_radio</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">transp_color_button</span><span class="p">);</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">upscale_check</span><span class="p">);</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">random_check</span><span class="p">);</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">loop_check</span><span class="p">);</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">seconds_spin</span><span class="p">);</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">EomPreferencesDialog</span><span class="p">,</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">plugin_manager</span><span class="p">);</span> +<a id="line-201" name="line-201"></a><span class="p">}</span> +<a id="line-202" name="line-202"></a> +<a id="line-203" name="line-203"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-204" name="line-204"></a><span class="nf">eom_preferences_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">pref_dlg</span><span class="p">)</span> +<a id="line-205" name="line-205"></a><span class="p">{</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">EomPreferencesDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-207" name="line-207"></a> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">pref_dlg</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_preferences_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">pref_dlg</span><span class="p">);</span> +<a id="line-209" name="line-209"></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">pref_dlg</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">gtk_widget_init_template</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">pref_dlg</span><span class="p">));</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view_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">EOM_CONF_VIEW</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_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">EOM_CONF_FULLSCREEN</span><span class="p">);</span> +<a id="line-215" name="line-215"></a> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">pref_dlg</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_preferences_response_cb</span><span class="p">),</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">pref_dlg</span><span class="p">);</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">EOM_CONF_VIEW_INTERPOLATE</span><span class="p">,</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">interpolate_check</span><span class="p">,</span><span class="w"> </span><span class="s">"active"</span><span class="p">,</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">EOM_CONF_VIEW_EXTRAPOLATE</span><span class="p">,</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">extrapolate_check</span><span class="p">,</span><span class="w"> </span><span class="s">"active"</span><span class="p">,</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">EOM_CONF_VIEW_AUTOROTATE</span><span class="p">,</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">autorotate_check</span><span class="p">,</span><span class="w"> </span><span class="s">"active"</span><span class="p">,</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">EOM_CONF_VIEW_USE_BG_COLOR</span><span class="p">,</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bg_color_check</span><span class="p">,</span><span class="w"> </span><span class="s">"active"</span><span class="p">,</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-236" name="line-236"></a> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">g_settings_bind_with_mapping</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">EOM_CONF_VIEW_BACKGROUND_COLOR</span><span class="p">,</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bg_color_button</span><span class="p">,</span><span class="w"> </span><span class="s">"rgba"</span><span class="p">,</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">,</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">pd_string_to_rgba_mapping</span><span class="p">,</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">pd_rgba_to_string_mapping</span><span class="p">,</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-244" name="line-244"></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">priv</span><span class="o">-></span><span class="n">color_radio</span><span class="p">),</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">GSETTINGS_OBJECT_VALUE</span><span class="p">,</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSP_COLOR</span><span class="p">));</span> +<a id="line-247" name="line-247"></a> +<a id="line-248" name="line-248"></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">-></span><span class="n">color_radio</span><span class="p">,</span><span class="w"> </span><span class="s">"toggled"</span><span class="p">,</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">pd_transp_radio_toggle_cb</span><span class="p">),</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">);</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></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">priv</span><span class="o">-></span><span class="n">checkpattern_radio</span><span class="p">),</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">GSETTINGS_OBJECT_VALUE</span><span class="p">,</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSP_CHECKED</span><span class="p">));</span> +<a id="line-255" name="line-255"></a> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">checkpattern_radio</span><span class="p">,</span><span class="w"> </span><span class="s">"toggled"</span><span class="p">,</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">pd_transp_radio_toggle_cb</span><span class="p">),</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">);</span> +<a id="line-259" name="line-259"></a> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="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">priv</span><span class="o">-></span><span class="n">background_radio</span><span class="p">),</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">GSETTINGS_OBJECT_VALUE</span><span class="p">,</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSP_BACKGROUND</span><span class="p">));</span> +<a id="line-263" name="line-263"></a> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">background_radio</span><span class="p">,</span><span class="w"> </span><span class="s">"toggled"</span><span class="p">,</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">pd_transp_radio_toggle_cb</span><span class="p">),</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">);</span> +<a id="line-267" name="line-267"></a> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">g_settings_get_enum</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">EOM_CONF_VIEW_TRANSPARENCY</span><span class="p">))</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">{</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSP_COLOR</span><span class="p">:</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">color_radio</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSP_CHECKED</span><span class="p">:</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">checkpattern_radio</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="c1">// Log a warning and use EOM_TRANSP_BACKGROUND as fallback</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">g_warn_if_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSP_BACKGROUND</span><span class="p">:</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">background_radio</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="p">}</span> +<a id="line-284" name="line-284"></a> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_settings_bind_with_mapping</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">EOM_CONF_VIEW_TRANS_COLOR</span><span class="p">,</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">transp_color_button</span><span class="p">,</span><span class="w"> </span><span class="s">"rgba"</span><span class="p">,</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">,</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">pd_string_to_rgba_mapping</span><span class="p">,</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">pd_rgba_to_string_mapping</span><span class="p">,</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-292" name="line-292"></a> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_UPSCALE</span><span class="p">,</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">upscale_check</span><span class="p">,</span><span class="w"> </span><span class="s">"active"</span><span class="p">,</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-296" name="line-296"></a> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_settings</span><span class="p">,</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_LOOP</span><span class="p">,</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">loop_check</span><span class="p">,</span><span class="w"> </span><span class="s">"active"</span><span class="p">,</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-301" name="line-301"></a> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_settings</span><span class="p">,</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_RANDOM</span><span class="p">,</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">random_check</span><span class="p">,</span><span class="w"> </span><span class="s">"active"</span><span class="p">,</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-306" name="line-306"></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">-></span><span class="n">fullscreen_settings</span><span class="p">,</span><span class="w"> </span><span class="s">"changed::"</span><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_RANDOM</span><span class="p">,</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">random_change_cb</span><span class="p">),</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">loop_check</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">random_change_cb</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_settings</span><span class="p">,</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_RANDOM</span><span class="p">,</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">loop_check</span><span class="p">);</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_settings</span><span class="p">,</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_SECONDS</span><span class="p">,</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">seconds_spin</span><span class="p">,</span><span class="w"> </span><span class="s">"value"</span><span class="p">,</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-317" name="line-317"></a> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">plugin_manager</span><span class="p">);</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="cm">/* Add tab scrolling support for GTK3 */</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">gtk_widget_add_events</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_SCROLL_MASK</span><span class="p">);</span> +<a id="line-322" name="line-322"></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">-></span><span class="n">notebook</span><span class="p">,</span><span class="w"> </span><span class="s">"scroll-event"</span><span class="p">,</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_notebook_scroll_event_cb</span><span class="p">),</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-325" name="line-325"></a><span class="p">}</span> +<a id="line-326" name="line-326"></a> +<a id="line-327" name="line-327"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">eom_preferences_dialog_get_instance</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">)</span> +<a id="line-328" name="line-328"></a><span class="p">{</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">instance</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">instance</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">EOM_TYPE_PREFERENCES_DIALOG</span><span class="p">,</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="p">}</span> +<a id="line-333" name="line-333"></a> +<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">parent</span><span class="p">)</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">gtk_window_set_transient_for</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">instance</span><span class="p">),</span><span class="w"> </span><span class="n">parent</span><span class="p">);</span> +<a id="line-336" name="line-336"></a> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">instance</span><span class="p">);</span> +<a id="line-338" name="line-338"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/22.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/22.html new file mode 100644 index 0000000..4c9d4aa --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/22.html @@ -0,0 +1,2391 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-print-image-setup.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-print-image-setup.c</p> +<a href="22.html#line-688"> variableScope 688</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of MATE -- Print Dialog Custom Widget</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006-2007 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Claudio Saavedra <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-8" name="line-8"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-9" name="line-9"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-10" name="line-10"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-15" name="line-15"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-19" name="line-19"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-24" name="line-24"></a><span class="cp">#endif</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"><gtk/gtk.h></span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtkunixprint.h></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"><glib/gi18n.h></span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gprintf.h></span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="cp">#ifdef HAVE__NL_MEASUREMENT_MEASUREMENT</span> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><langinfo.h></span> +<a id="line-34" name="line-34"></a><span class="cp">#endif</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-print-image-setup.h"</span> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-print-preview.h"</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="cm">/**</span> +<a id="line-40" name="line-40"></a><span class="cm"> * SECTION:</span> +<a id="line-41" name="line-41"></a><span class="cm"> * @Title: Printing Custom Widget</span> +<a id="line-42" name="line-42"></a><span class="cm"> * @Short_Description: a custom widget to setup image prints.</span> +<a id="line-43" name="line-43"></a><span class="cm"> * @Stability_Level: Internal</span> +<a id="line-44" name="line-44"></a><span class="cm"> * @See_Also: #EomPrintPreview</span> +<a id="line-45" name="line-45"></a><span class="cm"> *</span> +<a id="line-46" name="line-46"></a><span class="cm"> * This widget is to be used as the custom widget in a #GtkPrintUnixDialog in</span> +<a id="line-47" name="line-47"></a><span class="cm"> * EOM. Through it, you can set the position and scaling of a image</span> +<a id="line-48" name="line-48"></a><span class="cm"> * interactively.</span> +<a id="line-49" name="line-49"></a><span class="cm"> */</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomPrintImageSetupPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">left</span><span class="p">;</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">right</span><span class="p">;</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">top</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">bottom</span><span class="p">;</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">center</span><span class="p">;</span> +<a id="line-58" name="line-58"></a> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">;</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">scaling</span><span class="p">;</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">;</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">GtkUnit</span><span class="w"> </span><span class="n">current_unit</span><span class="p">;</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">GtkPageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">page_setup</span><span class="p">;</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">;</span> +<a id="line-71" name="line-71"></a><span class="p">};</span> +<a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">PROP_PAGE_SETUP</span> +<a id="line-77" name="line-77"></a><span class="p">};</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">CENTER_NONE</span><span class="p">,</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">CENTER_HORIZONTAL</span><span class="p">,</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">CENTER_VERTICAL</span><span class="p">,</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">CENTER_BOTH</span> +<a id="line-84" name="line-84"></a><span class="p">};</span> +<a id="line-85" name="line-85"></a> +<a id="line-86" name="line-86"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">CHANGE_HORIZ</span><span class="p">,</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">CHANGE_VERT</span> +<a id="line-89" name="line-89"></a><span class="p">};</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">UNIT_INCH</span><span class="p">,</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">UNIT_MM</span> +<a id="line-94" name="line-94"></a><span class="p">};</span> +<a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="cp">#define FACTOR_INCH_TO_MM 25.4</span> +<a id="line-97" name="line-97"></a><span class="cp">#define FACTOR_INCH_TO_PIXEL 72.</span> +<a id="line-98" name="line-98"></a><span class="cp">#define FACTOR_MM_TO_INCH 0.03937007874015748</span> +<a id="line-99" name="line-99"></a><span class="cp">#define FACTOR_MM_TO_PIXEL 2.834645669</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_print_image_setup_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_print_image_setup_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">);</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">on_left_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-105" name="line-105"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">on_right_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">on_top_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-107" name="line-107"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">on_bottom_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-108" name="line-108"></a> +<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">on_width_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">on_height_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="p">,</span><span class="w"> </span><span class="n">eom_print_image_setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_GRID</span><span class="p">);</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-115" name="line-115"></a><span class="nf">block_handlers</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">)</span> +<a id="line-116" name="line-116"></a><span class="p">{</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">on_left_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">on_right_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">on_width_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="n">on_top_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">,</span><span class="w"> </span><span class="n">on_bottom_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">on_height_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-125" name="line-125"></a><span class="p">}</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-128" name="line-128"></a><span class="nf">unblock_handlers</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">)</span> +<a id="line-129" name="line-129"></a><span class="p">{</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">on_left_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">on_right_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">on_width_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="n">on_top_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">,</span><span class="w"> </span><span class="n">on_bottom_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">on_height_value_changed</span><span class="p">,</span><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="p">}</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="k">static</span><span class="w"> </span><span class="n">gdouble</span> +<a id="line-141" name="line-141"></a><span class="nf">get_scale_to_px_factor</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">)</span> +<a id="line-142" name="line-142"></a><span class="p">{</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.</span><span class="p">;</span> +<a id="line-144" name="line-144"></a> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_UNIT_MM</span><span class="p">:</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FACTOR_MM_TO_PIXEL</span><span class="p">;</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_UNIT_INCH</span><span class="p">:</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FACTOR_INCH_TO_PIXEL</span><span class="p">;</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">}</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-157" name="line-157"></a><span class="p">}</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="k">static</span><span class="w"> </span><span class="n">gdouble</span> +<a id="line-160" name="line-160"></a><span class="nf">get_max_percentage</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">)</span> +<a id="line-161" name="line-161"></a><span class="p">{</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">p_width</span><span class="p">,</span><span class="w"> </span><span class="n">p_height</span><span class="p">;</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pix_width</span><span class="p">,</span><span class="w"> </span><span class="n">pix_height</span><span class="p">;</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">perc</span><span class="p">;</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">p_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">p_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">);</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pix_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pix_height</span><span class="p">);</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">pix_width</span><span class="o">/</span><span class="n">FACTOR_INCH_TO_PIXEL</span><span class="p">;</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">pix_height</span><span class="o">/</span><span class="n">FACTOR_INCH_TO_PIXEL</span><span class="p">;</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p_width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">p_height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">perc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.</span><span class="p">;</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">perc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">p_width</span><span class="o">/</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">p_height</span><span class="o">/</span><span class="n">height</span><span class="p">);</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">}</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">perc</span><span class="p">;</span> +<a id="line-183" name="line-183"></a><span class="p">}</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-186" name="line-186"></a><span class="nf">center</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="w"> </span><span class="n">page_width</span><span class="p">,</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">width</span><span class="p">,</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">s_left</span><span class="p">,</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">s_right</span><span class="p">)</span> +<a id="line-190" name="line-190"></a><span class="p">{</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">page_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">)</span><span class="o">/</span><span class="mi">2</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">page_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">;</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">s_left</span><span class="p">,</span><span class="w"> </span><span class="n">left</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">s_right</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="p">}</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-200" name="line-200"></a><span class="nf">on_center_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combobox</span><span class="p">,</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-202" name="line-202"></a><span class="p">{</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">;</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">active</span><span class="p">;</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-208" name="line-208"></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">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">active</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">);</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">active</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CENTER_HORIZONTAL</span><span class="p">:</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">center</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">)),</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">),</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">));</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CENTER_VERTICAL</span><span class="p">:</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">center</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">)),</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">),</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">));</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CENTER_BOTH</span><span class="p">:</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">center</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">)),</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">),</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">));</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">center</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">)),</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">),</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">));</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CENTER_NONE</span><span class="p">:</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">}</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">,</span><span class="w"> </span><span class="n">active</span><span class="p">);</span> +<a id="line-245" name="line-245"></a><span class="p">}</span> +<a id="line-246" name="line-246"></a> +<a id="line-247" name="line-247"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-248" name="line-248"></a><span class="nf">update_image_pos_ranges</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">,</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">page_width</span><span class="p">,</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">page_height</span><span class="p">,</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">width</span><span class="p">,</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">height</span><span class="p">)</span> +<a id="line-253" name="line-253"></a><span class="p">{</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-255" name="line-255"></a> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-257" name="line-257"></a> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">gtk_spin_button_set_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">),</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">page_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">);</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">gtk_spin_button_set_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">),</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">page_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">);</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">gtk_spin_button_set_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">),</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">page_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">gtk_spin_button_set_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">),</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">page_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="p">}</span> +<a id="line-267" name="line-267"></a> +<a id="line-268" name="line-268"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-269" name="line-269"></a><span class="nf">on_scale_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkRange</span><span class="w"> </span><span class="o">*</span><span class="n">range</span><span class="p">,</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-271" name="line-271"></a><span class="p">{</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pix_width</span><span class="p">,</span><span class="w"> </span><span class="n">pix_height</span><span class="p">;</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="n">bottom</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">page_width</span><span class="p">,</span><span class="w"> </span><span class="n">page_height</span><span class="p">;</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">;</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-281" name="line-281"></a> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-283" name="line-283"></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">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-284" name="line-284"></a> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">center</span><span class="p">),</span><span class="w"> </span><span class="n">CENTER_NONE</span><span class="p">);</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pix_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pix_height</span><span class="p">);</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_scale_to_px_factor</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">);</span> +<a id="line-291" name="line-291"></a> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">pix_width</span><span class="o">/</span><span class="n">factor</span><span class="p">;</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">pix_height</span><span class="o">/</span><span class="n">factor</span><span class="p">;</span> +<a id="line-294" name="line-294"></a> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">));</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">top</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">));</span> +<a id="line-297" name="line-297"></a> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="mf">0.01</span><span class="o">*</span><span class="n">gtk_range_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">range</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">get_max_percentage</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">));</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">eom_print_preview_set_scale</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">),</span><span class="w"> </span><span class="n">scale</span><span class="p">);</span> +<a id="line-301" name="line-301"></a> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-304" name="line-304"></a> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">page_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">);</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">page_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">);</span> +<a id="line-307" name="line-307"></a> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">update_image_pos_ranges</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">page_width</span><span class="p">,</span><span class="w"> </span><span class="n">page_height</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">page_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">;</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">bottom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">page_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">top</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">),</span><span class="w"> </span><span class="n">width</span><span class="p">);</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">),</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">),</span><span class="w"> </span><span class="n">right</span><span class="p">);</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">),</span><span class="w"> </span><span class="n">bottom</span><span class="p">);</span> +<a id="line-317" name="line-317"></a> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-319" name="line-319"></a><span class="p">}</span> +<a id="line-320" name="line-320"></a> +<a id="line-321" name="line-321"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-322" name="line-322"></a><span class="nf">on_scale_format_value</span><span class="w"> </span><span class="p">(</span><span class="n">GtkScale</span><span class="w"> </span><span class="o">*</span><span class="n">scale</span><span class="p">,</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">value</span><span class="p">)</span> +<a id="line-324" name="line-324"></a><span class="p">{</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"%i%%"</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="n">value</span><span class="p">);</span> +<a id="line-326" name="line-326"></a><span class="p">}</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-329" name="line-329"></a><span class="nf">position_values_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">,</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_changed</span><span class="p">,</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_to_update</span><span class="p">,</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_size</span><span class="p">,</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">total_size</span><span class="p">,</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">change</span><span class="p">)</span> +<a id="line-335" name="line-335"></a><span class="p">{</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">changed</span><span class="p">,</span><span class="w"> </span><span class="n">to_update</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">;</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_size</span><span class="p">));</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_changed</span><span class="p">));</span> +<a id="line-343" name="line-343"></a> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">to_update</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">total_size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">changed</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">size</span><span class="p">;</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_to_update</span><span class="p">),</span><span class="w"> </span><span class="n">to_update</span><span class="p">);</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">center</span><span class="p">),</span><span class="w"> </span><span class="n">CENTER_NONE</span><span class="p">);</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">change</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHANGE_HORIZ</span><span class="p">:</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">));</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_UNIT_MM</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">FACTOR_MM_TO_INCH</span><span class="p">;</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="p">}</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">eom_print_preview_set_image_position</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">),</span><span class="w"> </span><span class="n">pos</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHANGE_VERT</span><span class="p">:</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">));</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_UNIT_MM</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">FACTOR_MM_TO_INCH</span><span class="p">;</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="p">}</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">eom_print_preview_set_image_position</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">pos</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="p">}</span> +<a id="line-364" name="line-364"></a><span class="p">}</span> +<a id="line-365" name="line-365"></a> +<a id="line-366" name="line-366"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-367" name="line-367"></a><span class="nf">on_left_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-369" name="line-369"></a><span class="p">{</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">;</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-372" name="line-372"></a> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-374" name="line-374"></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">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-375" name="line-375"></a> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">position_values_changed</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">CHANGE_HORIZ</span><span class="p">);</span> +<a id="line-381" name="line-381"></a><span class="p">}</span> +<a id="line-382" name="line-382"></a> +<a id="line-383" name="line-383"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-384" name="line-384"></a><span class="nf">on_right_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-386" name="line-386"></a><span class="p">{</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-388" name="line-388"></a> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-390" name="line-390"></a> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">position_values_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">CHANGE_HORIZ</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="p">}</span> +<a id="line-397" name="line-397"></a> +<a id="line-398" name="line-398"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-399" name="line-399"></a><span class="nf">on_top_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-401" name="line-401"></a><span class="p">{</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-403" name="line-403"></a> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">position_values_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">,</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">CHANGE_VERT</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="p">}</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-414" name="line-414"></a><span class="nf">on_bottom_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-416" name="line-416"></a><span class="p">{</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-418" name="line-418"></a> +<a id="line-419" name="line-419"></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">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-420" name="line-420"></a> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">position_values_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">,</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">CHANGE_VERT</span><span class="p">);</span> +<a id="line-426" name="line-426"></a><span class="p">}</span> +<a id="line-427" name="line-427"></a> +<a id="line-428" name="line-428"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-429" name="line-429"></a><span class="nf">size_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">,</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_size_x</span><span class="p">,</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_size_y</span><span class="p">,</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_margin_x_1</span><span class="p">,</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_margin_x_2</span><span class="p">,</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_margin_y_1</span><span class="p">,</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w_margin_y_2</span><span class="p">,</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">page_size_x</span><span class="p">,</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">page_size_y</span><span class="p">,</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">change</span><span class="p">)</span> +<a id="line-439" name="line-439"></a><span class="p">{</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">margin_x_1</span><span class="p">,</span><span class="w"> </span><span class="n">margin_x_2</span><span class="p">;</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">margin_y_1</span><span class="p">,</span><span class="w"> </span><span class="n">margin_y_2</span><span class="p">;</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">orig_size_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">orig_size_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">size_x</span><span class="p">,</span><span class="w"> </span><span class="n">size_y</span><span class="p">;</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pix_width</span><span class="p">,</span><span class="w"> </span><span class="n">pix_height</span><span class="p">;</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-447" name="line-447"></a> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-449" name="line-449"></a> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">size_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_size_x</span><span class="p">));</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">margin_x_1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_margin_x_1</span><span class="p">));</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">margin_y_1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_margin_y_1</span><span class="p">));</span> +<a id="line-453" name="line-453"></a> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pix_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pix_height</span><span class="p">);</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_scale_to_px_factor</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">);</span> +<a id="line-457" name="line-457"></a> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">change</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHANGE_HORIZ</span><span class="p">:</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">orig_size_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="w"> </span><span class="n">pix_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">orig_size_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="w"> </span><span class="n">pix_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHANGE_VERT</span><span class="p">:</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">orig_size_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="w"> </span><span class="n">pix_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">orig_size_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="w"> </span><span class="n">pix_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="p">}</span> +<a id="line-468" name="line-468"></a> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">size_x</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">orig_size_x</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-470" name="line-470"></a> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">size_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">orig_size_y</span><span class="p">;</span> +<a id="line-472" name="line-472"></a> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">margin_x_2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">page_size_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">margin_x_1</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">size_x</span><span class="p">;</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">margin_y_2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">page_size_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">margin_y_1</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">size_y</span><span class="p">;</span> +<a id="line-475" name="line-475"></a> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">eom_print_preview_set_scale</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">),</span><span class="w"> </span><span class="n">scale</span><span class="p">);</span> +<a id="line-477" name="line-477"></a> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">change</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHANGE_HORIZ</span><span class="p">:</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">update_image_pos_ranges</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">page_size_x</span><span class="p">,</span><span class="w"> </span><span class="n">page_size_y</span><span class="p">,</span><span class="w"> </span><span class="n">size_x</span><span class="p">,</span><span class="w"> </span><span class="n">size_y</span><span class="p">);</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHANGE_VERT</span><span class="p">:</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">update_image_pos_ranges</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">page_size_y</span><span class="p">,</span><span class="w"> </span><span class="n">page_size_x</span><span class="p">,</span><span class="w"> </span><span class="n">size_y</span><span class="p">,</span><span class="w"> </span><span class="n">size_x</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="p">}</span> +<a id="line-486" name="line-486"></a> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">gtk_range_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_RANGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">scaling</span><span class="p">),</span><span class="w"> </span><span class="mi">100</span><span class="o">*</span><span class="n">scale</span><span class="p">);</span> +<a id="line-488" name="line-488"></a> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_margin_x_2</span><span class="p">),</span><span class="w"> </span><span class="n">margin_x_2</span><span class="p">);</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_size_y</span><span class="p">),</span><span class="w"> </span><span class="n">size_y</span><span class="p">);</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">w_margin_y_2</span><span class="p">),</span><span class="w"> </span><span class="n">margin_y_2</span><span class="p">);</span> +<a id="line-492" name="line-492"></a> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">center</span><span class="p">),</span><span class="w"> </span><span class="n">CENTER_NONE</span><span class="p">);</span> +<a id="line-494" name="line-494"></a><span class="p">}</span> +<a id="line-495" name="line-495"></a> +<a id="line-496" name="line-496"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-497" name="line-497"></a><span class="nf">on_width_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-499" name="line-499"></a><span class="p">{</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-501" name="line-501"></a> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">size_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">,</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">,</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">,</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">CHANGE_HORIZ</span><span class="p">);</span> +<a id="line-511" name="line-511"></a><span class="p">}</span> +<a id="line-512" name="line-512"></a> +<a id="line-513" name="line-513"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-514" name="line-514"></a><span class="nf">on_height_value_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-516" name="line-516"></a><span class="p">{</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-518" name="line-518"></a> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">size_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">,</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">,</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">CHANGE_VERT</span><span class="p">);</span> +<a id="line-528" name="line-528"></a><span class="p">}</span> +<a id="line-529" name="line-529"></a> +<a id="line-530" name="line-530"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-531" name="line-531"></a><span class="nf">change_unit</span><span class="w"> </span><span class="p">(</span><span class="n">GtkSpinButton</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">factor</span><span class="p">,</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">digits</span><span class="p">,</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">step</span><span class="p">,</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">page</span><span class="p">)</span> +<a id="line-536" name="line-536"></a><span class="p">{</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">range</span><span class="p">;</span> +<a id="line-539" name="line-539"></a> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">gtk_spin_button_get_range</span><span class="w"> </span><span class="p">(</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">range</span><span class="p">);</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">range</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-542" name="line-542"></a> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">spinbutton</span><span class="p">);</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-545" name="line-545"></a> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">gtk_spin_button_set_range</span><span class="w"> </span><span class="p">(</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">range</span><span class="p">);</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">gtk_spin_button_set_digits</span><span class="w"> </span><span class="p">(</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">);</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">gtk_spin_button_set_increments</span><span class="w"> </span><span class="p">(</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">step</span><span class="p">,</span><span class="w"> </span><span class="n">page</span><span class="p">);</span> +<a id="line-550" name="line-550"></a><span class="p">}</span> +<a id="line-551" name="line-551"></a> +<a id="line-552" name="line-552"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-553" name="line-553"></a><span class="nf">set_scale_unit</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">,</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">GtkUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">)</span> +<a id="line-555" name="line-555"></a><span class="p">{</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">step</span><span class="p">,</span><span class="w"> </span><span class="n">page</span><span class="p">;</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">digits</span><span class="p">;</span> +<a id="line-560" name="line-560"></a> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">unit</span><span class="p">))</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-563" name="line-563"></a> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_UNIT_MM</span><span class="p">:</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FACTOR_INCH_TO_MM</span><span class="p">;</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">step</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">page</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_UNIT_INCH</span><span class="p">:</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FACTOR_MM_TO_INCH</span><span class="p">;</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">step</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.01</span><span class="p">;</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">page</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.1</span><span class="p">;</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="p">}</span> +<a id="line-580" name="line-580"></a> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">block_handlers</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">);</span> +<a id="line-582" name="line-582"></a> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">change_unit</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">),</span><span class="w"> </span><span class="n">factor</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">,</span><span class="w"> </span><span class="n">step</span><span class="p">,</span><span class="w"> </span><span class="n">page</span><span class="p">);</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">change_unit</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">),</span><span class="w"> </span><span class="n">factor</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">,</span><span class="w"> </span><span class="n">step</span><span class="p">,</span><span class="w"> </span><span class="n">page</span><span class="p">);</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">change_unit</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">),</span><span class="w"> </span><span class="n">factor</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">,</span><span class="w"> </span><span class="n">step</span><span class="p">,</span><span class="w"> </span><span class="n">page</span><span class="p">);</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">change_unit</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">),</span><span class="w"> </span><span class="n">factor</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">,</span><span class="w"> </span><span class="n">step</span><span class="p">,</span><span class="w"> </span><span class="n">page</span><span class="p">);</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">change_unit</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">),</span><span class="w"> </span><span class="n">factor</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">,</span><span class="w"> </span><span class="n">step</span><span class="p">,</span><span class="w"> </span><span class="n">page</span><span class="p">);</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">change_unit</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">),</span><span class="w"> </span><span class="n">factor</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">,</span><span class="w"> </span><span class="n">step</span><span class="p">,</span><span class="w"> </span><span class="n">page</span><span class="p">);</span> +<a id="line-589" name="line-589"></a> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">unblock_handlers</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">);</span> +<a id="line-591" name="line-591"></a> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit</span><span class="p">;</span> +<a id="line-593" name="line-593"></a><span class="p">}</span> +<a id="line-594" name="line-594"></a> +<a id="line-595" name="line-595"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-596" name="line-596"></a><span class="nf">on_unit_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combobox</span><span class="p">,</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-598" name="line-598"></a><span class="p">{</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">GtkUnit</span><span class="w"> </span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">;</span> +<a id="line-600" name="line-600"></a> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_combo_box_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">UNIT_INCH</span><span class="p">:</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">;</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">UNIT_MM</span><span class="p">:</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_UNIT_MM</span><span class="p">;</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="p">}</span> +<a id="line-611" name="line-611"></a> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">set_scale_unit</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span><span class="w"> </span><span class="n">unit</span><span class="p">);</span> +<a id="line-613" name="line-613"></a><span class="p">}</span> +<a id="line-614" name="line-614"></a> +<a id="line-615" name="line-615"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-616" name="line-616"></a><span class="nf">on_preview_image_moved</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-618" name="line-618"></a><span class="p">{</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-621" name="line-621"></a> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">eom_print_preview_get_image_position</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-623" name="line-623"></a> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_UNIT_MM</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">FACTOR_INCH_TO_MM</span><span class="p">;</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">FACTOR_INCH_TO_MM</span><span class="p">;</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="p">}</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">),</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">),</span><span class="w"> </span><span class="n">y</span><span class="p">);</span> +<a id="line-631" name="line-631"></a><span class="p">}</span> +<a id="line-632" name="line-632"></a> +<a id="line-633" name="line-633"></a><span class="cm">/* Function taken from gtkprintunixdialog.c */</span> +<a id="line-634" name="line-634"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-635" name="line-635"></a><span class="nf">wrap_in_frame</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">child</span><span class="p">)</span> +<a id="line-637" name="line-637"></a><span class="p">{</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">label_widget</span><span class="p">;</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">bold_text</span><span class="p">;</span> +<a id="line-640" name="line-640"></a> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">label_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">gtk_widget_set_halign</span><span class="w"> </span><span class="p">(</span><span class="n">label_widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_START</span><span class="p">);</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">label_widget</span><span class="p">);</span> +<a id="line-644" name="line-644"></a> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">bold_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="s">"<b>%s</b>"</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">);</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">gtk_label_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label_widget</span><span class="p">),</span><span class="w"> </span><span class="n">bold_text</span><span class="p">);</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">bold_text</span><span class="p">);</span> +<a id="line-648" name="line-648"></a> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">),</span><span class="w"> </span><span class="n">label_widget</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">),</span><span class="w"> </span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-652" name="line-652"></a> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">gtk_widget_set_margin_start</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-654" name="line-654"></a> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">);</span> +<a id="line-656" name="line-656"></a> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">frame</span><span class="p">;</span> +<a id="line-658" name="line-658"></a><span class="p">}</span> +<a id="line-659" name="line-659"></a> +<a id="line-660" name="line-660"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-661" name="line-661"></a><span class="nf">grid_attach_spin_button_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">,</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">text_label</span><span class="p">,</span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">top</span><span class="p">)</span> +<a id="line-664" name="line-664"></a><span class="p">{</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">spin_button</span><span class="p">;</span> +<a id="line-666" name="line-666"></a> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">text_label</span><span class="p">);</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">spin_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_new_with_range</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mf">0.01</span><span class="p">);</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">gtk_spin_button_set_digits</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">spin_button</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">gtk_entry_set_width_chars</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">spin_button</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">gtk_grid_attach_next_to</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">spin_button</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">,</span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">GTK_POS_RIGHT</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">spin_button</span><span class="p">);</span> +<a id="line-676" name="line-676"></a> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">spin_button</span><span class="p">;</span> +<a id="line-678" name="line-678"></a><span class="p">}</span> +<a id="line-679" name="line-679"></a> +<a id="line-680" name="line-680"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-681" name="line-681"></a><span class="nf">eom_print_image_setup_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-685" name="line-685"></a><span class="p">{</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-688" name="line-688"></a><span class="hll"><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'pixbuf' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'pixbuf' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-689" name="line-689"></a> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span> +<a id="line-692" name="line-692"></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">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="p">}</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="s">"image"</span><span class="p">,</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="p">}</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_SETUP</span><span class="p">:</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="p">}</span> +<a id="line-709" name="line-709"></a><span class="p">}</span> +<a id="line-710" name="line-710"></a> +<a id="line-711" name="line-711"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-712" name="line-712"></a><span class="nf">eom_print_image_setup_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-716" name="line-716"></a><span class="p">{</span> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-719" name="line-719"></a> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_SETUP</span><span class="p">:</span> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="p">}</span> +<a id="line-730" name="line-730"></a><span class="p">}</span> +<a id="line-731" name="line-731"></a> +<a id="line-732" name="line-732"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-733" name="line-733"></a><span class="nf">set_initial_values</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">)</span> +<a id="line-734" name="line-734"></a><span class="p">{</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">GtkPageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">page_setup</span><span class="p">;</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">page_width</span><span class="p">,</span><span class="w"> </span><span class="n">page_height</span><span class="p">;</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pix_width</span><span class="p">,</span><span class="w"> </span><span class="n">pix_height</span><span class="p">;</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">max_perc</span><span class="p">;</span> +<a id="line-743" name="line-743"></a> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">;</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-747" name="line-747"></a> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_scale_to_px_factor</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">);</span> +<a id="line-749" name="line-749"></a> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pix_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pix_height</span><span class="p">);</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">pix_width</span><span class="o">/</span><span class="n">factor</span><span class="p">;</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">pix_height</span><span class="o">/</span><span class="n">factor</span><span class="p">;</span> +<a id="line-753" name="line-753"></a> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">max_perc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_max_percentage</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">);</span> +<a id="line-755" name="line-755"></a> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">max_perc</span><span class="p">;</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">max_perc</span><span class="p">;</span> +<a id="line-758" name="line-758"></a> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">gtk_range_set_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_RANGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">scaling</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="o">*</span><span class="n">max_perc</span><span class="p">);</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">gtk_range_set_increments</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_RANGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">scaling</span><span class="p">),</span><span class="w"> </span><span class="n">max_perc</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="o">*</span><span class="n">max_perc</span><span class="p">);</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">gtk_range_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_RANGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">scaling</span><span class="p">),</span><span class="w"> </span><span class="mi">100</span><span class="o">*</span><span class="n">max_perc</span><span class="p">);</span> +<a id="line-762" name="line-762"></a> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">eom_print_preview_set_scale</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">),</span><span class="w"> </span><span class="n">max_perc</span><span class="p">);</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">gtk_spin_button_set_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">);</span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">gtk_spin_button_set_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">),</span><span class="w"> </span><span class="n">width</span><span class="p">);</span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">),</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-768" name="line-768"></a> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">center</span><span class="p">),</span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">CENTER_BOTH</span><span class="p">);</span> +<a id="line-771" name="line-771"></a> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="n">center</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">)),</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">));</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">center</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">),</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="p">)),</span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">));</span> +<a id="line-778" name="line-778"></a> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">page_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_page_setup_get_page_width</span><span class="w"> </span><span class="p">(</span><span class="n">page_setup</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">);</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="n">page_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_page_setup_get_page_height</span><span class="w"> </span><span class="p">(</span><span class="n">page_setup</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">);</span> +<a id="line-781" name="line-781"></a> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="n">update_image_pos_ranges</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">page_width</span><span class="p">,</span><span class="w"> </span><span class="n">page_height</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-783" name="line-783"></a> +<a id="line-784" name="line-784"></a><span class="p">}</span> +<a id="line-785" name="line-785"></a> +<a id="line-786" name="line-786"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-787" name="line-787"></a><span class="nf">connect_signals</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">)</span> +<a id="line-788" name="line-788"></a><span class="p">{</span> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-790" name="line-790"></a> +<a id="line-791" name="line-791"></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">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-792" name="line-792"></a> +<a id="line-793" name="line-793"></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">-></span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_left_value_changed</span><span class="p">),</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-796" name="line-796"></a> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_right_value_changed</span><span class="p">),</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-800" name="line-800"></a> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_top_value_changed</span><span class="p">),</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-804" name="line-804"></a> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_bottom_value_changed</span><span class="p">),</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-808" name="line-808"></a> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_width_value_changed</span><span class="p">),</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-812" name="line-812"></a> +<a id="line-813" name="line-813"></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">-></span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_height_value_changed</span><span class="p">),</span> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-816" name="line-816"></a> +<a id="line-817" name="line-817"></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">-></span><span class="n">scaling</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_scale_changed</span><span class="p">),</span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-820" name="line-820"></a> +<a id="line-821" name="line-821"></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">-></span><span class="n">scaling</span><span class="p">,</span><span class="w"> </span><span class="s">"format-value"</span><span class="p">,</span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_scale_format_value</span><span class="p">),</span> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-824" name="line-824"></a> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="s">"image-moved"</span><span class="p">,</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_preview_image_moved</span><span class="p">),</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-828" name="line-828"></a><span class="p">}</span> +<a id="line-829" name="line-829"></a> +<a id="line-830" name="line-830"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-831" name="line-831"></a><span class="nf">eom_print_image_setup_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetupClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-832" name="line-832"></a><span class="p">{</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">class</span><span class="p">;</span> +<a id="line-834" name="line-834"></a> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_image_setup_set_property</span><span class="p">;</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_image_setup_get_property</span><span class="p">;</span> +<a id="line-837" name="line-837"></a> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"image"</span><span class="p">,</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Image"</span><span class="p">),</span> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"The image whose printing properties will be set up"</span><span class="p">),</span> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-844" name="line-844"></a> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_PAGE_SETUP</span><span class="p">,</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"page-setup"</span><span class="p">,</span> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Page Setup"</span><span class="p">),</span> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"The information for the page where the image will be printed"</span><span class="p">),</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">GTK_TYPE_PAGE_SETUP</span><span class="p">,</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-851" name="line-851"></a><span class="p">}</span> +<a id="line-852" name="line-852"></a> +<a id="line-853" name="line-853"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-854" name="line-854"></a><span class="nf">eom_print_image_setup_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">)</span> +<a id="line-855" name="line-855"></a><span class="p">{</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">frame</span><span class="p">;</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">;</span> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hscale</span><span class="p">;</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combobox</span><span class="p">;</span> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-862" name="line-862"></a> +<a id="line-863" name="line-863"></a><span class="cp">#ifdef HAVE__NL_MEASUREMENT_MEASUREMENT</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">locale_scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-865" name="line-865"></a><span class="cp">#endif</span> +<a id="line-866" name="line-866"></a> +<a id="line-867" name="line-867"></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">setup</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_image_setup_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">);</span> +<a id="line-868" name="line-868"></a> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-870" name="line-870"></a> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">grid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_grid_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">gtk_grid_set_row_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="n">gtk_grid_set_column_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wrap_in_frame</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Position"</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">);</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">),</span><span class="w"> </span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-876" name="line-876"></a> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_attach_spin_button_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Left:"</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_attach_spin_button_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Right:"</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_attach_spin_button_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Top:"</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">bottom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_attach_spin_button_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Bottom:"</span><span class="p">),</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-884" name="line-884"></a> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"C_enter:"</span><span class="p">));</span> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-887" name="line-887"></a> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_text_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">gtk_combo_box_text_insert_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX_TEXT</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">CENTER_NONE</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"None"</span><span class="p">));</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">gtk_combo_box_text_insert_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX_TEXT</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">CENTER_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Horizontal"</span><span class="p">));</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">gtk_combo_box_text_insert_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX_TEXT</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">CENTER_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Vertical"</span><span class="p">));</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">gtk_combo_box_text_insert_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX_TEXT</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">CENTER_BOTH</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Both"</span><span class="p">));</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span><span class="w"> </span><span class="n">CENTER_NONE</span><span class="p">);</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="cm">/* Attach combobox below right margin spinbutton and span until end */</span> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">gtk_grid_attach_next_to</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">combobox</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">right</span><span class="p">,</span> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">GTK_POS_BOTTOM</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="cm">/* Attach the label to the left of the combobox */</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">gtk_grid_attach_next_to</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">combobox</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_POS_LEFT</span><span class="p">,</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">combobox</span><span class="p">);</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">center</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">combobox</span><span class="p">;</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_center_changed</span><span class="p">),</span> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-909" name="line-909"></a> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="n">grid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_grid_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="n">gtk_grid_set_row_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">gtk_grid_set_column_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wrap_in_frame</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Size"</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">);</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">),</span><span class="w"> </span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-915" name="line-915"></a> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_attach_spin_button_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Width:"</span><span class="p">),</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_attach_spin_button_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Height:"</span><span class="p">),</span> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-920" name="line-920"></a> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"_Scaling:"</span><span class="p">));</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="n">hscale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scale_new_with_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">gtk_scale_set_value_pos</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCALE</span><span class="w"> </span><span class="p">(</span><span class="n">hscale</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_POS_RIGHT</span><span class="p">);</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">gtk_range_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_RANGE</span><span class="w"> </span><span class="p">(</span><span class="n">hscale</span><span class="p">),</span><span class="w"> </span><span class="mi">100</span><span class="p">);</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">gtk_grid_attach_next_to</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">hscale</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">width</span><span class="p">,</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">GTK_POS_BOTTOM</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">gtk_grid_attach_next_to</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">hscale</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_POS_LEFT</span><span class="p">,</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">hscale</span><span class="p">);</span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scaling</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hscale</span><span class="p">;</span> +<a id="line-931" name="line-931"></a> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"_Unit:"</span><span class="p">));</span> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-934" name="line-934"></a> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_text_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">gtk_combo_box_text_insert_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX_TEXT</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span><span class="w"> </span><span class="n">UNIT_MM</span><span class="p">,</span> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Millimeters"</span><span class="p">));</span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">gtk_combo_box_text_insert_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX_TEXT</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span><span class="w"> </span><span class="n">UNIT_INCH</span><span class="p">,</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Inches"</span><span class="p">));</span> +<a id="line-940" name="line-940"></a> +<a id="line-941" name="line-941"></a><span class="cp">#ifdef HAVE__NL_MEASUREMENT_MEASUREMENT</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">locale_scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">nl_langinfo</span><span class="w"> </span><span class="p">(</span><span class="n">_NL_MEASUREMENT_MEASUREMENT</span><span class="p">);</span> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale_scale</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">locale_scale</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span><span class="w"> </span><span class="n">UNIT_INCH</span><span class="p">);</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">set_scale_unit</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">);</span> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-947" name="line-947"></a><span class="cp">#endif</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="p">{</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">),</span><span class="w"> </span><span class="n">UNIT_MM</span><span class="p">);</span> +<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">set_scale_unit</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_MM</span><span class="p">);</span> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="p">}</span> +<a id="line-952" name="line-952"></a> +<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">gtk_grid_attach_next_to</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">combobox</span><span class="p">,</span><span class="w"> </span><span class="n">hscale</span><span class="p">,</span> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="n">GTK_POS_BOTTOM</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">gtk_grid_attach_next_to</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">combobox</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_POS_LEFT</span><span class="p">,</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">combobox</span><span class="p">);</span> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">combobox</span><span class="p">;</span> +<a id="line-959" name="line-959"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">combobox</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_unit_changed</span><span class="p">),</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">setup</span><span class="p">);</span> +<a id="line-962" name="line-962"></a> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_preview_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-964" name="line-964"></a> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="cm">/* FIXME: This shouldn't be set by hand */</span> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="mi">250</span><span class="p">,</span><span class="w"> </span><span class="mi">250</span><span class="p">);</span> +<a id="line-967" name="line-967"></a> +<a id="line-968" name="line-968"></a><span class="w"> </span><span class="n">frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wrap_in_frame</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Preview"</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">);</span> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="cm">/* The preview widget needs to span the whole grid height */</span> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">),</span><span class="w"> </span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-971" name="line-971"></a> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">));</span> +<a id="line-973" name="line-973"></a><span class="p">}</span> +<a id="line-974" name="line-974"></a> +<a id="line-975" name="line-975"></a><span class="cm">/**</span> +<a id="line-976" name="line-976"></a><span class="cm"> * eom_print_image_setup_new:</span> +<a id="line-977" name="line-977"></a><span class="cm"> * @image: the #EomImage to print</span> +<a id="line-978" name="line-978"></a><span class="cm"> * @page_setup: a #GtkPageSetup specifying the page where</span> +<a id="line-979" name="line-979"></a><span class="cm"> * the image will be print</span> +<a id="line-980" name="line-980"></a><span class="cm"> *</span> +<a id="line-981" name="line-981"></a><span class="cm"> * Creates a new #EomPrintImageSetup widget, to be used as a custom</span> +<a id="line-982" name="line-982"></a><span class="cm"> * widget in a #GtkPrintUnixDialog. This widgets allows to set</span> +<a id="line-983" name="line-983"></a><span class="cm"> * the image position and scale in a page.</span> +<a id="line-984" name="line-984"></a><span class="cm"> *</span> +<a id="line-985" name="line-985"></a><span class="cm"> * Returns: a new #EomPrintImageSetup</span> +<a id="line-986" name="line-986"></a><span class="cm"> **/</span> +<a id="line-987" name="line-987"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-988" name="line-988"></a><span class="nf">eom_print_image_setup_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GtkPageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">page_setup</span><span class="p">)</span> +<a id="line-989" name="line-989"></a><span class="p">{</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">;</span> +<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">;</span> +<a id="line-992" name="line-992"></a> +<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">setup</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">EOM_TYPE_PRINT_IMAGE_SETUP</span><span class="p">,</span> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="s">"orientation"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span> +<a id="line-995" name="line-995"></a><span class="w"> </span><span class="s">"row-spacing"</span><span class="p">,</span><span class="w"> </span><span class="mi">18</span><span class="p">,</span> +<a id="line-996" name="line-996"></a><span class="w"> </span><span class="s">"column-spacing"</span><span class="p">,</span><span class="w"> </span><span class="mi">18</span><span class="p">,</span> +<a id="line-997" name="line-997"></a><span class="w"> </span><span class="s">"border-width"</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">,</span> +<a id="line-998" name="line-998"></a><span class="w"> </span><span class="s">"image"</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">,</span> +<a id="line-999" name="line-999"></a><span class="w"> </span><span class="s">"page-setup"</span><span class="p">,</span><span class="w"> </span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1001" name="line-1001"></a> +<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">set_initial_values</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">));</span> +<a id="line-1003" name="line-1003"></a> +<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">;</span> +<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="n">eom_print_preview_set_from_page_setup</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">),</span> +<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-1007" name="line-1007"></a> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">connect_signals</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">));</span> +<a id="line-1009" name="line-1009"></a> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">setup</span><span class="p">;</span> +<a id="line-1011" name="line-1011"></a><span class="p">}</span> +<a id="line-1012" name="line-1012"></a> +<a id="line-1013" name="line-1013"></a><span class="cm">/**</span> +<a id="line-1014" name="line-1014"></a><span class="cm"> * eom_print_image_setup_get_options:</span> +<a id="line-1015" name="line-1015"></a><span class="cm"> * @setup: a #EomPrintImageSetup</span> +<a id="line-1016" name="line-1016"></a><span class="cm"> * @left: a pointer where to store the image's left position</span> +<a id="line-1017" name="line-1017"></a><span class="cm"> * @top: a pointer where to store the image's top position</span> +<a id="line-1018" name="line-1018"></a><span class="cm"> * @scale: a pointer where to store the image's scale</span> +<a id="line-1019" name="line-1019"></a><span class="cm"> * @unit: a pointer where to store the #GtkUnit used by the @left and @top values.</span> +<a id="line-1020" name="line-1020"></a><span class="cm"> *</span> +<a id="line-1021" name="line-1021"></a><span class="cm"> * Gets the options set by the #EomPrintImageSetup.</span> +<a id="line-1022" name="line-1022"></a><span class="cm"> **/</span> +<a id="line-1023" name="line-1023"></a><span class="kt">void</span> +<a id="line-1024" name="line-1024"></a><span class="nf">eom_print_image_setup_get_options</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">,</span> +<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">left</span><span class="p">,</span> +<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">top</span><span class="p">,</span> +<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">scale</span><span class="p">,</span> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">GtkUnit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">)</span> +<a id="line-1029" name="line-1029"></a><span class="p">{</span> +<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="n">EomPrintImageSetupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1031" name="line-1031"></a> +<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">));</span> +<a id="line-1033" name="line-1033"></a> +<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1035" name="line-1035"></a> +<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="o">*</span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">));</span> +<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="o">*</span><span class="n">top</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">));</span> +<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="o">*</span><span class="n">scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_range_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_RANGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">scaling</span><span class="p">));</span> +<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="p">;</span> +<a id="line-1040" name="line-1040"></a><span class="p">}</span> +<a id="line-1041" name="line-1041"></a> +<a id="line-1042" name="line-1042"></a><span class="kt">void</span> +<a id="line-1043" name="line-1043"></a><span class="nf">eom_print_image_setup_update</span><span class="w"> </span><span class="p">(</span><span class="n">GtkPrintOperation</span><span class="w"> </span><span class="o">*</span><span class="n">operation</span><span class="p">,</span> +<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">custom_widget</span><span class="p">,</span> +<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="n">GtkPageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">page_setup</span><span class="p">,</span> +<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="n">GtkPrintSettings</span><span class="w"> </span><span class="o">*</span><span class="n">print_settings</span><span class="p">,</span> +<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1048" name="line-1048"></a><span class="p">{</span> +<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">;</span> +<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">pos_x</span><span class="p">;</span> +<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">pos_y</span><span class="p">;</span> +<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="n">EomPrintImageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">;</span> +<a id="line-1053" name="line-1053"></a> +<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">custom_widget</span><span class="p">);</span> +<a id="line-1055" name="line-1055"></a> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_page_setup_copy</span><span class="w"> </span><span class="p">(</span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-1057" name="line-1057"></a> +<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="n">set_initial_values</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">));</span> +<a id="line-1059" name="line-1059"></a> +<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_IMAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">;</span> +<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="n">eom_print_preview_set_from_page_setup</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">),</span> +<a id="line-1062" name="line-1062"></a><span class="w"> </span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-1063" name="line-1063"></a> +<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">pos_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">left</span><span class="p">));</span> +<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="n">pos_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">top</span><span class="p">));</span> +<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current_unit</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_UNIT_MM</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="n">pos_x</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">FACTOR_MM_TO_INCH</span><span class="p">;</span> +<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">pos_y</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">FACTOR_MM_TO_INCH</span><span class="p">;</span> +<a id="line-1069" name="line-1069"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="n">eom_print_preview_set_image_position</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">preview</span><span class="p">),</span><span class="w"> </span><span class="n">pos_x</span><span class="p">,</span><span class="w"> </span><span class="n">pos_y</span><span class="p">);</span> +<a id="line-1071" name="line-1071"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/23.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/23.html new file mode 100644 index 0000000..32f3108 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/23.html @@ -0,0 +1,2485 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-print-preview.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-print-preview.c</p> +<a href="23.html#line-94"> unknownMacro 94</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of MATE -- Print Preview Widget</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006-2008 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Claudio Saavedra <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-8" name="line-8"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-9" name="line-9"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-10" name="line-10"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-15" name="line-15"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-19" name="line-19"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><cairo.h></span> +<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></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">"eom-image.h"</span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-print-preview.h"</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomPrintPreviewPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">area</span><span class="p">;</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">image_scaled</span><span class="p">;</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="cm">/* The surface to set to the cairo context, created from the image */</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">;</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="cm">/* Flag whether we have to create surface */</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">flag_create_surface</span><span class="p">;</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="cm">/* the alignment of the image in the page */</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">image_x_align</span><span class="p">,</span><span class="w"> </span><span class="n">image_y_align</span><span class="p">;</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="cm">/* real paper size, in inches */</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">p_width</span><span class="p">,</span><span class="w"> </span><span class="n">p_height</span><span class="p">;</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="cm">/* page margins, in inches */</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">l_margin</span><span class="p">,</span><span class="w"> </span><span class="n">r_margin</span><span class="p">,</span><span class="w"> </span><span class="n">t_margin</span><span class="p">,</span><span class="w"> </span><span class="n">b_margin</span><span class="p">;</span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="cm">/* page margins, relatives to the widget size */</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">l_rmargin</span><span class="p">,</span><span class="w"> </span><span class="n">r_rmargin</span><span class="p">,</span><span class="w"> </span><span class="n">t_rmargin</span><span class="p">,</span><span class="w"> </span><span class="n">b_rmargin</span><span class="p">;</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="cm">/* image width, relative to the widget size */</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">r_width</span><span class="p">,</span><span class="w"> </span><span class="n">r_height</span><span class="p">;</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="cm">/* scale of the image, as defined by the user */</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">i_scale</span><span class="p">;</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="cm">/* scale of the page, relative to the widget size */</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">p_scale</span><span class="p">;</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="cm">/* whether we are currently grabbing the image */</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">grabbed</span><span class="p">;</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="cm">/* the last cursor position */</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">cursorx</span><span class="p">,</span><span class="w"> </span><span class="n">cursory</span><span class="p">;</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="cm">/* if we reject to move the image,</span> +<a id="line-68" name="line-68"></a><span class="cm"> store the delta here */</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">r_dx</span><span class="p">,</span><span class="w"> </span><span class="n">r_dy</span><span class="p">;</span> +<a id="line-70" name="line-70"></a><span class="p">};</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="cm">/* Signal IDs */</span> +<a id="line-73" name="line-73"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">SIGNAL_IMAGE_MOVED</span><span class="p">,</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">SIGNAL_LAST</span> +<a id="line-76" name="line-76"></a><span class="p">};</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">preview_signals</span><span class="w"> </span><span class="p">[</span><span class="n">SIGNAL_LAST</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">PROP_IMAGE_X_ALIGN</span><span class="p">,</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">PROP_IMAGE_Y_ALIGN</span><span class="p">,</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">PROP_IMAGE_SCALE</span><span class="p">,</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">PROP_PAPER_WIDTH</span><span class="p">,</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">PROP_PAPER_HEIGHT</span><span class="p">,</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">PROP_PAGE_LEFT_MARGIN</span><span class="p">,</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">PROP_PAGE_RIGHT_MARGIN</span><span class="p">,</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">PROP_PAGE_TOP_MARGIN</span><span class="p">,</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">PROP_PAGE_BOTTOM_MARGIN</span> +<a id="line-92" name="line-92"></a><span class="p">};</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="p">,</span><span class="w"> </span><span class="n">eom_print_preview</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_ASPECT_FRAME</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="n">eom_print_preview_draw</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">);</span> +<a id="line-97" name="line-97"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_print_preview_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">);</span> +<a id="line-98" name="line-98"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">update_relative_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">);</span> +<a id="line-99" name="line-99"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">create_surface</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">);</span> +<a id="line-100" name="line-100"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">create_image_scaled</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">);</span> +<a id="line-101" name="line-101"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">create_surface_when_idle</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">);</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="kt">void</span> +<a id="line-104" name="line-104"></a><span class="nf">eom_print_preview_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-108" name="line-108"></a><span class="p">{</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE_X_ALIGN</span><span class="p">:</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="p">);</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE_Y_ALIGN</span><span class="p">:</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE_SCALE</span><span class="p">:</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="p">);</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAPER_WIDTH</span><span class="p">:</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_width</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAPER_HEIGHT</span><span class="p">:</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_height</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_LEFT_MARGIN</span><span class="p">:</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_margin</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_RIGHT_MARGIN</span><span class="p">:</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_margin</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_TOP_MARGIN</span><span class="p">:</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_margin</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_BOTTOM_MARGIN</span><span class="p">:</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">g_value_set_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_margin</span><span class="p">);</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">}</span> +<a id="line-145" name="line-145"></a><span class="p">}</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-148" name="line-148"></a><span class="nf">eom_print_preview_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-152" name="line-152"></a><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">paper_size_changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span> +<a id="line-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">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">}</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_PIXBUF</span><span class="w"> </span><span class="p">(</span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></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">-></span><span class="n">image_scaled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">);</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">}</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">flag_create_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE_X_ALIGN</span><span class="p">:</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE_Y_ALIGN</span><span class="p">:</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE_SCALE</span><span class="p">:</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">flag_create_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAPER_WIDTH</span><span class="p">:</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">paper_size_changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAPER_HEIGHT</span><span class="p">:</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">paper_size_changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_LEFT_MARGIN</span><span class="p">:</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_margin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_RIGHT_MARGIN</span><span class="p">:</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_margin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_TOP_MARGIN</span><span class="p">:</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_margin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PAGE_BOTTOM_MARGIN</span><span class="p">:</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_margin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_float</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="p">}</span> +<a id="line-203" name="line-203"></a> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">paper_size_changed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="s">"ratio"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_width</span><span class="o">/</span><span class="n">priv</span><span class="o">-></span><span class="n">p_height</span><span class="p">,</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="p">}</span> +<a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">update_relative_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">);</span> +<a id="line-212" name="line-212"></a><span class="p">}</span> +<a id="line-213" name="line-213"></a> +<a id="line-214" name="line-214"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-215" name="line-215"></a><span class="nf">eom_print_preview_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreviewClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-216" name="line-216"></a><span class="p">{</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="p">;</span> +<a id="line-218" name="line-218"></a> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-220" name="line-220"></a> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_preview_get_property</span><span class="p">;</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_preview_set_property</span><span class="p">;</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_preview_finalize</span><span class="p">;</span> +<a id="line-224" name="line-224"></a> +<a id="line-225" name="line-225"></a><span class="cm">/**</span> +<a id="line-226" name="line-226"></a><span class="cm"> * EomPrintPreview:image:</span> +<a id="line-227" name="line-227"></a><span class="cm"> *</span> +<a id="line-228" name="line-228"></a><span class="cm"> * The "image" property defines the image that is previewed</span> +<a id="line-229" name="line-229"></a><span class="cm"> * in the widget.</span> +<a id="line-230" name="line-230"></a><span class="cm"> */</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"image"</span><span class="p">,</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">"Image to show in the preview"</span><span class="p">,</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">,</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-238" name="line-238"></a> +<a id="line-239" name="line-239"></a><span class="cm">/**</span> +<a id="line-240" name="line-240"></a><span class="cm"> * EomPrintPreview:image-x-align:</span> +<a id="line-241" name="line-241"></a><span class="cm"> *</span> +<a id="line-242" name="line-242"></a><span class="cm"> * The "image-x-align" property defines the horizontal alignment</span> +<a id="line-243" name="line-243"></a><span class="cm"> * of the image in the widget.</span> +<a id="line-244" name="line-244"></a><span class="cm"> */</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">PROP_IMAGE_X_ALIGN</span><span class="p">,</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"image-x-align"</span><span class="p">,</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="s">"Horizontal alignment for the image"</span><span class="p">,</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-254" name="line-254"></a> +<a id="line-255" name="line-255"></a><span class="cm">/**</span> +<a id="line-256" name="line-256"></a><span class="cm"> * EomPrintPreview:image-y-align:</span> +<a id="line-257" name="line-257"></a><span class="cm"> *</span> +<a id="line-258" name="line-258"></a><span class="cm"> * The "image-y-align" property defines the horizontal alignment</span> +<a id="line-259" name="line-259"></a><span class="cm"> * of the image in the widget.</span> +<a id="line-260" name="line-260"></a><span class="cm"> */</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">PROP_IMAGE_Y_ALIGN</span><span class="p">,</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"image-y-align"</span><span class="p">,</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="s">"Vertical alignment for the image"</span><span class="p">,</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="cm">/**</span> +<a id="line-272" name="line-272"></a><span class="cm"> * EomPrintPreview:image-scale:</span> +<a id="line-273" name="line-273"></a><span class="cm"> *</span> +<a id="line-274" name="line-274"></a><span class="cm"> * The "image-scale" property defines the scaling of the image</span> +<a id="line-275" name="line-275"></a><span class="cm"> * that the user wants for the printing.</span> +<a id="line-276" name="line-276"></a><span class="cm"> */</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">PROP_IMAGE_SCALE</span><span class="p">,</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"image-scale"</span><span class="p">,</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="s">"The scale for the image"</span><span class="p">,</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="cm">/**</span> +<a id="line-288" name="line-288"></a><span class="cm"> * EomPrintPreview:paper-width:</span> +<a id="line-289" name="line-289"></a><span class="cm"> *</span> +<a id="line-290" name="line-290"></a><span class="cm"> * The width of the previewed paper, in inches.</span> +<a id="line-291" name="line-291"></a><span class="cm"> */</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">PROP_PAPER_WIDTH</span><span class="p">,</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"paper-width"</span><span class="p">,</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="s">"Real paper width in inches"</span><span class="p">,</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="mi">100</span><span class="p">,</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="mf">8.5</span><span class="p">,</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-301" name="line-301"></a> +<a id="line-302" name="line-302"></a><span class="cm">/**</span> +<a id="line-303" name="line-303"></a><span class="cm"> * EomPrintPreview:paper-height:</span> +<a id="line-304" name="line-304"></a><span class="cm"> *</span> +<a id="line-305" name="line-305"></a><span class="cm"> * The height of the previewed paper, in inches.</span> +<a id="line-306" name="line-306"></a><span class="cm"> */</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">PROP_PAPER_HEIGHT</span><span class="p">,</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"paper-height"</span><span class="p">,</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="s">"Real paper height in inches"</span><span class="p">,</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="mi">200</span><span class="p">,</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="mi">11</span><span class="p">,</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-316" name="line-316"></a> +<a id="line-317" name="line-317"></a><span class="cm">/**</span> +<a id="line-318" name="line-318"></a><span class="cm"> * EomPrintPreview:page-left-margin:</span> +<a id="line-319" name="line-319"></a><span class="cm"> *</span> +<a id="line-320" name="line-320"></a><span class="cm"> * The size of the page's left margin, in inches.</span> +<a id="line-321" name="line-321"></a><span class="cm"> */</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">PROP_PAGE_LEFT_MARGIN</span><span class="p">,</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"page-left-margin"</span><span class="p">,</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="s">"Left margin of the page in inches"</span><span class="p">,</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="mi">100</span><span class="p">,</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="mf">0.25</span><span class="p">,</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-331" name="line-331"></a> +<a id="line-332" name="line-332"></a><span class="cm">/**</span> +<a id="line-333" name="line-333"></a><span class="cm"> * EomPrintPreview:page-right-margin:</span> +<a id="line-334" name="line-334"></a><span class="cm"> *</span> +<a id="line-335" name="line-335"></a><span class="cm"> * The size of the page's right margin, in inches.</span> +<a id="line-336" name="line-336"></a><span class="cm"> */</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">PROP_PAGE_RIGHT_MARGIN</span><span class="p">,</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"page-right-margin"</span><span class="p">,</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="s">"Right margin of the page in inches"</span><span class="p">,</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="mi">200</span><span class="p">,</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="mf">0.25</span><span class="p">,</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-346" name="line-346"></a><span class="cm">/**</span> +<a id="line-347" name="line-347"></a><span class="cm"> * EomPrintPreview:page-top-margin:</span> +<a id="line-348" name="line-348"></a><span class="cm"> *</span> +<a id="line-349" name="line-349"></a><span class="cm"> * The size of the page's top margin, in inches.</span> +<a id="line-350" name="line-350"></a><span class="cm"> */</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">PROP_PAGE_TOP_MARGIN</span><span class="p">,</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"page-top-margin"</span><span class="p">,</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="s">"Top margin of the page in inches"</span><span class="p">,</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="mi">100</span><span class="p">,</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="mf">0.25</span><span class="p">,</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="cm">/**</span> +<a id="line-362" name="line-362"></a><span class="cm"> * EomPrintPreview:page-bottom-margin:</span> +<a id="line-363" name="line-363"></a><span class="cm"> *</span> +<a id="line-364" name="line-364"></a><span class="cm"> * The size of the page's bottom margin, in inches.</span> +<a id="line-365" name="line-365"></a><span class="cm"> */</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">PROP_PAGE_BOTTOM_MARGIN</span><span class="p">,</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">g_param_spec_float</span><span class="w"> </span><span class="p">(</span><span class="s">"page-bottom-margin"</span><span class="p">,</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="s">"Bottom margin of the page in inches"</span><span class="p">,</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="mi">200</span><span class="p">,</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="mf">0.56</span><span class="p">,</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-375" name="line-375"></a> +<a id="line-376" name="line-376"></a><span class="cm">/**</span> +<a id="line-377" name="line-377"></a><span class="cm"> * EomPrintPreview::image-moved:</span> +<a id="line-378" name="line-378"></a><span class="cm"> * @preview: the object which received the signal</span> +<a id="line-379" name="line-379"></a><span class="cm"> *</span> +<a id="line-380" name="line-380"></a><span class="cm"> * The #EomPrintPreview::image-moved signal is emitted when the position</span> +<a id="line-381" name="line-381"></a><span class="cm"> * of the image is changed.</span> +<a id="line-382" name="line-382"></a><span class="cm"> */</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">preview_signals</span><span class="w"> </span><span class="p">[</span><span class="n">SIGNAL_IMAGE_MOVED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"image_moved"</span><span class="p">,</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">G_TYPE_FROM_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">),</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_FIRST</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-389" name="line-389"></a><span class="p">}</span> +<a id="line-390" name="line-390"></a> +<a id="line-391" name="line-391"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-392" name="line-392"></a><span class="nf">eom_print_preview_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-393" name="line-393"></a><span class="p">{</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-395" name="line-395"></a> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-397" name="line-397"></a> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="p">}</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">);</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="p">}</span> +<a id="line-407" name="line-407"></a> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">);</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="p">}</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_print_preview_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-414" name="line-414"></a><span class="p">}</span> +<a id="line-415" name="line-415"></a> +<a id="line-416" name="line-416"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-417" name="line-417"></a><span class="nf">eom_print_preview_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">)</span> +<a id="line-418" name="line-418"></a><span class="p">{</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">ratio</span><span class="p">;</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></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">preview</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_preview_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_drawing_area_new</span><span class="w"> </span><span class="p">());</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">);</span> +<a id="line-427" name="line-427"></a> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">8.5</span><span class="p">;</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">11.0</span><span class="p">;</span> +<a id="line-430" name="line-430"></a> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">ratio</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_width</span><span class="o">/</span><span class="n">priv</span><span class="o">-></span><span class="n">p_height</span><span class="p">;</span> +<a id="line-432" name="line-432"></a> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">gtk_aspect_frame_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ASPECT_FRAME</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">),</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="n">ratio</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-435" name="line-435"></a> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.5</span><span class="p">;</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.5</span><span class="p">;</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-441" name="line-441"></a> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">flag_create_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-444" name="line-444"></a> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-446" name="line-446"></a> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_margin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.25</span><span class="p">;</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_margin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.25</span><span class="p">;</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_margin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.25</span><span class="p">;</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_margin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.56</span><span class="p">;</span> +<a id="line-451" name="line-451"></a> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">grabbed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cursorx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cursory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-457" name="line-457"></a><span class="p">}</span> +<a id="line-458" name="line-458"></a> +<a id="line-459" name="line-459"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">button_press_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">bev</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">button_release_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">bev</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-461" name="line-461"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">motion_notify_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventMotion</span><span class="w"> </span><span class="o">*</span><span class="n">mev</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-462" name="line-462"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">key_press_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventKey</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">user_data</span><span class="p">);</span> +<a id="line-463" name="line-463"></a> +<a id="line-464" name="line-464"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">draw_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDrawingArea</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-465" name="line-465"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">size_allocate_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="o">*</span><span class="n">allocation</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-466" name="line-466"></a> +<a id="line-467" name="line-467"></a><span class="cm">/**</span> +<a id="line-468" name="line-468"></a><span class="cm"> * eom_print_preview_new_with_pixbuf:</span> +<a id="line-469" name="line-469"></a><span class="cm"> * @pixbuf: a #GdkPixbuf</span> +<a id="line-470" name="line-470"></a><span class="cm"> *</span> +<a id="line-471" name="line-471"></a><span class="cm"> * Creates a new #EomPrintPreview widget, and sets the #GdkPixbuf to preview</span> +<a id="line-472" name="line-472"></a><span class="cm"> * on it.</span> +<a id="line-473" name="line-473"></a><span class="cm"> *</span> +<a id="line-474" name="line-474"></a><span class="cm"> * Returns: A new #EomPrintPreview widget.</span> +<a id="line-475" name="line-475"></a><span class="cm"> **/</span> +<a id="line-476" name="line-476"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-477" name="line-477"></a><span class="nf">eom_print_preview_new_with_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">)</span> +<a id="line-478" name="line-478"></a><span class="p">{</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">;</span> +<a id="line-480" name="line-480"></a> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_PIXBUF</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-482" name="line-482"></a> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">eom_print_preview_new</span><span class="w"> </span><span class="p">());</span> +<a id="line-484" name="line-484"></a> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-486" name="line-486"></a> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">update_relative_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-488" name="line-488"></a> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-490" name="line-490"></a><span class="p">}</span> +<a id="line-491" name="line-491"></a> +<a id="line-492" name="line-492"></a><span class="cm">/**</span> +<a id="line-493" name="line-493"></a><span class="cm"> * eom_print_preview_new:</span> +<a id="line-494" name="line-494"></a><span class="cm"> *</span> +<a id="line-495" name="line-495"></a><span class="cm"> * Creates a new #EomPrintPreview widget, setting it to the default values,</span> +<a id="line-496" name="line-496"></a><span class="cm"> * and leaving the page empty. You still need to set the #EomPrintPreview:image</span> +<a id="line-497" name="line-497"></a><span class="cm"> * property to make it useful.</span> +<a id="line-498" name="line-498"></a><span class="cm"> *</span> +<a id="line-499" name="line-499"></a><span class="cm"> * Returns: A new and empty #EomPrintPreview widget.</span> +<a id="line-500" name="line-500"></a><span class="cm"> **/</span> +<a id="line-501" name="line-501"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-502" name="line-502"></a><span class="nf">eom_print_preview_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-503" name="line-503"></a><span class="p">{</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">;</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">area</span><span class="p">;</span> +<a id="line-506" name="line-506"></a> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">preview</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">EOM_TYPE_PRINT_PREVIEW</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-508" name="line-508"></a> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">;</span> +<a id="line-510" name="line-510"></a> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">gtk_widget_set_events</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">,</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">GDK_EXPOSURE_MASK</span><span class="w"> </span><span class="o">|</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">GDK_POINTER_MOTION_MASK</span><span class="w"> </span><span class="o">|</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">GDK_BUTTON_PRESS_MASK</span><span class="w"> </span><span class="o">|</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">GDK_BUTTON_RELEASE_MASK</span><span class="w"> </span><span class="o">|</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">GDK_KEY_PRESS_MASK</span><span class="p">);</span> +<a id="line-517" name="line-517"></a> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">),</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="s">"can-focus"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-521" name="line-521"></a> +<a id="line-522" name="line-522"></a><span class="cm">/* update_relative_sizes (preview); */</span> +<a id="line-523" name="line-523"></a> +<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">area</span><span class="p">,</span><span class="w"> </span><span class="s">"draw"</span><span class="p">,</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">draw_cb</span><span class="p">),</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">preview</span><span class="p">);</span> +<a id="line-527" name="line-527"></a> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">,</span><span class="w"> </span><span class="s">"motion-notify-event"</span><span class="p">,</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">motion_notify_event_cb</span><span class="p">),</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">preview</span><span class="p">);</span> +<a id="line-531" name="line-531"></a> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">,</span><span class="w"> </span><span class="s">"button-press-event"</span><span class="p">,</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">button_press_event_cb</span><span class="p">),</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">preview</span><span class="p">);</span> +<a id="line-535" name="line-535"></a> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">,</span><span class="w"> </span><span class="s">"button-release-event"</span><span class="p">,</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">button_release_event_cb</span><span class="p">),</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">preview</span><span class="p">);</span> +<a id="line-539" name="line-539"></a> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">,</span><span class="w"> </span><span class="s">"key-press-event"</span><span class="p">,</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">key_press_event_cb</span><span class="p">),</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">preview</span><span class="p">);</span> +<a id="line-543" name="line-543"></a> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">,</span><span class="w"> </span><span class="s">"size-allocate"</span><span class="p">,</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">size_allocate_cb</span><span class="p">),</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">preview</span><span class="p">);</span> +<a id="line-547" name="line-547"></a> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-549" name="line-549"></a><span class="p">}</span> +<a id="line-550" name="line-550"></a> +<a id="line-551" name="line-551"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-552" name="line-552"></a><span class="nf">draw_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDrawingArea</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-555" name="line-555"></a><span class="p">{</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">update_relative_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-557" name="line-557"></a> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">eom_print_preview_draw</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span><span class="w"> </span><span class="n">cr</span><span class="p">);</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_status</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">CAIRO_STATUS_SUCCESS</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">fprintf</span><span class="w"> </span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">"Cairo is unhappy: %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">cairo_status_to_string</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_status</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">)));</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="p">}</span> +<a id="line-564" name="line-564"></a> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-566" name="line-566"></a><span class="p">}</span> +<a id="line-567" name="line-567"></a> +<a id="line-568" name="line-568"></a><span class="cm">/**</span> +<a id="line-569" name="line-569"></a><span class="cm"> * get_current_image_coordinates:</span> +<a id="line-570" name="line-570"></a><span class="cm"> * @preview: an #EomPrintPreview</span> +<a id="line-571" name="line-571"></a><span class="cm"> * @x0: A pointer where to store the x coordinate.</span> +<a id="line-572" name="line-572"></a><span class="cm"> * @y0: A pointer where to store the y coordinate.</span> +<a id="line-573" name="line-573"></a><span class="cm"> *</span> +<a id="line-574" name="line-574"></a><span class="cm"> * This function returns the current image coordinates, according</span> +<a id="line-575" name="line-575"></a><span class="cm"> * with the properties of the given @preview widget.</span> +<a id="line-576" name="line-576"></a><span class="cm"> **/</span> +<a id="line-577" name="line-577"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-578" name="line-578"></a><span class="nf">get_current_image_coordinates</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">y0</span><span class="p">)</span> +<a id="line-580" name="line-580"></a><span class="p">{</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-583" name="line-583"></a> +<a id="line-584" name="line-584"></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">preview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-586" name="line-586"></a> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="o">*</span><span class="n">x0</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)((</span><span class="mi">1</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="p">)</span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">l_rmargin</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="o">*</span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_rmargin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_width</span><span class="p">));</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="o">*</span><span class="n">y0</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)((</span><span class="mi">1</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="p">)</span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">t_rmargin</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="o">*</span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_rmargin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_height</span><span class="p">));</span> +<a id="line-589" name="line-589"></a><span class="p">}</span> +<a id="line-590" name="line-590"></a> +<a id="line-591" name="line-591"></a><span class="cm">/**</span> +<a id="line-592" name="line-592"></a><span class="cm"> * press_inside_image_area:</span> +<a id="line-593" name="line-593"></a><span class="cm"> * @preview: an #EomPrintPreview</span> +<a id="line-594" name="line-594"></a><span class="cm"> * @x: the points x coordinate</span> +<a id="line-595" name="line-595"></a><span class="cm"> * @y: the points y coordinate</span> +<a id="line-596" name="line-596"></a><span class="cm"> *</span> +<a id="line-597" name="line-597"></a><span class="cm"> * Returns whether the given point is inside the image area.</span> +<a id="line-598" name="line-598"></a><span class="cm"> *</span> +<a id="line-599" name="line-599"></a><span class="cm"> * Returns: %TRUE if the given point is inside of the image area,</span> +<a id="line-600" name="line-600"></a><span class="cm"> * %FALSE otherwise.</span> +<a id="line-601" name="line-601"></a><span class="cm"> **/</span> +<a id="line-602" name="line-602"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-603" name="line-603"></a><span class="nf">press_inside_image_area</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">y</span><span class="p">)</span> +<a id="line-606" name="line-606"></a><span class="p">{</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="n">y0</span><span class="p">;</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">get_current_image_coordinates</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y0</span><span class="p">);</span> +<a id="line-612" name="line-612"></a> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">x0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">y0</span><span class="w"> </span><span class="o">&&</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">x0</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_width</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">y0</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_height</span><span class="p">)</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-616" name="line-616"></a> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-618" name="line-618"></a><span class="p">}</span> +<a id="line-619" name="line-619"></a> +<a id="line-620" name="line-620"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-621" name="line-621"></a><span class="nf">create_image_scaled</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">)</span> +<a id="line-622" name="line-622"></a><span class="p">{</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-624" name="line-624"></a> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i_width</span><span class="p">,</span><span class="w"> </span><span class="n">i_height</span><span class="p">;</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">i_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">i_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-632" name="line-632"></a> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">i_width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="p">(</span><span class="n">i_height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">((</span><span class="n">gdouble</span><span class="p">)</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="o">/</span><span class="n">i_width</span><span class="p">,</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="o">/</span><span class="n">i_height</span><span class="p">);</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">scale</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">gtk_widget_get_scale_factor</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">));</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_scale_simple</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">i_width</span><span class="o">*</span><span class="n">scale</span><span class="p">,</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">i_height</span><span class="o">*</span><span class="n">scale</span><span class="p">,</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">GDK_INTERP_TILES</span><span class="p">);</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">);</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="p">}</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="p">}</span> +<a id="line-648" name="line-648"></a><span class="p">}</span> +<a id="line-649" name="line-649"></a> +<a id="line-650" name="line-650"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span> +<a id="line-651" name="line-651"></a><span class="nf">create_preview_buffer</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">)</span> +<a id="line-652" name="line-652"></a><span class="p">{</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">widget_scale</span><span class="p">;</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">GdkInterpType</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">GDK_INTERP_TILES</span><span class="p">;</span> +<a id="line-656" name="line-656"></a> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="p">}</span> +<a id="line-660" name="line-660"></a> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">create_image_scaled</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-662" name="line-662"></a> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">widget_scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_scale_factor</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">));</span> +<a id="line-666" name="line-666"></a> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">widget_scale</span><span class="p">;</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">widget_scale</span><span class="p">;</span> +<a id="line-671" name="line-671"></a> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-674" name="line-674"></a> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="cm">/* to use GDK_INTERP_TILES for small pixbufs is expensive and unnecessary */</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">25</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">25</span><span class="p">)</span> +<a id="line-677" name="line-677"></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">GDK_INTERP_NEAREST</span><span class="p">;</span> +<a id="line-678" name="line-678"></a> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_scale_simple</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">,</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">);</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_scale_simple</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">);</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="p">}</span> +<a id="line-686" name="line-686"></a> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-688" name="line-688"></a><span class="p">}</span> +<a id="line-689" name="line-689"></a> +<a id="line-690" name="line-690"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-691" name="line-691"></a><span class="nf">create_surface</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">)</span> +<a id="line-692" name="line-692"></a><span class="p">{</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-695" name="line-695"></a> +<a id="line-696" name="line-696"></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">-></span><span class="n">surface</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">);</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="p">}</span> +<a id="line-700" name="line-700"></a> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_preview_buffer</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="w"> </span><span class="o">=</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">gdk_cairo_surface_create_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">)));</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="p">}</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">flag_create_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-709" name="line-709"></a><span class="p">}</span> +<a id="line-710" name="line-710"></a> +<a id="line-711" name="line-711"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-712" name="line-712"></a><span class="nf">create_surface_when_idle</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">)</span> +<a id="line-713" name="line-713"></a><span class="p">{</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">create_surface</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-715" name="line-715"></a> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-717" name="line-717"></a><span class="p">}</span> +<a id="line-718" name="line-718"></a> +<a id="line-719" name="line-719"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-720" name="line-720"></a><span class="nf">button_press_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-723" name="line-723"></a><span class="p">{</span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-725" name="line-725"></a> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">cursorx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">;</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">cursory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">;</span> +<a id="line-728" name="line-728"></a> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">1</span><span class="p">:</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">grabbed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">press_inside_image_area</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">);</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="p">}</span> +<a id="line-734" name="line-734"></a> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">grabbed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">));</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="p">}</span> +<a id="line-738" name="line-738"></a> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">);</span> +<a id="line-740" name="line-740"></a> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-742" name="line-742"></a><span class="p">}</span> +<a id="line-743" name="line-743"></a> +<a id="line-744" name="line-744"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-745" name="line-745"></a><span class="nf">button_release_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-748" name="line-748"></a><span class="p">{</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-750" name="line-750"></a> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">1</span><span class="p">:</span> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">grabbed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">r_dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">r_dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">));</span> +<a id="line-757" name="line-757"></a> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="p">}</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-760" name="line-760"></a><span class="p">}</span> +<a id="line-761" name="line-761"></a> +<a id="line-762" name="line-762"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-763" name="line-763"></a><span class="nf">key_press_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-766" name="line-766"></a><span class="p">{</span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">delta</span><span class="p">,</span><span class="w"> </span><span class="n">align</span><span class="p">;</span> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">stop_emission</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-769" name="line-769"></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">property</span><span class="p">;</span> +<a id="line-770" name="line-770"></a> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">delta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-772" name="line-772"></a> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Left</span><span class="p">:</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"image-x-align"</span><span class="p">;</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">delta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">-0.01</span><span class="p">;</span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Right</span><span class="p">:</span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"image-x-align"</span><span class="p">;</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="n">delta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.01</span><span class="p">;</span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Up</span><span class="p">:</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"image-y-align"</span><span class="p">;</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">delta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">-0.01</span><span class="p">;</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Down</span><span class="p">:</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"image-y-align"</span><span class="p">;</span> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">delta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.01</span><span class="p">;</span> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="p">}</span> +<a id="line-791" name="line-791"></a> +<a id="line-792" name="line-792"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">delta</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">g_object_get</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">user_data</span><span class="p">),</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">property</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">align</span><span class="p">,</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-796" name="line-796"></a> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">align</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">delta</span><span class="p">;</span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="n">align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">align</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">property</span><span class="p">,</span><span class="w"> </span><span class="n">align</span><span class="p">,</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-802" name="line-802"></a> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="n">stop_emission</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">,</span><span class="w"> </span><span class="n">preview_signals</span><span class="p">[</span><span class="n">SIGNAL_IMAGE_MOVED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="p">}</span> +<a id="line-806" name="line-806"></a> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">stop_emission</span><span class="p">;</span> +<a id="line-808" name="line-808"></a><span class="p">}</span> +<a id="line-809" name="line-809"></a> +<a id="line-810" name="line-810"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-811" name="line-811"></a><span class="nf">motion_notify_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="n">GdkEventMotion</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-814" name="line-814"></a><span class="p">{</span> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="p">;</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-818" name="line-818"></a> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">grabbed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cursorx</span><span class="p">;</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cursory</span><span class="p">;</span> +<a id="line-822" name="line-822"></a> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-824" name="line-824"></a> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="cm">/* Make sure the image stays inside the margins */</span> +<a id="line-826" name="line-826"></a> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="p">(</span><span class="n">dx</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_dx</span><span class="p">)</span><span class="o">/</span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_rmargin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_rmargin</span><span class="p">);</span> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mf">0.</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mf">1.</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">);</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_dx</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">dx</span><span class="p">;</span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="p">}</span> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="k">else</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-834" name="line-834"></a> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="p">(</span><span class="n">dy</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_dy</span><span class="p">)</span><span class="o">/</span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_rmargin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_rmargin</span><span class="p">);</span> +<a id="line-836" name="line-836"></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">-></span><span class="n">image_y_align</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mf">0.</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mf">1.</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">);</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_dy</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">dy</span><span class="p">;</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-841" name="line-841"></a> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="cm">/* we do this to correctly change the property values */</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-844" name="line-844"></a><span class="w"> </span><span class="s">"image-x-align"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="p">,</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="s">"image-y-align"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="p">,</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-847" name="line-847"></a> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cursorx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">;</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cursory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">;</span> +<a id="line-850" name="line-850"></a> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">,</span><span class="w"> </span><span class="n">preview_signals</span><span class="p">[</span><span class="n">SIGNAL_IMAGE_MOVED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">press_inside_image_area</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">GdkCursor</span><span class="w"> </span><span class="o">*</span><span class="n">cursor</span><span class="p">;</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cursor_new_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">GDK_FLEUR</span><span class="p">);</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">gdk_window_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">cursor</span><span class="p">);</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">cursor</span><span class="p">);</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">gdk_window_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-863" name="line-863"></a><span class="w"> </span><span class="p">}</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="p">}</span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-866" name="line-866"></a><span class="p">}</span> +<a id="line-867" name="line-867"></a> +<a id="line-868" name="line-868"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-869" name="line-869"></a><span class="nf">size_allocate_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-870" name="line-870"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="o">*</span><span class="n">allocation</span><span class="p">,</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-872" name="line-872"></a><span class="p">{</span> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">;</span> +<a id="line-874" name="line-874"></a> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="n">update_relative_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-877" name="line-877"></a> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">flag_create_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-879" name="line-879"></a> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">);</span> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="p">}</span> +<a id="line-884" name="line-884"></a> +<a id="line-885" name="line-885"></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="w"> </span><span class="n">create_surface_when_idle</span><span class="p">,</span><span class="w"> </span><span class="n">preview</span><span class="p">);</span> +<a id="line-886" name="line-886"></a><span class="p">}</span> +<a id="line-887" name="line-887"></a> +<a id="line-888" name="line-888"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-889" name="line-889"></a><span class="nf">eom_print_preview_draw</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">)</span> +<a id="line-890" name="line-890"></a><span class="p">{</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">area</span><span class="p">;</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="n">y0</span><span class="p">;</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_focus</span><span class="p">;</span> +<a id="line-896" name="line-896"></a> +<a id="line-897" name="line-897"></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">preview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">;</span> +<a id="line-899" name="line-899"></a> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">has_focus</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_has_focus</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">);</span> +<a id="line-901" name="line-901"></a> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-903" name="line-903"></a> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="cm">/* draw the page */</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">);</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">);</span> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-908" name="line-908"></a> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="cm">/* draw the page margins */</span> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">);</span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="n">cairo_set_line_width</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">0.1</span><span class="p">);</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_rmargin</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_rmargin</span><span class="p">,</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_rmargin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_rmargin</span><span class="p">,</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_rmargin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_rmargin</span><span class="p">);</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">cairo_stroke</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-917" name="line-917"></a> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">get_current_image_coordinates</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y0</span><span class="p">);</span> +<a id="line-919" name="line-919"></a> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">flag_create_surface</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">create_surface</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">);</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="p">}</span> +<a id="line-923" name="line-923"></a> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">,</span><span class="w"> </span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="n">y0</span><span class="p">);</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="cm">/* just in the remote case we don't have the surface */</span> +<a id="line-929" name="line-929"></a> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="cm">/* adjust (x0, y0) to the new scale */</span> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="w"> </span><span class="o">*</span> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">);</span> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">x0</span><span class="w"> </span><span class="o">/=</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">y0</span><span class="w"> </span><span class="o">/=</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-935" name="line-935"></a> +<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">cairo_scale</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">);</span> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">gdk_cairo_set_source_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_scaled</span><span class="p">,</span><span class="w"> </span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="n">y0</span><span class="p">);</span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="cm">/* just in the remote case we don't have the surface */</span> +<a id="line-941" name="line-941"></a> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="cm">/* adjust (x0, y0) to the new scale */</span> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="n">x0</span><span class="w"> </span><span class="o">/=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">;</span> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">y0</span><span class="w"> </span><span class="o">/=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">;</span> +<a id="line-945" name="line-945"></a> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="n">cairo_scale</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="o">*</span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">);</span> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">gdk_cairo_set_source_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="n">y0</span><span class="p">);</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="p">}</span> +<a id="line-950" name="line-950"></a> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">has_focus</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">ctx</span><span class="p">;</span> +<a id="line-953" name="line-953"></a> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="n">ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">area</span><span class="p">);</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">gtk_render_focus</span><span class="w"> </span><span class="p">(</span><span class="n">ctx</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">);</span> +<a id="line-957" name="line-957"></a><span class="w"> </span><span class="p">}</span> +<a id="line-958" name="line-958"></a><span class="p">}</span> +<a id="line-959" name="line-959"></a> +<a id="line-960" name="line-960"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-961" name="line-961"></a><span class="nf">update_relative_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">)</span> +<a id="line-962" name="line-962"></a><span class="p">{</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i_width</span><span class="p">,</span><span class="w"> </span><span class="n">i_height</span><span class="p">;</span> +<a id="line-966" name="line-966"></a> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-968" name="line-968"></a> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="n">i_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="n">i_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">i_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="p">}</span> +<a id="line-975" name="line-975"></a> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">area</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-977" name="line-977"></a> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">p_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">72.0</span><span class="p">);</span> +<a id="line-979" name="line-979"></a> +<a id="line-980" name="line-980"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="n">i_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">;</span> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="n">i_height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">;</span> +<a id="line-982" name="line-982"></a> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_rmargin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="mf">72.</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_margin</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">);</span> +<a id="line-984" name="line-984"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_rmargin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="mf">72.</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_margin</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">);</span> +<a id="line-985" name="line-985"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_rmargin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="mf">72.</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_margin</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">);</span> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_rmargin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="mf">72.</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_margin</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">p_scale</span><span class="p">);</span> +<a id="line-987" name="line-987"></a><span class="p">}</span> +<a id="line-988" name="line-988"></a> +<a id="line-989" name="line-989"></a><span class="cm">/**</span> +<a id="line-990" name="line-990"></a><span class="cm"> * eom_print_preview_set_page_margins:</span> +<a id="line-991" name="line-991"></a><span class="cm"> * @preview: a #EomPrintPreview</span> +<a id="line-992" name="line-992"></a><span class="cm"> * @l_margin: Left margin.</span> +<a id="line-993" name="line-993"></a><span class="cm"> * @r_margin: Right margin.</span> +<a id="line-994" name="line-994"></a><span class="cm"> * @t_margin: Top margin.</span> +<a id="line-995" name="line-995"></a><span class="cm"> * @b_margin: Bottom margin.</span> +<a id="line-996" name="line-996"></a><span class="cm"> *</span> +<a id="line-997" name="line-997"></a><span class="cm"> * Manually set the margins, in inches.</span> +<a id="line-998" name="line-998"></a><span class="cm"> **/</span> +<a id="line-999" name="line-999"></a><span class="kt">void</span> +<a id="line-1000" name="line-1000"></a><span class="nf">eom_print_preview_set_page_margins</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span> +<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">l_margin</span><span class="p">,</span> +<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">r_margin</span><span class="p">,</span> +<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">t_margin</span><span class="p">,</span> +<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">b_margin</span><span class="p">)</span> +<a id="line-1005" name="line-1005"></a><span class="p">{</span> +<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">));</span> +<a id="line-1007" name="line-1007"></a> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">preview</span><span class="p">),</span> +<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="s">"page-left-margin"</span><span class="p">,</span><span class="w"> </span><span class="n">l_margin</span><span class="p">,</span> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="s">"page-right-margin"</span><span class="p">,</span><span class="w"> </span><span class="n">r_margin</span><span class="p">,</span> +<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="s">"page-top-margin"</span><span class="p">,</span><span class="w"> </span><span class="n">t_margin</span><span class="p">,</span> +<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="s">"page-bottom-margin"</span><span class="p">,</span><span class="w"> </span><span class="n">r_margin</span><span class="p">,</span> +<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1014" name="line-1014"></a><span class="p">}</span> +<a id="line-1015" name="line-1015"></a> +<a id="line-1016" name="line-1016"></a><span class="cm">/**</span> +<a id="line-1017" name="line-1017"></a><span class="cm"> * eom_print_preview_set_from_page_setup:</span> +<a id="line-1018" name="line-1018"></a><span class="cm"> * @preview: a #EomPrintPreview</span> +<a id="line-1019" name="line-1019"></a><span class="cm"> * @setup: a #GtkPageSetup to set the properties from</span> +<a id="line-1020" name="line-1020"></a><span class="cm"> *</span> +<a id="line-1021" name="line-1021"></a><span class="cm"> * Sets up the page properties from a #GtkPageSetup. Useful when using the</span> +<a id="line-1022" name="line-1022"></a><span class="cm"> * widget with the GtkPrint API.</span> +<a id="line-1023" name="line-1023"></a><span class="cm"> **/</span> +<a id="line-1024" name="line-1024"></a><span class="kt">void</span> +<a id="line-1025" name="line-1025"></a><span class="nf">eom_print_preview_set_from_page_setup</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span> +<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="n">GtkPageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">setup</span><span class="p">)</span> +<a id="line-1027" name="line-1027"></a><span class="p">{</span> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">));</span> +<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_PAGE_SETUP</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">));</span> +<a id="line-1030" name="line-1030"></a> +<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">),</span> +<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="s">"page-left-margin"</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_page_setup_get_left_margin</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">),</span> +<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="s">"page-right-margin"</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_page_setup_get_right_margin</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">),</span> +<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="s">"page-top-margin"</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_page_setup_get_top_margin</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">),</span> +<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="s">"page-bottom-margin"</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_page_setup_get_bottom_margin</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">),</span> +<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="s">"paper-width"</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_page_setup_get_paper_width</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">),</span> +<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="s">"paper-height"</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_page_setup_get_paper_height</span><span class="w"> </span><span class="p">(</span><span class="n">setup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_UNIT_INCH</span><span class="p">),</span> +<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1039" name="line-1039"></a> +<a id="line-1040" name="line-1040"></a><span class="p">}</span> +<a id="line-1041" name="line-1041"></a> +<a id="line-1042" name="line-1042"></a><span class="cm">/**</span> +<a id="line-1043" name="line-1043"></a><span class="cm"> * eom_print_preview_get_image_position:</span> +<a id="line-1044" name="line-1044"></a><span class="cm"> * @preview: a #EomPrintPreview</span> +<a id="line-1045" name="line-1045"></a><span class="cm"> * @x: a pointer to a #gdouble, or %NULL to ignore it</span> +<a id="line-1046" name="line-1046"></a><span class="cm"> * @y: a pointer to a #gdouble, or %NULL to ignore it</span> +<a id="line-1047" name="line-1047"></a><span class="cm"> *</span> +<a id="line-1048" name="line-1048"></a><span class="cm"> * Gets current image position in inches, relative to the margins. A</span> +<a id="line-1049" name="line-1049"></a><span class="cm"> * (0, 0) position is the intersection between the left and top margins.</span> +<a id="line-1050" name="line-1050"></a><span class="cm"> **/</span> +<a id="line-1051" name="line-1051"></a><span class="kt">void</span> +<a id="line-1052" name="line-1052"></a><span class="nf">eom_print_preview_get_image_position</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span> +<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span> +<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span> +<a id="line-1055" name="line-1055"></a><span class="p">{</span> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-1058" name="line-1058"></a> +<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">));</span> +<a id="line-1060" name="line-1060"></a> +<a id="line-1061" name="line-1061"></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">preview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1062" name="line-1062"></a> +<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">72.</span><span class="p">;</span> +<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_x_align</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">p_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_margin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_margin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">);</span> +<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">72.</span><span class="p">;</span> +<a id="line-1069" name="line-1069"></a><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_y_align</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">p_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_margin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_margin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">height</span><span class="p">);</span> +<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1071" name="line-1071"></a><span class="p">}</span> +<a id="line-1072" name="line-1072"></a> +<a id="line-1073" name="line-1073"></a><span class="cm">/**</span> +<a id="line-1074" name="line-1074"></a><span class="cm"> * eom_print_preview_set_image_position:</span> +<a id="line-1075" name="line-1075"></a><span class="cm"> * @preview: a #EomPrintPreview</span> +<a id="line-1076" name="line-1076"></a><span class="cm"> * @x: The X coordinate, in inches, or -1 to ignore it.</span> +<a id="line-1077" name="line-1077"></a><span class="cm"> * @y: The Y coordinate, in inches, or -1 to ignore it.</span> +<a id="line-1078" name="line-1078"></a><span class="cm"> *</span> +<a id="line-1079" name="line-1079"></a><span class="cm"> * Sets the image position. You can pass -1 to one of the coordinates if you</span> +<a id="line-1080" name="line-1080"></a><span class="cm"> * only want to set the other.</span> +<a id="line-1081" name="line-1081"></a><span class="cm"> **/</span> +<a id="line-1082" name="line-1082"></a><span class="kt">void</span> +<a id="line-1083" name="line-1083"></a><span class="nf">eom_print_preview_set_image_position</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span> +<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">,</span> +<a id="line-1085" name="line-1085"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">y</span><span class="p">)</span> +<a id="line-1086" name="line-1086"></a><span class="p">{</span> +<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="n">EomPrintPreviewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">x_align</span><span class="p">,</span><span class="w"> </span><span class="n">y_align</span><span class="p">;</span> +<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-1090" name="line-1090"></a> +<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">));</span> +<a id="line-1092" name="line-1092"></a> +<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">preview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1094" name="line-1094"></a> +<a id="line-1095" name="line-1095"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">72.</span><span class="p">;</span> +<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="n">x_align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="o">/</span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">p_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">l_margin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">r_margin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="s">"image-x-align"</span><span class="p">,</span><span class="w"> </span><span class="n">x_align</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1100" name="line-1100"></a> +<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">i_scale</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">72.</span><span class="p">;</span> +<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="n">y_align</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="o">/</span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">p_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">t_margin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">b_margin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">height</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-1104" name="line-1104"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">,</span><span class="w"> </span><span class="s">"image-y-align"</span><span class="p">,</span><span class="w"> </span><span class="n">y_align</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1106" name="line-1106"></a><span class="p">}</span> +<a id="line-1107" name="line-1107"></a> +<a id="line-1108" name="line-1108"></a><span class="cm">/**</span> +<a id="line-1109" name="line-1109"></a><span class="cm"> * eom_print_preview_set_scale:</span> +<a id="line-1110" name="line-1110"></a><span class="cm"> * @preview: a #EomPrintPreview</span> +<a id="line-1111" name="line-1111"></a><span class="cm"> * @scale: a scale value, between 0 and 1.</span> +<a id="line-1112" name="line-1112"></a><span class="cm"> *</span> +<a id="line-1113" name="line-1113"></a><span class="cm"> * Sets the scale for the image.</span> +<a id="line-1114" name="line-1114"></a><span class="cm"> **/</span> +<a id="line-1115" name="line-1115"></a><span class="kt">void</span> +<a id="line-1116" name="line-1116"></a><span class="nf">eom_print_preview_set_scale</span><span class="w"> </span><span class="p">(</span><span class="n">EomPrintPreview</span><span class="w"> </span><span class="o">*</span><span class="n">preview</span><span class="p">,</span> +<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">scale</span><span class="p">)</span> +<a id="line-1118" name="line-1118"></a><span class="p">{</span> +<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PRINT_PREVIEW</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">));</span> +<a id="line-1120" name="line-1120"></a> +<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">preview</span><span class="p">,</span> +<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="s">"image-scale"</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span> +<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1124" name="line-1124"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/24.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/24.html new file mode 100644 index 0000000..8845e7f --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/24.html @@ -0,0 +1,1989 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-properties-dialog.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-properties-dialog.c</p> +<a href="24.html#line-68"> unusedStructMember 68</a><a href="24.html#line-69"> unusedStructMember 69</a><a href="24.html#line-71"> unusedStructMember 71</a><a href="24.html#line-97"> unusedStructMember 97</a><a href="24.html#line-98"> unusedStructMember 98</a><a href="24.html#line-147"> variableScope 147</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span> +<span class="normal">789</span> +<span class="normal">790</span> +<span class="normal">791</span> +<span class="normal">792</span> +<span class="normal">793</span> +<span class="normal">794</span> +<span class="normal">795</span> +<span class="normal">796</span> +<span class="normal">797</span> +<span class="normal">798</span> +<span class="normal">799</span> +<span class="normal">800</span> +<span class="normal">801</span> +<span class="normal">802</span> +<span class="normal">803</span> +<span class="normal">804</span> +<span class="normal">805</span> +<span class="normal">806</span> +<span class="normal">807</span> +<span class="normal">808</span> +<span class="normal">809</span> +<span class="normal">810</span> +<span class="normal">811</span> +<span class="normal">812</span> +<span class="normal">813</span> +<span class="normal">814</span> +<span class="normal">815</span> +<span class="normal">816</span> +<span class="normal">817</span> +<span class="normal">818</span> +<span class="normal">819</span> +<span class="normal">820</span> +<span class="normal">821</span> +<span class="normal">822</span> +<span class="normal">823</span> +<span class="normal">824</span> +<span class="normal">825</span> +<span class="normal">826</span> +<span class="normal">827</span> +<span class="normal">828</span> +<span class="normal">829</span> +<span class="normal">830</span> +<span class="normal">831</span> +<span class="normal">832</span> +<span class="normal">833</span> +<span class="normal">834</span> +<span class="normal">835</span> +<span class="normal">836</span> +<span class="normal">837</span> +<span class="normal">838</span> +<span class="normal">839</span> +<span class="normal">840</span> +<span class="normal">841</span> +<span class="normal">842</span> +<span class="normal">843</span> +<span class="normal">844</span> +<span class="normal">845</span> +<span class="normal">846</span> +<span class="normal">847</span> +<span class="normal">848</span> +<span class="normal">849</span> +<span class="normal">850</span> +<span class="normal">851</span> +<span class="normal">852</span> +<span class="normal">853</span> +<span class="normal">854</span> +<span class="normal">855</span> +<span class="normal">856</span> +<span class="normal">857</span> +<span class="normal">858</span> +<span class="normal">859</span> +<span class="normal">860</span> +<span class="normal">861</span> +<span class="normal">862</span> +<span class="normal">863</span> +<span class="normal">864</span> +<span class="normal">865</span> +<span class="normal">866</span> +<span class="normal">867</span> +<span class="normal">868</span> +<span class="normal">869</span> +<span class="normal">870</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - Image Properties Dialog</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> * Hubert Figuiere <[email protected]> (XMP support)</span> +<a id="line-7" name="line-7"></a><span class="cm"> *</span> +<a id="line-8" name="line-8"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-9" name="line-9"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-10" name="line-10"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-11" name="line-11"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-12" name="line-12"></a><span class="cm"> *</span> +<a id="line-13" name="line-13"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-14" name="line-14"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-15" name="line-15"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-16" name="line-16"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-17" name="line-17"></a><span class="cm"> *</span> +<a id="line-18" name="line-18"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-19" name="line-19"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-20" name="line-20"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-21" name="line-21"></a><span class="cm"> */</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-25" name="line-25"></a><span class="cp">#endif</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">"eom-properties-dialog.h"</span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image.h"</span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-thumb-view.h"</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-exif-util.h"</span> +<a id="line-34" name="line-34"></a><span class="cp">#endif</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span> +<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span> +<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="cp">#if HAVE_EXEMPI</span> +<a id="line-43" name="line-43"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><exempi/xmp.h></span> +<a id="line-44" name="line-44"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><exempi/xmpconsts.h></span> +<a id="line-45" name="line-45"></a><span class="cp">#endif</span> +<a id="line-46" name="line-46"></a><span class="cp">#if HAVE_EXIF || HAVE_EXEMPI</span> +<a id="line-47" name="line-47"></a><span class="cp">#define HAVE_METADATA 1</span> +<a id="line-48" name="line-48"></a><span class="cp">#endif</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-51" name="line-51"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-details.h"</span> +<a id="line-52" name="line-52"></a><span class="cp">#endif</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">PROP_THUMBVIEW</span><span class="p">,</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">PROP_NETBOOK_MODE</span> +<a id="line-58" name="line-58"></a><span class="p">};</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomPropertiesDialogPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">;</span> +<a id="line-62" name="line-62"></a> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">update_page</span><span class="p">;</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">EomPropertiesDialogPage</span><span class="w"> </span><span class="n">current_page</span><span class="p">;</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">notebook</span><span class="p">;</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">close_button</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="hll"><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">next_button</span><span class="p">;</span><span class="error2"><--- struct member '_EomPropertiesDialogPrivate::next_button' is never used.</span> +</span><a id="line-69" name="line-69"></a><span class="hll"><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">previous_button</span><span class="p">;</span><span class="error2"><--- struct member '_EomPropertiesDialogPrivate::previous_button' is never used.</span> +</span><a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="hll"><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">general_box</span><span class="p">;</span><span class="error2"><--- struct member '_EomPropertiesDialogPrivate::general_box' is never used.</span> +</span><a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnail_image</span><span class="p">;</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">name_label</span><span class="p">;</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">width_label</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">height_label</span><span class="p">;</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">type_label</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">bytes_label</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">folder_button</span><span class="p">;</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">folder_button_uri</span><span class="p">;</span> +<a id="line-80" name="line-80"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exif_aperture_label</span><span class="p">;</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exif_exposure_label</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exif_focal_label</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exif_flash_label</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exif_iso_label</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exif_metering_label</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exif_model_label</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">exif_date_label</span><span class="p">;</span> +<a id="line-89" name="line-89"></a><span class="cp">#endif</span> +<a id="line-90" name="line-90"></a><span class="cp">#ifdef HAVE_EXEMPI</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">xmp_location_label</span><span class="p">;</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">xmp_description_label</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">xmp_keywords_label</span><span class="p">;</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">xmp_creator_label</span><span class="p">;</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">xmp_rights_label</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="cp">#else</span> +<a id="line-97" name="line-97"></a><span class="hll"><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">xmp_box</span><span class="p">;</span><span class="error2"><--- struct member '_EomPropertiesDialogPrivate::xmp_box' is never used.</span> +</span><a id="line-98" name="line-98"></a><span class="hll"><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">xmp_box_label</span><span class="p">;</span><span class="error2"><--- struct member '_EomPropertiesDialogPrivate::xmp_box_label' is never used.</span> +</span><a id="line-99" name="line-99"></a><span class="cp">#endif</span> +<a id="line-100" name="line-100"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">metadata_box</span><span class="p">;</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">metadata_details_expander</span><span class="p">;</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">metadata_details</span><span class="p">;</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">metadata_details_box</span><span class="p">;</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">metadata_details_sw</span><span class="p">;</span> +<a id="line-106" name="line-106"></a><span class="cp">#endif</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">netbook_mode</span><span class="p">;</span> +<a id="line-109" name="line-109"></a><span class="p">};</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomPropertiesDialog</span><span class="p">,</span><span class="w"> </span><span class="n">eom_properties_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</span><span class="p">);</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-114" name="line-114"></a><span class="nf">parent_file_display_name_query_info_cb</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">source_object</span><span class="p">,</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">GAsyncResult</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">,</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-117" name="line-117"></a><span class="p">{</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">parent_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_FILE</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">;</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info_finish</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">,</span><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">g_file_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">));</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">}</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">gtk_button_set_label</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button</span><span class="p">),</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">display_name</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-134" name="line-134"></a> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">display_name</span><span class="p">);</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="p">}</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-140" name="line-140"></a><span class="nf">pd_update_general_tab</span><span class="w"> </span><span class="p">(</span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="p">,</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-142" name="line-142"></a><span class="p">{</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">bytes_str</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dir_str_long</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">width_str</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">height_str</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">parent_file</span><span class="p">;</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="hll"><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mime_str</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'mime_str' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'mime_str' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-148" name="line-148"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">type_str</span><span class="p">;</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">goffset</span><span class="w"> </span><span class="n">bytes</span><span class="p">;</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail_image</span><span class="p">),</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="s">"pixbuf"</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image_get_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name_label</span><span class="p">),</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">);</span> +<a id="line-160" name="line-160"></a> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">width_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"%d %s"</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">ngettext</span><span class="w"> </span><span class="p">(</span><span class="s">"pixel"</span><span class="p">,</span><span class="w"> </span><span class="s">"pixels"</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">));</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">height_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"%d %s"</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">ngettext</span><span class="w"> </span><span class="p">(</span><span class="s">"pixel"</span><span class="p">,</span><span class="w"> </span><span class="s">"pixels"</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">));</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">width_label</span><span class="p">),</span><span class="w"> </span><span class="n">width_str</span><span class="p">);</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">height_label</span><span class="p">),</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">height_str</span><span class="p">);</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_free</span><span class="w"> </span><span class="p">(</span><span class="n">height_str</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">width_str</span><span class="p">);</span> +<a id="line-173" name="line-173"></a> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">type_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Unknown"</span><span class="p">));</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">mime_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">type_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_content_type_get_description</span><span class="w"> </span><span class="p">(</span><span class="n">mime_str</span><span class="p">);</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="p">}</span> +<a id="line-185" name="line-185"></a> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">type_label</span><span class="p">),</span><span class="w"> </span><span class="n">type_str</span><span class="p">);</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_bytes</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">bytes_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_format_size</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-190" name="line-190"></a> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">bytes_label</span><span class="p">),</span><span class="w"> </span><span class="n">bytes_str</span><span class="p">);</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">parent_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="cm">/* file is root directory itself */</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">parent_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">gtk_button_set_label</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-201" name="line-201"></a> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">dir_str_long</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button</span><span class="p">),</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">dir_str_long</span><span class="p">);</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button_uri</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">g_file_query_info_async</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">,</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</span><span class="p">,</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">G_PRIORITY_DEFAULT</span><span class="p">,</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">parent_file_display_name_query_info_cb</span><span class="p">,</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">));</span> +<a id="line-216" name="line-216"></a> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-218" name="line-218"></a> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">type_str</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">bytes_str</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dir_str_long</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="p">}</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="cp">#if HAVE_EXEMPI</span> +<a id="line-225" name="line-225"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-226" name="line-226"></a><span class="nf">eom_xmp_set_label</span><span class="w"> </span><span class="p">(</span><span class="n">XmpPtr</span><span class="w"> </span><span class="n">xmp</span><span class="p">,</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">ns</span><span class="p">,</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">propname</span><span class="p">,</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">w</span><span class="p">)</span> +<a id="line-230" name="line-230"></a><span class="p">{</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="kt">uint32_t</span><span class="w"> </span><span class="n">options</span><span class="p">;</span> +<a id="line-232" name="line-232"></a> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">XmpStringPtr</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmp_string_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">xmp</span><span class="p">,</span><span class="w"> </span><span class="n">ns</span><span class="p">,</span><span class="w"> </span><span class="n">propname</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">options</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<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">XMP_IS_PROP_SIMPLE</span><span class="w"> </span><span class="p">(</span><span class="n">options</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="p">),</span><span class="w"> </span><span class="n">xmp_string_cstr</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">XMP_IS_PROP_ARRAY</span><span class="w"> </span><span class="p">(</span><span class="n">options</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">XmpIteratorPtr</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">xmp_iterator_new</span><span class="w"> </span><span class="p">(</span><span class="n">xmp</span><span class="p">,</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">ns</span><span class="p">,</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">propname</span><span class="p">,</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">XMP_ITER_JUSTLEAFNODES</span><span class="p">);</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-245" name="line-245"></a> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">first</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-248" name="line-248"></a> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_iterator_next</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">options</span><span class="p">)</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">XMP_IS_PROP_QUALIFIER</span><span class="w"> </span><span class="p">(</span><span class="n">options</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">first</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">", "</span><span class="p">);</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">first</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="p">}</span> +<a id="line-257" name="line-257"></a> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">xmp_string_cstr</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="p">}</span> +<a id="line-262" name="line-262"></a> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">xmp_iterator_free</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">}</span> +<a id="line-265" name="line-265"></a> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="p">),</span><span class="w"> </span><span class="n">string</span><span class="o">-></span><span class="n">str</span><span class="p">);</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="p">}</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="cm">/* Property was not found */</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="cm">/* Clear label so it won't show bogus data */</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">}</span> +<a id="line-274" name="line-274"></a> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">xmp_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-276" name="line-276"></a><span class="p">}</span> +<a id="line-277" name="line-277"></a><span class="cp">#endif</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-280" name="line-280"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-281" name="line-281"></a><span class="nf">pd_update_metadata_tab</span><span class="w"> </span><span class="p">(</span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="p">,</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-283" name="line-283"></a><span class="p">{</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">EomPropertiesDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">GtkNotebook</span><span class="w"> </span><span class="o">*</span><span class="n">notebook</span><span class="p">;</span> +<a id="line-286" name="line-286"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">ExifData</span><span class="w"> </span><span class="o">*</span><span class="n">exif_data</span><span class="p">;</span> +<a id="line-288" name="line-288"></a><span class="cp">#endif</span> +<a id="line-289" name="line-289"></a><span class="cp">#if HAVE_EXEMPI</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">XmpPtr</span><span class="w"> </span><span class="n">xmp_data</span><span class="p">;</span> +<a id="line-291" name="line-291"></a><span class="cp">#endif</span> +<a id="line-292" name="line-292"></a> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">));</span> +<a id="line-294" name="line-294"></a> +<a id="line-295" name="line-295"></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">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-296" name="line-296"></a> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">notebook</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">);</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span> +<a id="line-300" name="line-300"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="p">)</span> +<a id="line-302" name="line-302"></a><span class="cp">#endif</span> +<a id="line-303" name="line-303"></a><span class="cp">#if HAVE_EXEMPI</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_XMP</span><span class="p">)</span> +<a id="line-305" name="line-305"></a><span class="cp">#endif</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_notebook_get_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG_PAGE_EXIF</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">gtk_notebook_prev_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_notebook_get_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG_PAGE_DETAILS</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">gtk_notebook_set_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG_PAGE_GENERAL</span><span class="p">);</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="p">}</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_box</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_box</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">}</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_box</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_box</span><span class="p">);</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="p">}</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_box</span><span class="p">))</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_box</span><span class="p">);</span> +<a id="line-324" name="line-324"></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">-></span><span class="n">netbook_mode</span><span class="w"> </span><span class="o">&&</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_box</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_box</span><span class="p">);</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_expander</span><span class="p">);</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="p">}</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">}</span> +<a id="line-330" name="line-330"></a> +<a id="line-331" name="line-331"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">exif_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">ExifData</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">eom_image_get_exif_info</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-333" name="line-333"></a> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_aperture_label</span><span class="p">),</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_FNUMBER</span><span class="p">);</span> +<a id="line-336" name="line-336"></a> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_exposure_label</span><span class="p">),</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_EXPOSURE_TIME</span><span class="p">);</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">eom_exif_util_set_focal_length_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_focal_label</span><span class="p">),</span><span class="w"> </span><span class="n">exif_data</span><span class="p">);</span> +<a id="line-341" name="line-341"></a> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_flash_label</span><span class="p">),</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_FLASH</span><span class="p">);</span> +<a id="line-344" name="line-344"></a> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_iso_label</span><span class="p">),</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_ISO_SPEED_RATINGS</span><span class="p">);</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_metering_label</span><span class="p">),</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_METERING_MODE</span><span class="p">);</span> +<a id="line-350" name="line-350"></a> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_model_label</span><span class="p">),</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_MODEL</span><span class="p">);</span> +<a id="line-353" name="line-353"></a> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">exif_date_label</span><span class="p">),</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_ORIGINAL</span><span class="p">);</span> +<a id="line-356" name="line-356"></a> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">eom_metadata_details_update</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_METADATA_DETAILS</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details</span><span class="p">),</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">exif_data</span><span class="p">);</span> +<a id="line-359" name="line-359"></a> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="cm">/* exif_data_unref can handle NULL-values */</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="p">(</span><span class="n">exif_data</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="cp">#endif</span> +<a id="line-363" name="line-363"></a> +<a id="line-364" name="line-364"></a><span class="cp">#if HAVE_EXEMPI</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">xmp_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">XmpPtr</span><span class="p">)</span><span class="w"> </span><span class="n">eom_image_get_xmp_info</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-366" name="line-366"></a> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">eom_xmp_set_label</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_data</span><span class="p">,</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">NS_IPTC4XMP</span><span class="p">,</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="s">"Location"</span><span class="p">,</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_location_label</span><span class="p">);</span> +<a id="line-372" name="line-372"></a> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">eom_xmp_set_label</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_data</span><span class="p">,</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">NS_DC</span><span class="p">,</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="s">"description"</span><span class="p">,</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_description_label</span><span class="p">);</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">eom_xmp_set_label</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_data</span><span class="p">,</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">NS_DC</span><span class="p">,</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="s">"subject"</span><span class="p">,</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_keywords_label</span><span class="p">);</span> +<a id="line-382" name="line-382"></a> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">eom_xmp_set_label</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_data</span><span class="p">,</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">NS_DC</span><span class="p">,</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="s">"creator"</span><span class="p">,</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_creator_label</span><span class="p">);</span> +<a id="line-387" name="line-387"></a> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">eom_xmp_set_label</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_data</span><span class="p">,</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">NS_DC</span><span class="p">,</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="s">"rights"</span><span class="p">,</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_rights_label</span><span class="p">);</span> +<a id="line-392" name="line-392"></a> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">eom_metadata_details_xmp_update</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_METADATA_DETAILS</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details</span><span class="p">),</span><span class="w"> </span><span class="n">xmp_data</span><span class="p">);</span> +<a id="line-394" name="line-394"></a> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">xmp_free</span><span class="w"> </span><span class="p">(</span><span class="n">xmp_data</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="cm">/* Image has no XMP data */</span> +<a id="line-398" name="line-398"></a> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="cm">/* Clear the labels so they won't display foreign data.*/</span> +<a id="line-400" name="line-400"></a> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_location_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_description_label</span><span class="p">),</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_keywords_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_creator_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_rights_label</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="p">}</span> +<a id="line-408" name="line-408"></a><span class="cp">#endif</span> +<a id="line-409" name="line-409"></a><span class="p">}</span> +<a id="line-410" name="line-410"></a> +<a id="line-411" name="line-411"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-412" name="line-412"></a><span class="nf">pd_resize_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-413" name="line-413"></a><span class="p">{</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-415" name="line-415"></a> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">gtk_window_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">);</span> +<a id="line-419" name="line-419"></a> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">gtk_window_resize</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-423" name="line-423"></a><span class="p">}</span> +<a id="line-424" name="line-424"></a> +<a id="line-425" name="line-425"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-426" name="line-426"></a><span class="nf">pd_exif_details_activated_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkExpander</span><span class="w"> </span><span class="o">*</span><span class="n">expander</span><span class="p">,</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">param_spec</span><span class="p">,</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-429" name="line-429"></a><span class="p">{</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">expanded</span><span class="p">;</span> +<a id="line-431" name="line-431"></a> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">expanded</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_expander_get_expanded</span><span class="w"> </span><span class="p">(</span><span class="n">expander</span><span class="p">);</span> +<a id="line-433" name="line-433"></a> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="cm">/*FIXME: this is depending on the expander animation</span> +<a id="line-435" name="line-435"></a><span class="cm"> * duration. Need to find a safer way for doing that. */</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="o">!</span><span class="n">expanded</span><span class="p">)</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">g_timeout_add</span><span class="w"> </span><span class="p">(</span><span class="mi">150</span><span class="p">,</span><span class="w"> </span><span class="n">pd_resize_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-438" name="line-438"></a><span class="p">}</span> +<a id="line-439" name="line-439"></a><span class="cp">#endif</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-442" name="line-442"></a><span class="nf">pd_folder_button_clicked_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkButton</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-443" name="line-443"></a><span class="p">{</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">EomPropertiesDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">;</span> +<a id="line-447" name="line-447"></a> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button_uri</span><span class="p">)</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-450" name="line-450"></a> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">timestamp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_get_current_event_time</span><span class="w"> </span><span class="p">();</span> +<a id="line-452" name="line-452"></a> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">gtk_show_uri_on_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">priv</span><span class="o">-></span><span class="n">folder_button_uri</span><span class="p">,</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-455" name="line-455"></a><span class="p">}</span> +<a id="line-456" name="line-456"></a> +<a id="line-457" name="line-457"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-458" name="line-458"></a><span class="nf">eom_properties_dialog_page_switch</span><span class="w"> </span><span class="p">(</span><span class="n">GtkNotebook</span><span class="w"> </span><span class="o">*</span><span class="n">notebook</span><span class="p">,</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">page</span><span class="p">,</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">page_index</span><span class="p">,</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="p">)</span> +<a id="line-462" name="line-462"></a><span class="p">{</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">update_page</span><span class="p">)</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current_page</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">page_index</span><span class="p">;</span> +<a id="line-465" name="line-465"></a> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-467" name="line-467"></a><span class="p">}</span> +<a id="line-468" name="line-468"></a> +<a id="line-469" name="line-469"></a><span class="kt">void</span> +<a id="line-470" name="line-470"></a><span class="nf">eom_properties_dialog_set_netbook_mode</span><span class="w"> </span><span class="p">(</span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">,</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">enable</span><span class="p">)</span> +<a id="line-472" name="line-472"></a><span class="p">{</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">EomPropertiesDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-474" name="line-474"></a> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-476" name="line-476"></a> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dlg</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-478" name="line-478"></a> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">netbook_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">enable</span><span class="p">)</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-481" name="line-481"></a> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">netbook_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">enable</span><span class="p">;</span> +<a id="line-483" name="line-483"></a> +<a id="line-484" name="line-484"></a><span class="cp">#ifdef HAVE_METADATA</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">enable</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">);</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">)),</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">);</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_box</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">);</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">);</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="c1">// Only show details box if metadata is being displayed</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_box</span><span class="p">))</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_box</span><span class="p">);</span> +<a id="line-494" name="line-494"></a> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_expander</span><span class="p">);</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">);</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">)),</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">);</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">);</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="p">);</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_expander</span><span class="p">);</span> +<a id="line-503" name="line-503"></a> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_notebook_get_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG_PAGE_DETAILS</span><span class="p">)</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">gtk_notebook_prev_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">));</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_box</span><span class="p">);</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="p">}</span> +<a id="line-508" name="line-508"></a><span class="cp">#endif</span> +<a id="line-509" name="line-509"></a><span class="p">}</span> +<a id="line-510" name="line-510"></a> +<a id="line-511" name="line-511"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-512" name="line-512"></a><span class="nf">eom_properties_dialog_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-516" name="line-516"></a><span class="p">{</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-518" name="line-518"></a> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_THUMBVIEW</span><span class="p">:</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_NETBOOK_MODE</span><span class="p">:</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">eom_properties_dialog_set_netbook_mode</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">,</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="p">}</span> +<a id="line-532" name="line-532"></a><span class="p">}</span> +<a id="line-533" name="line-533"></a> +<a id="line-534" name="line-534"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-535" name="line-535"></a><span class="nf">eom_properties_dialog_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-539" name="line-539"></a><span class="p">{</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-541" name="line-541"></a> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_THUMBVIEW</span><span class="p">:</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_NETBOOK_MODE</span><span class="p">:</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">netbook_mode</span><span class="p">);</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="p">}</span> +<a id="line-555" name="line-555"></a><span class="p">}</span> +<a id="line-556" name="line-556"></a> +<a id="line-557" name="line-557"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-558" name="line-558"></a><span class="nf">eom_properties_dialog_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-559" name="line-559"></a><span class="p">{</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="p">;</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">EomPropertiesDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-562" name="line-562"></a> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-565" name="line-565"></a> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-567" name="line-567"></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">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="p">}</span> +<a id="line-573" name="line-573"></a> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button_uri</span><span class="p">);</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">folder_button_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-576" name="line-576"></a> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_properties_dialog_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-578" name="line-578"></a><span class="p">}</span> +<a id="line-579" name="line-579"></a> +<a id="line-580" name="line-580"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-581" name="line-581"></a><span class="nf">eom_properties_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPropertiesDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-582" name="line-582"></a><span class="p">{</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">g_object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-584" name="line-584"></a> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_properties_dialog_dispose</span><span class="p">;</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_properties_dialog_set_property</span><span class="p">;</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_properties_dialog_get_property</span><span class="p">;</span> +<a id="line-588" name="line-588"></a> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_class</span><span class="p">,</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">PROP_THUMBVIEW</span><span class="p">,</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"thumbview"</span><span class="p">,</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="s">"Thumbview"</span><span class="p">,</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="s">"Thumbview"</span><span class="p">,</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">EOM_TYPE_THUMB_VIEW</span><span class="p">,</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_NETBOOK_MODE</span><span class="p">,</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">"netbook-mode"</span><span class="p">,</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="s">"Netbook Mode"</span><span class="p">,</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="s">"Netbook Mode"</span><span class="p">,</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_STRINGS</span><span class="p">));</span> +<a id="line-607" name="line-607"></a> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">wklass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidgetClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">gtk_widget_class_set_template_from_resource</span><span class="w"> </span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="s">"/org/mate/eom/ui/eom-image-properties-dialog.ui"</span><span class="p">);</span> +<a id="line-612" name="line-612"></a> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">notebook</span><span class="p">);</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">previous_button</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">next_button</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">close_button</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">thumbnail_image</span><span class="p">);</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">general_box</span><span class="p">);</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">name_label</span><span class="p">);</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">width_label</span><span class="p">);</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">height_label</span><span class="p">);</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">type_label</span><span class="p">);</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">bytes_label</span><span class="p">);</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">folder_button</span><span class="p">);</span> +<a id="line-649" name="line-649"></a> +<a id="line-650" name="line-650"></a><span class="cp">#if HAVE_EXIF</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">exif_aperture_label</span><span class="p">);</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">exif_exposure_label</span><span class="p">);</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">exif_focal_label</span><span class="p">);</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">exif_flash_label</span><span class="p">);</span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">exif_iso_label</span><span class="p">);</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">exif_metering_label</span><span class="p">);</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">exif_model_label</span><span class="p">);</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">exif_date_label</span><span class="p">);</span> +<a id="line-675" name="line-675"></a><span class="cp">#endif</span> +<a id="line-676" name="line-676"></a><span class="cp">#if HAVE_EXEMPI</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">xmp_location_label</span><span class="p">);</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">xmp_description_label</span><span class="p">);</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">xmp_keywords_label</span><span class="p">);</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="n">xmp_creator_label</span><span class="p">);</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">xmp_rights_label</span><span class="p">);</span> +<a id="line-692" name="line-692"></a><span class="cp">#else</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">xmp_box</span><span class="p">);</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">xmp_box_label</span><span class="p">);</span> +<a id="line-699" name="line-699"></a><span class="cp">#endif</span> +<a id="line-700" name="line-700"></a><span class="cp">#ifdef HAVE_METADATA</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">metadata_box</span><span class="p">);</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">metadata_details_expander</span><span class="p">);</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_child_private</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">EomPropertiesDialog</span><span class="p">,</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">metadata_details_box</span><span class="p">);</span> +<a id="line-710" name="line-710"></a> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_callback</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">pd_exif_details_activated_cb</span><span class="p">);</span> +<a id="line-713" name="line-713"></a><span class="cp">#endif</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_callback</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="n">eom_properties_dialog_page_switch</span><span class="p">);</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">gtk_widget_class_bind_template_callback</span><span class="p">(</span><span class="n">wklass</span><span class="p">,</span> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">pd_folder_button_clicked_cb</span><span class="p">);</span> +<a id="line-718" name="line-718"></a><span class="p">}</span> +<a id="line-719" name="line-719"></a> +<a id="line-720" name="line-720"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-721" name="line-721"></a><span class="nf">eom_properties_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="p">)</span> +<a id="line-722" name="line-722"></a><span class="p">{</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">EomPropertiesDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-724" name="line-724"></a><span class="cp">#if HAVE_METADATA</span> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">sw</span><span class="p">;</span> +<a id="line-726" name="line-726"></a><span class="cp">#endif</span> +<a id="line-727" name="line-727"></a> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_properties_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">);</span> +<a id="line-729" name="line-729"></a> +<a id="line-730" name="line-730"></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">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-731" name="line-731"></a> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">update_page</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-733" name="line-733"></a> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="n">gtk_widget_init_template</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">));</span> +<a id="line-735" name="line-735"></a> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">,</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="s">"delete-event"</span><span class="p">,</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_hide_on_delete</span><span class="p">),</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="p">);</span> +<a id="line-740" name="line-740"></a> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">g_signal_connect_swapped</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">close_button</span><span class="p">,</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_hide_on_delete</span><span class="p">),</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="p">);</span> +<a id="line-745" name="line-745"></a> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbnail_image</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">);</span> +<a id="line-747" name="line-747"></a> +<a id="line-748" name="line-748"></a><span class="cp">#ifdef HAVE_METADATA</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="n">sw</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scrolled_window_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-750" name="line-750"></a> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_shadow_type</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">sw</span><span class="p">),</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">GTK_SHADOW_IN</span><span class="p">);</span> +<a id="line-753" name="line-753"></a> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_policy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">sw</span><span class="p">),</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">,</span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">);</span> +<a id="line-757" name="line-757"></a> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_metadata_details_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">170</span><span class="p">);</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">sw</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">gtk_widget_set_vexpand</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-762" name="line-762"></a> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">sw</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details</span><span class="p">);</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">sw</span><span class="p">);</span> +<a id="line-765" name="line-765"></a> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_sw</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sw</span><span class="p">;</span> +<a id="line-767" name="line-767"></a> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">netbook_mode</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_expander</span><span class="p">);</span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_box</span><span class="p">),</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">sw</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">metadata_details_expander</span><span class="p">),</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">sw</span><span class="p">);</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="p">}</span> +<a id="line-776" name="line-776"></a> +<a id="line-777" name="line-777"></a><span class="cp">#ifndef HAVE_EXEMPI</span> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_box</span><span class="p">);</span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xmp_box_label</span><span class="p">);</span> +<a id="line-780" name="line-780"></a><span class="cp">#endif</span> +<a id="line-781" name="line-781"></a> +<a id="line-782" name="line-782"></a><span class="cp">#else</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="cm">/* Remove pages from back to front. Otherwise the page index</span> +<a id="line-784" name="line-784"></a><span class="cm"> * needs to be adjusted when deleting the next page. */</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">gtk_notebook_remove_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG_PAGE_DETAILS</span><span class="p">);</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">gtk_notebook_remove_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">EOM_PROPERTIES_DIALOG_PAGE_EXIF</span><span class="p">);</span> +<a id="line-789" name="line-789"></a><span class="cp">#endif</span> +<a id="line-790" name="line-790"></a> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="cm">/* Add tab scrolling support for GTK3 */</span> +<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">gtk_widget_add_events</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_SCROLL_MASK</span><span class="p">);</span> +<a id="line-793" name="line-793"></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">-></span><span class="n">notebook</span><span class="p">,</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="s">"scroll-event"</span><span class="p">,</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_notebook_scroll_event_cb</span><span class="p">),</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-797" name="line-797"></a><span class="p">}</span> +<a id="line-798" name="line-798"></a> +<a id="line-799" name="line-799"></a><span class="cm">/**</span> +<a id="line-800" name="line-800"></a><span class="cm"> * eom_properties_dialog_new:</span> +<a id="line-801" name="line-801"></a><span class="cm"> * @parent: the dialog's parent window</span> +<a id="line-802" name="line-802"></a><span class="cm"> * @thumbview:</span> +<a id="line-803" name="line-803"></a><span class="cm"> * @next_image_action:</span> +<a id="line-804" name="line-804"></a><span class="cm"> * @previous_image_action:</span> +<a id="line-805" name="line-805"></a><span class="cm"> *</span> +<a id="line-806" name="line-806"></a><span class="cm"> *</span> +<a id="line-807" name="line-807"></a><span class="cm"> *</span> +<a id="line-808" name="line-808"></a><span class="cm"> * Returns: (transfer full) (type EomPropertiesDialog): a new #EomPropertiesDialog</span> +<a id="line-809" name="line-809"></a><span class="cm"> **/</span> +<a id="line-810" name="line-810"></a> +<a id="line-811" name="line-811"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-812" name="line-812"></a><span class="nf">eom_properties_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">,</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">next_image_action</span><span class="p">,</span> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">previous_image_action</span><span class="p">)</span> +<a id="line-816" name="line-816"></a><span class="p">{</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="p">;</span> +<a id="line-818" name="line-818"></a> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-820" name="line-820"></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">EOM_IS_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-822" name="line-822"></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">GTK_IS_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">next_image_action</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-823" name="line-823"></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">GTK_IS_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">previous_image_action</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-824" name="line-824"></a> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">prop_dlg</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">EOM_TYPE_PROPERTIES_DIALOG</span><span class="p">,</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="s">"thumbview"</span><span class="p">,</span><span class="w"> </span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-828" name="line-828"></a> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">gtk_window_set_transient_for</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">),</span><span class="w"> </span><span class="n">parent</span><span class="p">);</span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="p">}</span> +<a id="line-832" name="line-832"></a> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">gtk_activatable_set_related_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTIVATABLE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">next_button</span><span class="p">),</span><span class="w"> </span><span class="n">next_image_action</span><span class="p">);</span> +<a id="line-834" name="line-834"></a> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">gtk_activatable_set_related_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTIVATABLE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">previous_button</span><span class="p">),</span><span class="w"> </span><span class="n">previous_image_action</span><span class="p">);</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-837" name="line-837"></a> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">);</span> +<a id="line-839" name="line-839"></a><span class="p">}</span> +<a id="line-840" name="line-840"></a> +<a id="line-841" name="line-841"></a><span class="kt">void</span> +<a id="line-842" name="line-842"></a><span class="nf">eom_properties_dialog_update</span><span class="w"> </span><span class="p">(</span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="p">,</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-844" name="line-844"></a><span class="p">{</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">));</span> +<a id="line-846" name="line-846"></a> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">update_page</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-848" name="line-848"></a> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">pd_update_general_tab</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-850" name="line-850"></a> +<a id="line-851" name="line-851"></a><span class="cp">#ifdef HAVE_METADATA</span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="n">pd_update_metadata_tab</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-853" name="line-853"></a><span class="cp">#endif</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">gtk_notebook_set_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current_page</span><span class="p">);</span> +<a id="line-856" name="line-856"></a> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">update_page</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-858" name="line-858"></a><span class="p">}</span> +<a id="line-859" name="line-859"></a> +<a id="line-860" name="line-860"></a><span class="kt">void</span> +<a id="line-861" name="line-861"></a><span class="nf">eom_properties_dialog_set_page</span><span class="w"> </span><span class="p">(</span><span class="n">EomPropertiesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">prop_dlg</span><span class="p">,</span> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="n">EomPropertiesDialogPage</span><span class="w"> </span><span class="n">page</span><span class="p">)</span> +<a id="line-863" name="line-863"></a><span class="p">{</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="p">));</span> +<a id="line-865" name="line-865"></a> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current_page</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">page</span><span class="p">;</span> +<a id="line-867" name="line-867"></a> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="n">gtk_notebook_set_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">prop_dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="n">page</span><span class="p">);</span> +<a id="line-870" name="line-870"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/25.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/25.html new file mode 100644 index 0000000..c5ef107 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/25.html @@ -0,0 +1,1829 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-resources.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-resources.c</p> +<a href="25.html#line-9"> unusedStructMember 9</a><a href="25.html#line-9"> unusedStructMember 9</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span> +<span class="normal">789</span> +<span class="normal">790</span> +<span class="normal">791</span> +<span class="normal">792</span> +<span class="normal">793</span> +<span class="normal">794</span> +<span class="normal">795</span> +<span class="normal">796</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span> +<a id="line-2" name="line-2"></a> +<a id="line-3" name="line-3"></a><span class="cp">#if defined (__ELF__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))</span> +<a id="line-4" name="line-4"></a><span class="cp"># define SECTION __attribute__ ((section (".gresource.eom"), aligned (8)))</span> +<a id="line-5" name="line-5"></a><span class="cp">#else</span> +<a id="line-6" name="line-6"></a><span class="cp"># define SECTION</span> +<a id="line-7" name="line-7"></a><span class="cp">#endif</span> +<a id="line-8" name="line-8"></a> +<a id="line-9" name="line-9"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">SECTION</span><span class="w"> </span><span class="k">union</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="n">data</span><span class="p">[</span><span class="mi">9456</span><span class="p">];</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">alignment</span><span class="p">;</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">ptr</span><span class="p">;}</span><span class="w"> </span><span class="n">_eom_resource_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">{</span><span class="error2"><--- union member 'Anonymous0::alignment' is never used.</span><span class="error2"><--- union member 'Anonymous0::ptr' is never used.</span> +</span><a id="line-10" name="line-10"></a><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-11" name="line-11"></a><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-12" name="line-12"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-13" name="line-13"></a><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-14" name="line-14"></a><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-15" name="line-15"></a><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-16" name="line-16"></a><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-17" name="line-17"></a><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span> +<a id="line-601" name="line-601"></a><span class="p">}</span><span class="w"> </span><span class="p">};</span> +<a id="line-602" name="line-602"></a> +<a id="line-603" name="line-603"></a><span class="k">static</span><span class="w"> </span><span class="n">GStaticResource</span><span class="w"> </span><span class="n">static_resource</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">_eom_resource_data</span><span class="p">.</span><span class="n">data</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">_eom_resource_data</span><span class="p">.</span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="cm">/* nul terminator */</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span> +<a id="line-604" name="line-604"></a> +<a id="line-605" name="line-605"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-606" name="line-606"></a><span class="n">GResource</span><span class="w"> </span><span class="o">*</span><span class="n">_eom_get_resource</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-607" name="line-607"></a><span class="n">GResource</span><span class="w"> </span><span class="o">*</span><span class="nf">_eom_get_resource</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-608" name="line-608"></a><span class="p">{</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_static_resource_get_resource</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">static_resource</span><span class="p">);</span> +<a id="line-610" name="line-610"></a><span class="p">}</span> +<a id="line-611" name="line-611"></a><span class="cm">/* GLIB - Library of useful routines for C programming</span> +<a id="line-612" name="line-612"></a><span class="cm"> * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald</span> +<a id="line-613" name="line-613"></a><span class="cm"> *</span> +<a id="line-614" name="line-614"></a><span class="cm"> * SPDX-License-Identifier: LGPL-2.1-or-later</span> +<a id="line-615" name="line-615"></a><span class="cm"> *</span> +<a id="line-616" name="line-616"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span> +<a id="line-617" name="line-617"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span> +<a id="line-618" name="line-618"></a><span class="cm"> * License as published by the Free Software Foundation; either</span> +<a id="line-619" name="line-619"></a><span class="cm"> * version 2.1 of the License, or (at your option) any later version.</span> +<a id="line-620" name="line-620"></a><span class="cm"> *</span> +<a id="line-621" name="line-621"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span> +<a id="line-622" name="line-622"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-623" name="line-623"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> +<a id="line-624" name="line-624"></a><span class="cm"> * Lesser General Public License for more details.</span> +<a id="line-625" name="line-625"></a><span class="cm"> *</span> +<a id="line-626" name="line-626"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span> +<a id="line-627" name="line-627"></a><span class="cm"> * License along with this library; if not, see <http://www.gnu.org/licenses/>.</span> +<a id="line-628" name="line-628"></a><span class="cm"> */</span> +<a id="line-629" name="line-629"></a> +<a id="line-630" name="line-630"></a><span class="cm">/*</span> +<a id="line-631" name="line-631"></a><span class="cm"> * Modified by the GLib Team and others 1997-2000. See the AUTHORS</span> +<a id="line-632" name="line-632"></a><span class="cm"> * file for a list of people on the GLib Team. See the ChangeLog</span> +<a id="line-633" name="line-633"></a><span class="cm"> * files for a list of changes. These files are distributed with</span> +<a id="line-634" name="line-634"></a><span class="cm"> * GLib at ftp://ftp.gtk.org/pub/gtk/.</span> +<a id="line-635" name="line-635"></a><span class="cm"> */</span> +<a id="line-636" name="line-636"></a> +<a id="line-637" name="line-637"></a><span class="cp">#ifndef __G_CONSTRUCTOR_H__</span> +<a id="line-638" name="line-638"></a><span class="cp">#define __G_CONSTRUCTOR_H__</span> +<a id="line-639" name="line-639"></a> +<a id="line-640" name="line-640"></a><span class="cm">/*</span> +<a id="line-641" name="line-641"></a><span class="cm"> If G_HAS_CONSTRUCTORS is true then the compiler support *both* constructors and</span> +<a id="line-642" name="line-642"></a><span class="cm"> destructors, in a usable way, including e.g. on library unload. If not you're on</span> +<a id="line-643" name="line-643"></a><span class="cm"> your own.</span> +<a id="line-644" name="line-644"></a> +<a id="line-645" name="line-645"></a><span class="cm"> Some compilers need #pragma to handle this, which does not work with macros,</span> +<a id="line-646" name="line-646"></a><span class="cm"> so the way you need to use this is (for constructors):</span> +<a id="line-647" name="line-647"></a> +<a id="line-648" name="line-648"></a><span class="cm"> #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA</span> +<a id="line-649" name="line-649"></a><span class="cm"> #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(my_constructor)</span> +<a id="line-650" name="line-650"></a><span class="cm"> #endif</span> +<a id="line-651" name="line-651"></a><span class="cm"> G_DEFINE_CONSTRUCTOR(my_constructor)</span> +<a id="line-652" name="line-652"></a><span class="cm"> static void my_constructor(void) {</span> +<a id="line-653" name="line-653"></a><span class="cm"> ...</span> +<a id="line-654" name="line-654"></a><span class="cm"> }</span> +<a id="line-655" name="line-655"></a> +<a id="line-656" name="line-656"></a><span class="cm">*/</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="cp">#ifndef __GTK_DOC_IGNORE__</span> +<a id="line-659" name="line-659"></a> +<a id="line-660" name="line-660"></a><span class="cp">#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)</span> +<a id="line-661" name="line-661"></a> +<a id="line-662" name="line-662"></a><span class="cp">#define G_HAS_CONSTRUCTORS 1</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void);</span> +<a id="line-665" name="line-665"></a><span class="cp">#define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void);</span> +<a id="line-666" name="line-666"></a> +<a id="line-667" name="line-667"></a><span class="cp">#elif defined (_MSC_VER) && (_MSC_VER >= 1500)</span> +<a id="line-668" name="line-668"></a><span class="cm">/* Visual studio 2008 and later has _Pragma */</span> +<a id="line-669" name="line-669"></a> +<a id="line-670" name="line-670"></a><span class="cm">/*</span> +<a id="line-671" name="line-671"></a><span class="cm"> * Only try to include gslist.h if not already included via glib.h,</span> +<a id="line-672" name="line-672"></a><span class="cm"> * so that items using gconstructor.h outside of GLib (such as</span> +<a id="line-673" name="line-673"></a><span class="cm"> * GResources) continue to build properly.</span> +<a id="line-674" name="line-674"></a><span class="cm"> */</span> +<a id="line-675" name="line-675"></a><span class="cp">#ifndef __G_LIB_H__</span> +<a id="line-676" name="line-676"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"gslist.h"</span> +<a id="line-677" name="line-677"></a><span class="cp">#endif</span> +<a id="line-678" name="line-678"></a> +<a id="line-679" name="line-679"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span> +<a id="line-680" name="line-680"></a> +<a id="line-681" name="line-681"></a><span class="cp">#define G_HAS_CONSTRUCTORS 1</span> +<a id="line-682" name="line-682"></a> +<a id="line-683" name="line-683"></a><span class="cm">/* We do some weird things to avoid the constructors being optimized</span> +<a id="line-684" name="line-684"></a><span class="cm"> * away on VS2015 if WholeProgramOptimization is enabled. First we</span> +<a id="line-685" name="line-685"></a><span class="cm"> * make a reference to the array from the wrapper to make sure its</span> +<a id="line-686" name="line-686"></a><span class="cm"> * references. Then we use a pragma to make sure the wrapper function</span> +<a id="line-687" name="line-687"></a><span class="cm"> * symbol is always included at the link stage. Also, the symbols</span> +<a id="line-688" name="line-688"></a><span class="cm"> * need to be extern (but not dllexport), even though they are not</span> +<a id="line-689" name="line-689"></a><span class="cm"> * really used from another object file.</span> +<a id="line-690" name="line-690"></a><span class="cm"> */</span> +<a id="line-691" name="line-691"></a> +<a id="line-692" name="line-692"></a><span class="cm">/* We need to account for differences between the mangling of symbols</span> +<a id="line-693" name="line-693"></a><span class="cm"> * for x86 and x64/ARM/ARM64 programs, as symbols on x86 are prefixed</span> +<a id="line-694" name="line-694"></a><span class="cm"> * with an underscore but symbols on x64/ARM/ARM64 are not.</span> +<a id="line-695" name="line-695"></a><span class="cm"> */</span> +<a id="line-696" name="line-696"></a><span class="cp">#ifdef _M_IX86</span> +<a id="line-697" name="line-697"></a><span class="cp">#define G_MSVC_SYMBOL_PREFIX "_"</span> +<a id="line-698" name="line-698"></a><span class="cp">#else</span> +<a id="line-699" name="line-699"></a><span class="cp">#define G_MSVC_SYMBOL_PREFIX ""</span> +<a id="line-700" name="line-700"></a><span class="cp">#endif</span> +<a id="line-701" name="line-701"></a> +<a id="line-702" name="line-702"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR(_func) G_MSVC_CTOR (_func, G_MSVC_SYMBOL_PREFIX)</span> +<a id="line-703" name="line-703"></a><span class="cp">#define G_DEFINE_DESTRUCTOR(_func) G_MSVC_DTOR (_func, G_MSVC_SYMBOL_PREFIX)</span> +<a id="line-704" name="line-704"></a> +<a id="line-705" name="line-705"></a><span class="cp">#define G_MSVC_CTOR(_func,_sym_prefix) \</span> +<a id="line-706" name="line-706"></a><span class="cp"> static void _func(void); \</span> +<a id="line-707" name="line-707"></a><span class="cp"> extern int (* _array ## _func)(void); \</span> +<a id="line-708" name="line-708"></a><span class="cp"> int _func ## _wrapper(void) { _func(); g_slist_find (NULL, _array ## _func); return 0; } \</span> +<a id="line-709" name="line-709"></a><span class="cp"> __pragma(comment(linker,"/include:" _sym_prefix # _func "_wrapper")) \</span> +<a id="line-710" name="line-710"></a><span class="cp"> __pragma(section(".CRT$XCU",read)) \</span> +<a id="line-711" name="line-711"></a><span class="cp"> __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _wrapper;</span> +<a id="line-712" name="line-712"></a> +<a id="line-713" name="line-713"></a><span class="cp">#define G_MSVC_DTOR(_func,_sym_prefix) \</span> +<a id="line-714" name="line-714"></a><span class="cp"> static void _func(void); \</span> +<a id="line-715" name="line-715"></a><span class="cp"> extern int (* _array ## _func)(void); \</span> +<a id="line-716" name="line-716"></a><span class="cp"> int _func ## _constructor(void) { atexit (_func); g_slist_find (NULL, _array ## _func); return 0; } \</span> +<a id="line-717" name="line-717"></a><span class="cp"> __pragma(comment(linker,"/include:" _sym_prefix # _func "_constructor")) \</span> +<a id="line-718" name="line-718"></a><span class="cp"> __pragma(section(".CRT$XCU",read)) \</span> +<a id="line-719" name="line-719"></a><span class="cp"> __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _constructor;</span> +<a id="line-720" name="line-720"></a> +<a id="line-721" name="line-721"></a><span class="cp">#elif defined (_MSC_VER)</span> +<a id="line-722" name="line-722"></a> +<a id="line-723" name="line-723"></a><span class="cp">#define G_HAS_CONSTRUCTORS 1</span> +<a id="line-724" name="line-724"></a> +<a id="line-725" name="line-725"></a><span class="cm">/* Pre Visual studio 2008 must use #pragma section */</span> +<a id="line-726" name="line-726"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1</span> +<a id="line-727" name="line-727"></a><span class="cp">#define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1</span> +<a id="line-728" name="line-728"></a> +<a id="line-729" name="line-729"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \</span> +<a id="line-730" name="line-730"></a><span class="cp"> section(".CRT$XCU",read)</span> +<a id="line-731" name="line-731"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR(_func) \</span> +<a id="line-732" name="line-732"></a><span class="cp"> static void _func(void); \</span> +<a id="line-733" name="line-733"></a><span class="cp"> static int _func ## _wrapper(void) { _func(); return 0; } \</span> +<a id="line-734" name="line-734"></a><span class="cp"> __declspec(allocate(".CRT$XCU")) static int (*p)(void) = _func ## _wrapper;</span> +<a id="line-735" name="line-735"></a> +<a id="line-736" name="line-736"></a><span class="cp">#define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \</span> +<a id="line-737" name="line-737"></a><span class="cp"> section(".CRT$XCU",read)</span> +<a id="line-738" name="line-738"></a><span class="cp">#define G_DEFINE_DESTRUCTOR(_func) \</span> +<a id="line-739" name="line-739"></a><span class="cp"> static void _func(void); \</span> +<a id="line-740" name="line-740"></a><span class="cp"> static int _func ## _constructor(void) { atexit (_func); return 0; } \</span> +<a id="line-741" name="line-741"></a><span class="cp"> __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _constructor;</span> +<a id="line-742" name="line-742"></a> +<a id="line-743" name="line-743"></a><span class="cp">#elif defined(__SUNPRO_C)</span> +<a id="line-744" name="line-744"></a> +<a id="line-745" name="line-745"></a><span class="cm">/* This is not tested, but i believe it should work, based on:</span> +<a id="line-746" name="line-746"></a><span class="cm"> * http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c</span> +<a id="line-747" name="line-747"></a><span class="cm"> */</span> +<a id="line-748" name="line-748"></a> +<a id="line-749" name="line-749"></a><span class="cp">#define G_HAS_CONSTRUCTORS 1</span> +<a id="line-750" name="line-750"></a> +<a id="line-751" name="line-751"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1</span> +<a id="line-752" name="line-752"></a><span class="cp">#define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1</span> +<a id="line-753" name="line-753"></a> +<a id="line-754" name="line-754"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \</span> +<a id="line-755" name="line-755"></a><span class="cp"> init(_func)</span> +<a id="line-756" name="line-756"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR(_func) \</span> +<a id="line-757" name="line-757"></a><span class="cp"> static void _func(void);</span> +<a id="line-758" name="line-758"></a> +<a id="line-759" name="line-759"></a><span class="cp">#define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \</span> +<a id="line-760" name="line-760"></a><span class="cp"> fini(_func)</span> +<a id="line-761" name="line-761"></a><span class="cp">#define G_DEFINE_DESTRUCTOR(_func) \</span> +<a id="line-762" name="line-762"></a><span class="cp"> static void _func(void);</span> +<a id="line-763" name="line-763"></a> +<a id="line-764" name="line-764"></a><span class="cp">#else</span> +<a id="line-765" name="line-765"></a> +<a id="line-766" name="line-766"></a><span class="cm">/* constructors not supported for this compiler */</span> +<a id="line-767" name="line-767"></a> +<a id="line-768" name="line-768"></a><span class="cp">#endif</span> +<a id="line-769" name="line-769"></a> +<a id="line-770" name="line-770"></a><span class="cp">#endif </span><span class="cm">/* __GTK_DOC_IGNORE__ */</span> +<a id="line-771" name="line-771"></a><span class="cp">#endif </span><span class="cm">/* __G_CONSTRUCTOR_H__ */</span> +<a id="line-772" name="line-772"></a> +<a id="line-773" name="line-773"></a><span class="cp">#ifdef G_HAS_CONSTRUCTORS</span> +<a id="line-774" name="line-774"></a> +<a id="line-775" name="line-775"></a><span class="cp">#ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA</span> +<a id="line-776" name="line-776"></a><span class="cp">#pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_eomresource_constructor)</span> +<a id="line-777" name="line-777"></a><span class="cp">#endif</span> +<a id="line-778" name="line-778"></a><span class="n">G_DEFINE_CONSTRUCTOR</span><span class="p">(</span><span class="n">_eomresource_constructor</span><span class="p">)</span> +<a id="line-779" name="line-779"></a><span class="cp">#ifdef G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA</span> +<a id="line-780" name="line-780"></a><span class="cp">#pragma G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_eomresource_destructor)</span> +<a id="line-781" name="line-781"></a><span class="cp">#endif</span> +<a id="line-782" name="line-782"></a><span class="n">G_DEFINE_DESTRUCTOR</span><span class="p">(</span><span class="n">_eomresource_destructor</span><span class="p">)</span> +<a id="line-783" name="line-783"></a> +<a id="line-784" name="line-784"></a><span class="cp">#else</span> +<a id="line-785" name="line-785"></a><span class="cp">#warning "Constructor not supported on this compiler, linking in resources will not work"</span> +<a id="line-786" name="line-786"></a><span class="cp">#endif</span> +<a id="line-787" name="line-787"></a> +<a id="line-788" name="line-788"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="n">_eomresource_constructor</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-789" name="line-789"></a><span class="p">{</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">g_static_resource_init</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">static_resource</span><span class="p">);</span> +<a id="line-791" name="line-791"></a><span class="p">}</span> +<a id="line-792" name="line-792"></a> +<a id="line-793" name="line-793"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="n">_eomresource_destructor</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-794" name="line-794"></a><span class="p">{</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">g_static_resource_fini</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">static_resource</span><span class="p">);</span> +<a id="line-796" name="line-796"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/26.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/26.html new file mode 100644 index 0000000..5f6c8d0 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/26.html @@ -0,0 +1,5015 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-scroll-view.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-scroll-view.c</p> +<a href="26.html#line-164"> unknownMacro 164</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span> +<span class="normal">1125</span> +<span class="normal">1126</span> +<span class="normal">1127</span> +<span class="normal">1128</span> +<span class="normal">1129</span> +<span class="normal">1130</span> +<span class="normal">1131</span> +<span class="normal">1132</span> +<span class="normal">1133</span> +<span class="normal">1134</span> +<span class="normal">1135</span> +<span class="normal">1136</span> +<span class="normal">1137</span> +<span class="normal">1138</span> +<span class="normal">1139</span> +<span class="normal">1140</span> +<span class="normal">1141</span> +<span class="normal">1142</span> +<span class="normal">1143</span> +<span class="normal">1144</span> +<span class="normal">1145</span> +<span class="normal">1146</span> +<span class="normal">1147</span> +<span class="normal">1148</span> +<span class="normal">1149</span> +<span class="normal">1150</span> +<span class="normal">1151</span> +<span class="normal">1152</span> +<span class="normal">1153</span> +<span class="normal">1154</span> +<span class="normal">1155</span> +<span class="normal">1156</span> +<span class="normal">1157</span> +<span class="normal">1158</span> +<span class="normal">1159</span> +<span class="normal">1160</span> +<span class="normal">1161</span> +<span class="normal">1162</span> +<span class="normal">1163</span> +<span class="normal">1164</span> +<span class="normal">1165</span> +<span class="normal">1166</span> +<span class="normal">1167</span> +<span class="normal">1168</span> +<span class="normal">1169</span> +<span class="normal">1170</span> +<span class="normal">1171</span> +<span class="normal">1172</span> +<span class="normal">1173</span> +<span class="normal">1174</span> +<span class="normal">1175</span> +<span class="normal">1176</span> +<span class="normal">1177</span> +<span class="normal">1178</span> +<span class="normal">1179</span> +<span class="normal">1180</span> +<span class="normal">1181</span> +<span class="normal">1182</span> +<span class="normal">1183</span> +<span class="normal">1184</span> +<span class="normal">1185</span> +<span class="normal">1186</span> +<span class="normal">1187</span> +<span class="normal">1188</span> +<span class="normal">1189</span> +<span class="normal">1190</span> +<span class="normal">1191</span> +<span class="normal">1192</span> +<span class="normal">1193</span> +<span class="normal">1194</span> +<span class="normal">1195</span> +<span class="normal">1196</span> +<span class="normal">1197</span> +<span class="normal">1198</span> +<span class="normal">1199</span> +<span class="normal">1200</span> +<span class="normal">1201</span> +<span class="normal">1202</span> +<span class="normal">1203</span> +<span class="normal">1204</span> +<span class="normal">1205</span> +<span class="normal">1206</span> +<span class="normal">1207</span> +<span class="normal">1208</span> +<span class="normal">1209</span> +<span class="normal">1210</span> +<span class="normal">1211</span> +<span class="normal">1212</span> +<span class="normal">1213</span> +<span class="normal">1214</span> +<span class="normal">1215</span> +<span class="normal">1216</span> +<span class="normal">1217</span> +<span class="normal">1218</span> +<span class="normal">1219</span> +<span class="normal">1220</span> +<span class="normal">1221</span> +<span class="normal">1222</span> +<span class="normal">1223</span> +<span class="normal">1224</span> +<span class="normal">1225</span> +<span class="normal">1226</span> +<span class="normal">1227</span> +<span class="normal">1228</span> +<span class="normal">1229</span> +<span class="normal">1230</span> +<span class="normal">1231</span> +<span class="normal">1232</span> +<span class="normal">1233</span> +<span class="normal">1234</span> +<span class="normal">1235</span> +<span class="normal">1236</span> +<span class="normal">1237</span> +<span class="normal">1238</span> +<span class="normal">1239</span> +<span class="normal">1240</span> +<span class="normal">1241</span> +<span class="normal">1242</span> +<span class="normal">1243</span> +<span class="normal">1244</span> +<span class="normal">1245</span> +<span class="normal">1246</span> +<span class="normal">1247</span> +<span class="normal">1248</span> +<span class="normal">1249</span> +<span class="normal">1250</span> +<span class="normal">1251</span> +<span class="normal">1252</span> +<span class="normal">1253</span> +<span class="normal">1254</span> +<span class="normal">1255</span> +<span class="normal">1256</span> +<span class="normal">1257</span> +<span class="normal">1258</span> +<span class="normal">1259</span> +<span class="normal">1260</span> +<span class="normal">1261</span> +<span class="normal">1262</span> +<span class="normal">1263</span> +<span class="normal">1264</span> +<span class="normal">1265</span> +<span class="normal">1266</span> +<span class="normal">1267</span> +<span class="normal">1268</span> +<span class="normal">1269</span> +<span class="normal">1270</span> +<span class="normal">1271</span> +<span class="normal">1272</span> +<span class="normal">1273</span> +<span class="normal">1274</span> +<span class="normal">1275</span> +<span class="normal">1276</span> +<span class="normal">1277</span> +<span class="normal">1278</span> +<span class="normal">1279</span> +<span class="normal">1280</span> +<span class="normal">1281</span> +<span class="normal">1282</span> +<span class="normal">1283</span> +<span class="normal">1284</span> +<span class="normal">1285</span> +<span class="normal">1286</span> +<span class="normal">1287</span> +<span class="normal">1288</span> +<span class="normal">1289</span> +<span class="normal">1290</span> +<span class="normal">1291</span> +<span class="normal">1292</span> +<span class="normal">1293</span> +<span class="normal">1294</span> +<span class="normal">1295</span> +<span class="normal">1296</span> +<span class="normal">1297</span> +<span class="normal">1298</span> +<span class="normal">1299</span> +<span class="normal">1300</span> +<span class="normal">1301</span> +<span class="normal">1302</span> +<span class="normal">1303</span> +<span class="normal">1304</span> +<span class="normal">1305</span> +<span class="normal">1306</span> +<span class="normal">1307</span> +<span class="normal">1308</span> +<span class="normal">1309</span> +<span class="normal">1310</span> +<span class="normal">1311</span> +<span class="normal">1312</span> +<span class="normal">1313</span> +<span class="normal">1314</span> +<span class="normal">1315</span> +<span class="normal">1316</span> +<span class="normal">1317</span> +<span class="normal">1318</span> +<span class="normal">1319</span> +<span class="normal">1320</span> +<span class="normal">1321</span> +<span class="normal">1322</span> +<span class="normal">1323</span> +<span class="normal">1324</span> +<span class="normal">1325</span> +<span class="normal">1326</span> +<span class="normal">1327</span> +<span class="normal">1328</span> +<span class="normal">1329</span> +<span class="normal">1330</span> +<span class="normal">1331</span> +<span class="normal">1332</span> +<span class="normal">1333</span> +<span class="normal">1334</span> +<span class="normal">1335</span> +<span class="normal">1336</span> +<span class="normal">1337</span> +<span class="normal">1338</span> +<span class="normal">1339</span> +<span class="normal">1340</span> +<span class="normal">1341</span> +<span class="normal">1342</span> +<span class="normal">1343</span> +<span class="normal">1344</span> +<span class="normal">1345</span> +<span class="normal">1346</span> +<span class="normal">1347</span> +<span class="normal">1348</span> +<span class="normal">1349</span> +<span class="normal">1350</span> +<span class="normal">1351</span> +<span class="normal">1352</span> +<span class="normal">1353</span> +<span class="normal">1354</span> +<span class="normal">1355</span> +<span class="normal">1356</span> +<span class="normal">1357</span> +<span class="normal">1358</span> +<span class="normal">1359</span> +<span class="normal">1360</span> +<span class="normal">1361</span> +<span class="normal">1362</span> +<span class="normal">1363</span> +<span class="normal">1364</span> +<span class="normal">1365</span> +<span class="normal">1366</span> +<span class="normal">1367</span> +<span class="normal">1368</span> +<span class="normal">1369</span> +<span class="normal">1370</span> +<span class="normal">1371</span> +<span class="normal">1372</span> +<span class="normal">1373</span> +<span class="normal">1374</span> +<span class="normal">1375</span> +<span class="normal">1376</span> +<span class="normal">1377</span> +<span class="normal">1378</span> +<span class="normal">1379</span> +<span class="normal">1380</span> +<span class="normal">1381</span> +<span class="normal">1382</span> +<span class="normal">1383</span> +<span class="normal">1384</span> +<span class="normal">1385</span> +<span class="normal">1386</span> +<span class="normal">1387</span> +<span class="normal">1388</span> +<span class="normal">1389</span> +<span class="normal">1390</span> +<span class="normal">1391</span> +<span class="normal">1392</span> +<span class="normal">1393</span> +<span class="normal">1394</span> +<span class="normal">1395</span> +<span class="normal">1396</span> +<span class="normal">1397</span> +<span class="normal">1398</span> +<span class="normal">1399</span> +<span class="normal">1400</span> +<span class="normal">1401</span> +<span class="normal">1402</span> +<span class="normal">1403</span> +<span class="normal">1404</span> +<span class="normal">1405</span> +<span class="normal">1406</span> +<span class="normal">1407</span> +<span class="normal">1408</span> +<span class="normal">1409</span> +<span class="normal">1410</span> +<span class="normal">1411</span> +<span class="normal">1412</span> +<span class="normal">1413</span> +<span class="normal">1414</span> +<span class="normal">1415</span> +<span class="normal">1416</span> +<span class="normal">1417</span> +<span class="normal">1418</span> +<span class="normal">1419</span> +<span class="normal">1420</span> +<span class="normal">1421</span> +<span class="normal">1422</span> +<span class="normal">1423</span> +<span class="normal">1424</span> +<span class="normal">1425</span> +<span class="normal">1426</span> +<span class="normal">1427</span> +<span class="normal">1428</span> +<span class="normal">1429</span> +<span class="normal">1430</span> +<span class="normal">1431</span> +<span class="normal">1432</span> +<span class="normal">1433</span> +<span class="normal">1434</span> +<span class="normal">1435</span> +<span class="normal">1436</span> +<span class="normal">1437</span> +<span class="normal">1438</span> +<span class="normal">1439</span> +<span class="normal">1440</span> +<span class="normal">1441</span> +<span class="normal">1442</span> +<span class="normal">1443</span> +<span class="normal">1444</span> +<span class="normal">1445</span> +<span class="normal">1446</span> +<span class="normal">1447</span> +<span class="normal">1448</span> +<span class="normal">1449</span> +<span class="normal">1450</span> +<span class="normal">1451</span> +<span class="normal">1452</span> +<span class="normal">1453</span> +<span class="normal">1454</span> +<span class="normal">1455</span> +<span class="normal">1456</span> +<span class="normal">1457</span> +<span class="normal">1458</span> +<span class="normal">1459</span> +<span class="normal">1460</span> +<span class="normal">1461</span> +<span class="normal">1462</span> +<span class="normal">1463</span> +<span class="normal">1464</span> +<span class="normal">1465</span> +<span class="normal">1466</span> +<span class="normal">1467</span> +<span class="normal">1468</span> +<span class="normal">1469</span> +<span class="normal">1470</span> +<span class="normal">1471</span> +<span class="normal">1472</span> +<span class="normal">1473</span> +<span class="normal">1474</span> +<span class="normal">1475</span> +<span class="normal">1476</span> +<span class="normal">1477</span> +<span class="normal">1478</span> +<span class="normal">1479</span> +<span class="normal">1480</span> +<span class="normal">1481</span> +<span class="normal">1482</span> +<span class="normal">1483</span> +<span class="normal">1484</span> +<span class="normal">1485</span> +<span class="normal">1486</span> +<span class="normal">1487</span> +<span class="normal">1488</span> +<span class="normal">1489</span> +<span class="normal">1490</span> +<span class="normal">1491</span> +<span class="normal">1492</span> +<span class="normal">1493</span> +<span class="normal">1494</span> +<span class="normal">1495</span> +<span class="normal">1496</span> +<span class="normal">1497</span> +<span class="normal">1498</span> +<span class="normal">1499</span> +<span class="normal">1500</span> +<span class="normal">1501</span> +<span class="normal">1502</span> +<span class="normal">1503</span> +<span class="normal">1504</span> +<span class="normal">1505</span> +<span class="normal">1506</span> +<span class="normal">1507</span> +<span class="normal">1508</span> +<span class="normal">1509</span> +<span class="normal">1510</span> +<span class="normal">1511</span> +<span class="normal">1512</span> +<span class="normal">1513</span> +<span class="normal">1514</span> +<span class="normal">1515</span> +<span class="normal">1516</span> +<span class="normal">1517</span> +<span class="normal">1518</span> +<span class="normal">1519</span> +<span class="normal">1520</span> +<span class="normal">1521</span> +<span class="normal">1522</span> +<span class="normal">1523</span> +<span class="normal">1524</span> +<span class="normal">1525</span> +<span class="normal">1526</span> +<span class="normal">1527</span> +<span class="normal">1528</span> +<span class="normal">1529</span> +<span class="normal">1530</span> +<span class="normal">1531</span> +<span class="normal">1532</span> +<span class="normal">1533</span> +<span class="normal">1534</span> +<span class="normal">1535</span> +<span class="normal">1536</span> +<span class="normal">1537</span> +<span class="normal">1538</span> +<span class="normal">1539</span> +<span class="normal">1540</span> +<span class="normal">1541</span> +<span class="normal">1542</span> +<span class="normal">1543</span> +<span class="normal">1544</span> +<span class="normal">1545</span> +<span class="normal">1546</span> +<span class="normal">1547</span> +<span class="normal">1548</span> +<span class="normal">1549</span> +<span class="normal">1550</span> +<span class="normal">1551</span> +<span class="normal">1552</span> +<span class="normal">1553</span> +<span class="normal">1554</span> +<span class="normal">1555</span> +<span class="normal">1556</span> +<span class="normal">1557</span> +<span class="normal">1558</span> +<span class="normal">1559</span> +<span class="normal">1560</span> +<span class="normal">1561</span> +<span class="normal">1562</span> +<span class="normal">1563</span> +<span class="normal">1564</span> +<span class="normal">1565</span> +<span class="normal">1566</span> +<span class="normal">1567</span> +<span class="normal">1568</span> +<span class="normal">1569</span> +<span class="normal">1570</span> +<span class="normal">1571</span> +<span class="normal">1572</span> +<span class="normal">1573</span> +<span class="normal">1574</span> +<span class="normal">1575</span> +<span class="normal">1576</span> +<span class="normal">1577</span> +<span class="normal">1578</span> +<span class="normal">1579</span> +<span class="normal">1580</span> +<span class="normal">1581</span> +<span class="normal">1582</span> +<span class="normal">1583</span> +<span class="normal">1584</span> +<span class="normal">1585</span> +<span class="normal">1586</span> +<span class="normal">1587</span> +<span class="normal">1588</span> +<span class="normal">1589</span> +<span class="normal">1590</span> +<span class="normal">1591</span> +<span class="normal">1592</span> +<span class="normal">1593</span> +<span class="normal">1594</span> +<span class="normal">1595</span> +<span class="normal">1596</span> +<span class="normal">1597</span> +<span class="normal">1598</span> +<span class="normal">1599</span> +<span class="normal">1600</span> +<span class="normal">1601</span> +<span class="normal">1602</span> +<span class="normal">1603</span> +<span class="normal">1604</span> +<span class="normal">1605</span> +<span class="normal">1606</span> +<span class="normal">1607</span> +<span class="normal">1608</span> +<span class="normal">1609</span> +<span class="normal">1610</span> +<span class="normal">1611</span> +<span class="normal">1612</span> +<span class="normal">1613</span> +<span class="normal">1614</span> +<span class="normal">1615</span> +<span class="normal">1616</span> +<span class="normal">1617</span> +<span class="normal">1618</span> +<span class="normal">1619</span> +<span class="normal">1620</span> +<span class="normal">1621</span> +<span class="normal">1622</span> +<span class="normal">1623</span> +<span class="normal">1624</span> +<span class="normal">1625</span> +<span class="normal">1626</span> +<span class="normal">1627</span> +<span class="normal">1628</span> +<span class="normal">1629</span> +<span class="normal">1630</span> +<span class="normal">1631</span> +<span class="normal">1632</span> +<span class="normal">1633</span> +<span class="normal">1634</span> +<span class="normal">1635</span> +<span class="normal">1636</span> +<span class="normal">1637</span> +<span class="normal">1638</span> +<span class="normal">1639</span> +<span class="normal">1640</span> +<span class="normal">1641</span> +<span class="normal">1642</span> +<span class="normal">1643</span> +<span class="normal">1644</span> +<span class="normal">1645</span> +<span class="normal">1646</span> +<span class="normal">1647</span> +<span class="normal">1648</span> +<span class="normal">1649</span> +<span class="normal">1650</span> +<span class="normal">1651</span> +<span class="normal">1652</span> +<span class="normal">1653</span> +<span class="normal">1654</span> +<span class="normal">1655</span> +<span class="normal">1656</span> +<span class="normal">1657</span> +<span class="normal">1658</span> +<span class="normal">1659</span> +<span class="normal">1660</span> +<span class="normal">1661</span> +<span class="normal">1662</span> +<span class="normal">1663</span> +<span class="normal">1664</span> +<span class="normal">1665</span> +<span class="normal">1666</span> +<span class="normal">1667</span> +<span class="normal">1668</span> +<span class="normal">1669</span> +<span class="normal">1670</span> +<span class="normal">1671</span> +<span class="normal">1672</span> +<span class="normal">1673</span> +<span class="normal">1674</span> +<span class="normal">1675</span> +<span class="normal">1676</span> +<span class="normal">1677</span> +<span class="normal">1678</span> +<span class="normal">1679</span> +<span class="normal">1680</span> +<span class="normal">1681</span> +<span class="normal">1682</span> +<span class="normal">1683</span> +<span class="normal">1684</span> +<span class="normal">1685</span> +<span class="normal">1686</span> +<span class="normal">1687</span> +<span class="normal">1688</span> +<span class="normal">1689</span> +<span class="normal">1690</span> +<span class="normal">1691</span> +<span class="normal">1692</span> +<span class="normal">1693</span> +<span class="normal">1694</span> +<span class="normal">1695</span> +<span class="normal">1696</span> +<span class="normal">1697</span> +<span class="normal">1698</span> +<span class="normal">1699</span> +<span class="normal">1700</span> +<span class="normal">1701</span> +<span class="normal">1702</span> +<span class="normal">1703</span> +<span class="normal">1704</span> +<span class="normal">1705</span> +<span class="normal">1706</span> +<span class="normal">1707</span> +<span class="normal">1708</span> +<span class="normal">1709</span> +<span class="normal">1710</span> +<span class="normal">1711</span> +<span class="normal">1712</span> +<span class="normal">1713</span> +<span class="normal">1714</span> +<span class="normal">1715</span> +<span class="normal">1716</span> +<span class="normal">1717</span> +<span class="normal">1718</span> +<span class="normal">1719</span> +<span class="normal">1720</span> +<span class="normal">1721</span> +<span class="normal">1722</span> +<span class="normal">1723</span> +<span class="normal">1724</span> +<span class="normal">1725</span> +<span class="normal">1726</span> +<span class="normal">1727</span> +<span class="normal">1728</span> +<span class="normal">1729</span> +<span class="normal">1730</span> +<span class="normal">1731</span> +<span class="normal">1732</span> +<span class="normal">1733</span> +<span class="normal">1734</span> +<span class="normal">1735</span> +<span class="normal">1736</span> +<span class="normal">1737</span> +<span class="normal">1738</span> +<span class="normal">1739</span> +<span class="normal">1740</span> +<span class="normal">1741</span> +<span class="normal">1742</span> +<span class="normal">1743</span> +<span class="normal">1744</span> +<span class="normal">1745</span> +<span class="normal">1746</span> +<span class="normal">1747</span> +<span class="normal">1748</span> +<span class="normal">1749</span> +<span class="normal">1750</span> +<span class="normal">1751</span> +<span class="normal">1752</span> +<span class="normal">1753</span> +<span class="normal">1754</span> +<span class="normal">1755</span> +<span class="normal">1756</span> +<span class="normal">1757</span> +<span class="normal">1758</span> +<span class="normal">1759</span> +<span class="normal">1760</span> +<span class="normal">1761</span> +<span class="normal">1762</span> +<span class="normal">1763</span> +<span class="normal">1764</span> +<span class="normal">1765</span> +<span class="normal">1766</span> +<span class="normal">1767</span> +<span class="normal">1768</span> +<span class="normal">1769</span> +<span class="normal">1770</span> +<span class="normal">1771</span> +<span class="normal">1772</span> +<span class="normal">1773</span> +<span class="normal">1774</span> +<span class="normal">1775</span> +<span class="normal">1776</span> +<span class="normal">1777</span> +<span class="normal">1778</span> +<span class="normal">1779</span> +<span class="normal">1780</span> +<span class="normal">1781</span> +<span class="normal">1782</span> +<span class="normal">1783</span> +<span class="normal">1784</span> +<span class="normal">1785</span> +<span class="normal">1786</span> +<span class="normal">1787</span> +<span class="normal">1788</span> +<span class="normal">1789</span> +<span class="normal">1790</span> +<span class="normal">1791</span> +<span class="normal">1792</span> +<span class="normal">1793</span> +<span class="normal">1794</span> +<span class="normal">1795</span> +<span class="normal">1796</span> +<span class="normal">1797</span> +<span class="normal">1798</span> +<span class="normal">1799</span> +<span class="normal">1800</span> +<span class="normal">1801</span> +<span class="normal">1802</span> +<span class="normal">1803</span> +<span class="normal">1804</span> +<span class="normal">1805</span> +<span class="normal">1806</span> +<span class="normal">1807</span> +<span class="normal">1808</span> +<span class="normal">1809</span> +<span class="normal">1810</span> +<span class="normal">1811</span> +<span class="normal">1812</span> +<span class="normal">1813</span> +<span class="normal">1814</span> +<span class="normal">1815</span> +<span class="normal">1816</span> +<span class="normal">1817</span> +<span class="normal">1818</span> +<span class="normal">1819</span> +<span class="normal">1820</span> +<span class="normal">1821</span> +<span class="normal">1822</span> +<span class="normal">1823</span> +<span class="normal">1824</span> +<span class="normal">1825</span> +<span class="normal">1826</span> +<span class="normal">1827</span> +<span class="normal">1828</span> +<span class="normal">1829</span> +<span class="normal">1830</span> +<span class="normal">1831</span> +<span class="normal">1832</span> +<span class="normal">1833</span> +<span class="normal">1834</span> +<span class="normal">1835</span> +<span class="normal">1836</span> +<span class="normal">1837</span> +<span class="normal">1838</span> +<span class="normal">1839</span> +<span class="normal">1840</span> +<span class="normal">1841</span> +<span class="normal">1842</span> +<span class="normal">1843</span> +<span class="normal">1844</span> +<span class="normal">1845</span> +<span class="normal">1846</span> +<span class="normal">1847</span> +<span class="normal">1848</span> +<span class="normal">1849</span> +<span class="normal">1850</span> +<span class="normal">1851</span> +<span class="normal">1852</span> +<span class="normal">1853</span> +<span class="normal">1854</span> +<span class="normal">1855</span> +<span class="normal">1856</span> +<span class="normal">1857</span> +<span class="normal">1858</span> +<span class="normal">1859</span> +<span class="normal">1860</span> +<span class="normal">1861</span> +<span class="normal">1862</span> +<span class="normal">1863</span> +<span class="normal">1864</span> +<span class="normal">1865</span> +<span class="normal">1866</span> +<span class="normal">1867</span> +<span class="normal">1868</span> +<span class="normal">1869</span> +<span class="normal">1870</span> +<span class="normal">1871</span> +<span class="normal">1872</span> +<span class="normal">1873</span> +<span class="normal">1874</span> +<span class="normal">1875</span> +<span class="normal">1876</span> +<span class="normal">1877</span> +<span class="normal">1878</span> +<span class="normal">1879</span> +<span class="normal">1880</span> +<span class="normal">1881</span> +<span class="normal">1882</span> +<span class="normal">1883</span> +<span class="normal">1884</span> +<span class="normal">1885</span> +<span class="normal">1886</span> +<span class="normal">1887</span> +<span class="normal">1888</span> +<span class="normal">1889</span> +<span class="normal">1890</span> +<span class="normal">1891</span> +<span class="normal">1892</span> +<span class="normal">1893</span> +<span class="normal">1894</span> +<span class="normal">1895</span> +<span class="normal">1896</span> +<span class="normal">1897</span> +<span class="normal">1898</span> +<span class="normal">1899</span> +<span class="normal">1900</span> +<span class="normal">1901</span> +<span class="normal">1902</span> +<span class="normal">1903</span> +<span class="normal">1904</span> +<span class="normal">1905</span> +<span class="normal">1906</span> +<span class="normal">1907</span> +<span class="normal">1908</span> +<span class="normal">1909</span> +<span class="normal">1910</span> +<span class="normal">1911</span> +<span class="normal">1912</span> +<span class="normal">1913</span> +<span class="normal">1914</span> +<span class="normal">1915</span> +<span class="normal">1916</span> +<span class="normal">1917</span> +<span class="normal">1918</span> +<span class="normal">1919</span> +<span class="normal">1920</span> +<span class="normal">1921</span> +<span class="normal">1922</span> +<span class="normal">1923</span> +<span class="normal">1924</span> +<span class="normal">1925</span> +<span class="normal">1926</span> +<span class="normal">1927</span> +<span class="normal">1928</span> +<span class="normal">1929</span> +<span class="normal">1930</span> +<span class="normal">1931</span> +<span class="normal">1932</span> +<span class="normal">1933</span> +<span class="normal">1934</span> +<span class="normal">1935</span> +<span class="normal">1936</span> +<span class="normal">1937</span> +<span class="normal">1938</span> +<span class="normal">1939</span> +<span class="normal">1940</span> +<span class="normal">1941</span> +<span class="normal">1942</span> +<span class="normal">1943</span> +<span class="normal">1944</span> +<span class="normal">1945</span> +<span class="normal">1946</span> +<span class="normal">1947</span> +<span class="normal">1948</span> +<span class="normal">1949</span> +<span class="normal">1950</span> +<span class="normal">1951</span> +<span class="normal">1952</span> +<span class="normal">1953</span> +<span class="normal">1954</span> +<span class="normal">1955</span> +<span class="normal">1956</span> +<span class="normal">1957</span> +<span class="normal">1958</span> +<span class="normal">1959</span> +<span class="normal">1960</span> +<span class="normal">1961</span> +<span class="normal">1962</span> +<span class="normal">1963</span> +<span class="normal">1964</span> +<span class="normal">1965</span> +<span class="normal">1966</span> +<span class="normal">1967</span> +<span class="normal">1968</span> +<span class="normal">1969</span> +<span class="normal">1970</span> +<span class="normal">1971</span> +<span class="normal">1972</span> +<span class="normal">1973</span> +<span class="normal">1974</span> +<span class="normal">1975</span> +<span class="normal">1976</span> +<span class="normal">1977</span> +<span class="normal">1978</span> +<span class="normal">1979</span> +<span class="normal">1980</span> +<span class="normal">1981</span> +<span class="normal">1982</span> +<span class="normal">1983</span> +<span class="normal">1984</span> +<span class="normal">1985</span> +<span class="normal">1986</span> +<span class="normal">1987</span> +<span class="normal">1988</span> +<span class="normal">1989</span> +<span class="normal">1990</span> +<span class="normal">1991</span> +<span class="normal">1992</span> +<span class="normal">1993</span> +<span class="normal">1994</span> +<span class="normal">1995</span> +<span class="normal">1996</span> +<span class="normal">1997</span> +<span class="normal">1998</span> +<span class="normal">1999</span> +<span class="normal">2000</span> +<span class="normal">2001</span> +<span class="normal">2002</span> +<span class="normal">2003</span> +<span class="normal">2004</span> +<span class="normal">2005</span> +<span class="normal">2006</span> +<span class="normal">2007</span> +<span class="normal">2008</span> +<span class="normal">2009</span> +<span class="normal">2010</span> +<span class="normal">2011</span> +<span class="normal">2012</span> +<span class="normal">2013</span> +<span class="normal">2014</span> +<span class="normal">2015</span> +<span class="normal">2016</span> +<span class="normal">2017</span> +<span class="normal">2018</span> +<span class="normal">2019</span> +<span class="normal">2020</span> +<span class="normal">2021</span> +<span class="normal">2022</span> +<span class="normal">2023</span> +<span class="normal">2024</span> +<span class="normal">2025</span> +<span class="normal">2026</span> +<span class="normal">2027</span> +<span class="normal">2028</span> +<span class="normal">2029</span> +<span class="normal">2030</span> +<span class="normal">2031</span> +<span class="normal">2032</span> +<span class="normal">2033</span> +<span class="normal">2034</span> +<span class="normal">2035</span> +<span class="normal">2036</span> +<span class="normal">2037</span> +<span class="normal">2038</span> +<span class="normal">2039</span> +<span class="normal">2040</span> +<span class="normal">2041</span> +<span class="normal">2042</span> +<span class="normal">2043</span> +<span class="normal">2044</span> +<span class="normal">2045</span> +<span class="normal">2046</span> +<span class="normal">2047</span> +<span class="normal">2048</span> +<span class="normal">2049</span> +<span class="normal">2050</span> +<span class="normal">2051</span> +<span class="normal">2052</span> +<span class="normal">2053</span> +<span class="normal">2054</span> +<span class="normal">2055</span> +<span class="normal">2056</span> +<span class="normal">2057</span> +<span class="normal">2058</span> +<span class="normal">2059</span> +<span class="normal">2060</span> +<span class="normal">2061</span> +<span class="normal">2062</span> +<span class="normal">2063</span> +<span class="normal">2064</span> +<span class="normal">2065</span> +<span class="normal">2066</span> +<span class="normal">2067</span> +<span class="normal">2068</span> +<span class="normal">2069</span> +<span class="normal">2070</span> +<span class="normal">2071</span> +<span class="normal">2072</span> +<span class="normal">2073</span> +<span class="normal">2074</span> +<span class="normal">2075</span> +<span class="normal">2076</span> +<span class="normal">2077</span> +<span class="normal">2078</span> +<span class="normal">2079</span> +<span class="normal">2080</span> +<span class="normal">2081</span> +<span class="normal">2082</span> +<span class="normal">2083</span> +<span class="normal">2084</span> +<span class="normal">2085</span> +<span class="normal">2086</span> +<span class="normal">2087</span> +<span class="normal">2088</span> +<span class="normal">2089</span> +<span class="normal">2090</span> +<span class="normal">2091</span> +<span class="normal">2092</span> +<span class="normal">2093</span> +<span class="normal">2094</span> +<span class="normal">2095</span> +<span class="normal">2096</span> +<span class="normal">2097</span> +<span class="normal">2098</span> +<span class="normal">2099</span> +<span class="normal">2100</span> +<span class="normal">2101</span> +<span class="normal">2102</span> +<span class="normal">2103</span> +<span class="normal">2104</span> +<span class="normal">2105</span> +<span class="normal">2106</span> +<span class="normal">2107</span> +<span class="normal">2108</span> +<span class="normal">2109</span> +<span class="normal">2110</span> +<span class="normal">2111</span> +<span class="normal">2112</span> +<span class="normal">2113</span> +<span class="normal">2114</span> +<span class="normal">2115</span> +<span class="normal">2116</span> +<span class="normal">2117</span> +<span class="normal">2118</span> +<span class="normal">2119</span> +<span class="normal">2120</span> +<span class="normal">2121</span> +<span class="normal">2122</span> +<span class="normal">2123</span> +<span class="normal">2124</span> +<span class="normal">2125</span> +<span class="normal">2126</span> +<span class="normal">2127</span> +<span class="normal">2128</span> +<span class="normal">2129</span> +<span class="normal">2130</span> +<span class="normal">2131</span> +<span class="normal">2132</span> +<span class="normal">2133</span> +<span class="normal">2134</span> +<span class="normal">2135</span> +<span class="normal">2136</span> +<span class="normal">2137</span> +<span class="normal">2138</span> +<span class="normal">2139</span> +<span class="normal">2140</span> +<span class="normal">2141</span> +<span class="normal">2142</span> +<span class="normal">2143</span> +<span class="normal">2144</span> +<span class="normal">2145</span> +<span class="normal">2146</span> +<span class="normal">2147</span> +<span class="normal">2148</span> +<span class="normal">2149</span> +<span class="normal">2150</span> +<span class="normal">2151</span> +<span class="normal">2152</span> +<span class="normal">2153</span> +<span class="normal">2154</span> +<span class="normal">2155</span> +<span class="normal">2156</span> +<span class="normal">2157</span> +<span class="normal">2158</span> +<span class="normal">2159</span> +<span class="normal">2160</span> +<span class="normal">2161</span> +<span class="normal">2162</span> +<span class="normal">2163</span> +<span class="normal">2164</span> +<span class="normal">2165</span> +<span class="normal">2166</span> +<span class="normal">2167</span> +<span class="normal">2168</span> +<span class="normal">2169</span> +<span class="normal">2170</span> +<span class="normal">2171</span> +<span class="normal">2172</span> +<span class="normal">2173</span> +<span class="normal">2174</span> +<span class="normal">2175</span> +<span class="normal">2176</span> +<span class="normal">2177</span> +<span class="normal">2178</span> +<span class="normal">2179</span> +<span class="normal">2180</span> +<span class="normal">2181</span> +<span class="normal">2182</span> +<span class="normal">2183</span> +<span class="normal">2184</span> +<span class="normal">2185</span> +<span class="normal">2186</span> +<span class="normal">2187</span> +<span class="normal">2188</span> +<span class="normal">2189</span> +<span class="normal">2190</span> +<span class="normal">2191</span> +<span class="normal">2192</span> +<span class="normal">2193</span> +<span class="normal">2194</span> +<span class="normal">2195</span> +<span class="normal">2196</span> +<span class="normal">2197</span> +<span class="normal">2198</span> +<span class="normal">2199</span> +<span class="normal">2200</span> +<span class="normal">2201</span> +<span class="normal">2202</span> +<span class="normal">2203</span> +<span class="normal">2204</span> +<span class="normal">2205</span> +<span class="normal">2206</span> +<span class="normal">2207</span> +<span class="normal">2208</span> +<span class="normal">2209</span> +<span class="normal">2210</span> +<span class="normal">2211</span> +<span class="normal">2212</span> +<span class="normal">2213</span> +<span class="normal">2214</span> +<span class="normal">2215</span> +<span class="normal">2216</span> +<span class="normal">2217</span> +<span class="normal">2218</span> +<span class="normal">2219</span> +<span class="normal">2220</span> +<span class="normal">2221</span> +<span class="normal">2222</span> +<span class="normal">2223</span> +<span class="normal">2224</span> +<span class="normal">2225</span> +<span class="normal">2226</span> +<span class="normal">2227</span> +<span class="normal">2228</span> +<span class="normal">2229</span> +<span class="normal">2230</span> +<span class="normal">2231</span> +<span class="normal">2232</span> +<span class="normal">2233</span> +<span class="normal">2234</span> +<span class="normal">2235</span> +<span class="normal">2236</span> +<span class="normal">2237</span> +<span class="normal">2238</span> +<span class="normal">2239</span> +<span class="normal">2240</span> +<span class="normal">2241</span> +<span class="normal">2242</span> +<span class="normal">2243</span> +<span class="normal">2244</span> +<span class="normal">2245</span> +<span class="normal">2246</span> +<span class="normal">2247</span> +<span class="normal">2248</span> +<span class="normal">2249</span> +<span class="normal">2250</span> +<span class="normal">2251</span> +<span class="normal">2252</span> +<span class="normal">2253</span> +<span class="normal">2254</span> +<span class="normal">2255</span> +<span class="normal">2256</span> +<span class="normal">2257</span> +<span class="normal">2258</span> +<span class="normal">2259</span> +<span class="normal">2260</span> +<span class="normal">2261</span> +<span class="normal">2262</span> +<span class="normal">2263</span> +<span class="normal">2264</span> +<span class="normal">2265</span> +<span class="normal">2266</span> +<span class="normal">2267</span> +<span class="normal">2268</span> +<span class="normal">2269</span> +<span class="normal">2270</span> +<span class="normal">2271</span> +<span class="normal">2272</span> +<span class="normal">2273</span> +<span class="normal">2274</span> +<span class="normal">2275</span> +<span class="normal">2276</span> +<span class="normal">2277</span> +<span class="normal">2278</span> +<span class="normal">2279</span> +<span class="normal">2280</span> +<span class="normal">2281</span> +<span class="normal">2282</span> +<span class="normal">2283</span> +<span class="normal">2284</span> +<span class="normal">2285</span> +<span class="normal">2286</span> +<span class="normal">2287</span> +<span class="normal">2288</span> +<span class="normal">2289</span> +<span class="normal">2290</span> +<span class="normal">2291</span> +<span class="normal">2292</span> +<span class="normal">2293</span> +<span class="normal">2294</span> +<span class="normal">2295</span> +<span class="normal">2296</span> +<span class="normal">2297</span> +<span class="normal">2298</span> +<span class="normal">2299</span> +<span class="normal">2300</span> +<span class="normal">2301</span> +<span class="normal">2302</span> +<span class="normal">2303</span> +<span class="normal">2304</span> +<span class="normal">2305</span> +<span class="normal">2306</span> +<span class="normal">2307</span> +<span class="normal">2308</span> +<span class="normal">2309</span> +<span class="normal">2310</span> +<span class="normal">2311</span> +<span class="normal">2312</span> +<span class="normal">2313</span> +<span class="normal">2314</span> +<span class="normal">2315</span> +<span class="normal">2316</span> +<span class="normal">2317</span> +<span class="normal">2318</span> +<span class="normal">2319</span> +<span class="normal">2320</span> +<span class="normal">2321</span> +<span class="normal">2322</span> +<span class="normal">2323</span> +<span class="normal">2324</span> +<span class="normal">2325</span> +<span class="normal">2326</span> +<span class="normal">2327</span> +<span class="normal">2328</span> +<span class="normal">2329</span> +<span class="normal">2330</span> +<span class="normal">2331</span> +<span class="normal">2332</span> +<span class="normal">2333</span> +<span class="normal">2334</span> +<span class="normal">2335</span> +<span class="normal">2336</span> +<span class="normal">2337</span> +<span class="normal">2338</span> +<span class="normal">2339</span> +<span class="normal">2340</span> +<span class="normal">2341</span> +<span class="normal">2342</span> +<span class="normal">2343</span> +<span class="normal">2344</span> +<span class="normal">2345</span> +<span class="normal">2346</span> +<span class="normal">2347</span> +<span class="normal">2348</span> +<span class="normal">2349</span> +<span class="normal">2350</span> +<span class="normal">2351</span> +<span class="normal">2352</span> +<span class="normal">2353</span> +<span class="normal">2354</span> +<span class="normal">2355</span> +<span class="normal">2356</span> +<span class="normal">2357</span> +<span class="normal">2358</span> +<span class="normal">2359</span> +<span class="normal">2360</span> +<span class="normal">2361</span> +<span class="normal">2362</span> +<span class="normal">2363</span> +<span class="normal">2364</span> +<span class="normal">2365</span> +<span class="normal">2366</span> +<span class="normal">2367</span> +<span class="normal">2368</span> +<span class="normal">2369</span> +<span class="normal">2370</span> +<span class="normal">2371</span> +<span class="normal">2372</span> +<span class="normal">2373</span> +<span class="normal">2374</span> +<span class="normal">2375</span> +<span class="normal">2376</span> +<span class="normal">2377</span> +<span class="normal">2378</span> +<span class="normal">2379</span> +<span class="normal">2380</span> +<span class="normal">2381</span> +<span class="normal">2382</span> +<span class="normal">2383</span> +<span class="normal">2384</span> +<span class="normal">2385</span> +<span class="normal">2386</span> +<span class="normal">2387</span> +<span class="normal">2388</span> +<span class="normal">2389</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-2" name="line-2"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-3" name="line-3"></a><span class="cp">#endif</span> +<a id="line-4" name="line-4"></a> +<a id="line-5" name="line-5"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span> +<a id="line-6" name="line-6"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span> +<a id="line-7" name="line-7"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk-pixbuf/gdk-pixbuf.h></span> +<a id="line-8" name="line-8"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></span> +<a id="line-9" name="line-9"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-10" name="line-10"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><librsvg/rsvg.h></span> +<a id="line-11" name="line-11"></a><span class="cp">#endif</span> +<a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-config-keys.h"</span> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-enum-types.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-marshal.h"</span> +<a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-scroll-view.h"</span> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-debug.h"</span> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"zoom.h"</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdk.h></span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cm">/* Scroll step increment */</span> +<a id="line-23" name="line-23"></a><span class="cp">#define SCROLL_STEP_SIZE 32</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cm">/* Maximum zoom factor */</span> +<a id="line-26" name="line-26"></a><span class="cp">#define MAX_ZOOM_FACTOR 20</span> +<a id="line-27" name="line-27"></a><span class="cp">#define MIN_ZOOM_FACTOR 0.02</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="cp">#define CHECK_MEDIUM 8</span> +<a id="line-30" name="line-30"></a><span class="cp">#define CHECK_BLACK "#000000"</span> +<a id="line-31" name="line-31"></a><span class="cp">#define CHECK_GRAY "#808080"</span> +<a id="line-32" name="line-32"></a><span class="cp">#define CHECK_LIGHT "#cccccc"</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="cm">/* Default increment for zooming. The current zoom factor is multiplied or</span> +<a id="line-35" name="line-35"></a><span class="cm"> * divided by this amount on every zooming step. For consistency, you should</span> +<a id="line-36" name="line-36"></a><span class="cm"> * use the same value elsewhere in the program.</span> +<a id="line-37" name="line-37"></a><span class="cm"> */</span> +<a id="line-38" name="line-38"></a><span class="cp">#define IMAGE_VIEW_ZOOM_MULTIPLIER 1.05</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="cm">/* States for automatically adjusting the zoom factor */</span> +<a id="line-41" name="line-41"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">ZOOM_MODE_FIT</span><span class="p">,</span><span class="w"> </span><span class="cm">/* Image is fitted to scroll view even if the latter changes size */</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">ZOOM_MODE_FREE</span><span class="w"> </span><span class="cm">/* The image remains at its current zoom factor even if the scrollview changes size */</span> +<a id="line-44" name="line-44"></a><span class="p">}</span><span class="w"> </span><span class="n">ZoomMode</span><span class="p">;</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="cm">/* Signal IDs */</span> +<a id="line-47" name="line-47"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">SIGNAL_ZOOM_CHANGED</span><span class="p">,</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">SIGNAL_LAST</span> +<a id="line-50" name="line-50"></a><span class="p">};</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">view_signals</span><span class="w"> </span><span class="p">[</span><span class="n">SIGNAL_LAST</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">EOM_SCROLL_VIEW_CURSOR_NORMAL</span><span class="p">,</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">EOM_SCROLL_VIEW_CURSOR_HIDDEN</span><span class="p">,</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">EOM_SCROLL_VIEW_CURSOR_DRAG</span> +<a id="line-58" name="line-58"></a><span class="p">}</span><span class="w"> </span><span class="n">EomScrollViewCursor</span><span class="p">;</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="cm">/* Drag 'n Drop */</span> +<a id="line-61" name="line-61"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkTargetEntry</span><span class="w"> </span><span class="n">target_table</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"text/uri-list"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span> +<a id="line-63" name="line-63"></a><span class="p">};</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">PROP_ANTIALIAS_IN</span><span class="p">,</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">PROP_ANTIALIAS_OUT</span><span class="p">,</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">PROP_BACKGROUND_COLOR</span><span class="p">,</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">PROP_SCROLLWHEEL_ZOOM</span><span class="p">,</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">PROP_TRANSP_COLOR</span><span class="p">,</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">PROP_TRANSPARENCY_STYLE</span><span class="p">,</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_USE_BG_COLOR</span><span class="p">,</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_ZOOM_MULTIPLIER</span> +<a id="line-76" name="line-76"></a><span class="p">};</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="cm">/* Private part of the EomScrollView structure */</span> +<a id="line-79" name="line-79"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomScrollViewPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="cm">/* some widgets we rely on */</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">hadj</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">vadj</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbar</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbar</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="cm">/* actual image */</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">image_changed_id</span><span class="p">;</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">frame_changed_id</span><span class="p">;</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">;</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="cm">/* scale factor */</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="cm">/* zoom mode, either ZOOM_MODE_FIT or ZOOM_MODE_FREE */</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">ZoomMode</span><span class="w"> </span><span class="n">zoom_mode</span><span class="p">;</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="cm">/* whether to allow zoom > 1.0 on zoom fit */</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">upscale</span><span class="p">;</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="cm">/* the actual zoom factor */</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom</span><span class="p">;</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="cm">/* the minimum possible (reasonable) zoom factor */</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">min_zoom</span><span class="p">;</span> +<a id="line-109" name="line-109"></a> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="cm">/* Current scrolling offsets */</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">;</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="cm">/* handler ID for paint idle callback */</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">idle_id</span><span class="p">;</span> +<a id="line-115" name="line-115"></a> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="cm">/* Interpolation type when zoomed in*/</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">cairo_filter_t</span><span class="w"> </span><span class="n">interp_type_in</span><span class="p">;</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="cm">/* Interpolation type when zoomed out*/</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">cairo_filter_t</span><span class="w"> </span><span class="n">interp_type_out</span><span class="p">;</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="cm">/* Scroll wheel zoom */</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">scroll_wheel_zoom</span><span class="p">;</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="cm">/* Scroll wheel zoom */</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="cm">/* dragging stuff */</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">drag_anchor_x</span><span class="p">,</span><span class="w"> </span><span class="n">drag_anchor_y</span><span class="p">;</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">drag_ofs_x</span><span class="p">,</span><span class="w"> </span><span class="n">drag_ofs_y</span><span class="p">;</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">dragging</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="cm">/* how to indicate transparency in images */</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">EomTransparencyStyle</span><span class="w"> </span><span class="n">transp_style</span><span class="p">;</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">transp_color</span><span class="p">;</span> +<a id="line-136" name="line-136"></a> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="cm">/* the type of the cursor we are currently showing */</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">EomScrollViewCursor</span><span class="w"> </span><span class="n">cursor</span><span class="p">;</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">use_bg_color</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">background_color</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">override_bg_color</span><span class="p">;</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">background_surface</span><span class="p">;</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="cm">/* Two-pass filtering */</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GSource</span><span class="w"> </span><span class="o">*</span><span class="n">hq_redraw_timeout_source</span><span class="p">;</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">force_unfiltered</span><span class="p">;</span> +<a id="line-149" name="line-149"></a><span class="p">};</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">scroll_by</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">yofs</span><span class="p">);</span> +<a id="line-152" name="line-152"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">set_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">);</span> +<a id="line-153" name="line-153"></a><span class="cm">/* static void request_paint_area (EomScrollView *view, GdkRectangle *area); */</span> +<a id="line-154" name="line-154"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">set_minimum_zoom_factor</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">view_on_drag_begin_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">view_on_drag_data_get_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="o">*</span><span class="n">drag_context</span><span class="p">,</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-161" name="line-161"></a> +<a id="line-162" name="line-162"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">_eom_gdk_rgba_equal0</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">);</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="p">,</span><span class="w"> </span><span class="n">eom_scroll_view</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_GRID</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="cm">/*===================================</span> +<a id="line-167" name="line-167"></a><span class="cm"> widget size changing handler &</span> +<a id="line-168" name="line-168"></a><span class="cm"> util functions</span> +<a id="line-169" name="line-169"></a><span class="cm"> ---------------------------------*/</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="k">static</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span> +<a id="line-172" name="line-172"></a><span class="n">create_surface_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">)</span> +<a id="line-173" name="line-173"></a><span class="p">{</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">;</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cairo_surface_create_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">,</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">));</span> +<a id="line-179" name="line-179"></a> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">surface</span><span class="p">;</span> +<a id="line-181" name="line-181"></a><span class="p">}</span> +<a id="line-182" name="line-182"></a> +<a id="line-183" name="line-183"></a><span class="cm">/* Disconnects from the EomImage and removes references to it */</span> +<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-185" name="line-185"></a><span class="n">free_image_resources</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-186" name="line-186"></a><span class="p">{</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-190" name="line-190"></a> +<a id="line-191" name="line-191"></a><span class="cp">#if GLIB_CHECK_VERSION(2,62,0)</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">g_clear_signal_handler</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">image_changed_id</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">g_clear_signal_handler</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">frame_changed_id</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-194" name="line-194"></a><span class="cp">#else</span> +<a id="line-195" name="line-195"></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">-></span><span class="n">image_changed_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_changed_id</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="p">}</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">frame_changed_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">frame_changed_id</span><span class="p">);</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">frame_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="p">}</span> +<a id="line-204" name="line-204"></a><span class="cp">#endif</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></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">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">eom_image_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="p">}</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="p">}</span> +<a id="line-215" name="line-215"></a> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="w"> </span><span class="o">!=</span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">);</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="p">}</span> +<a id="line-220" name="line-220"></a><span class="p">}</span> +<a id="line-221" name="line-221"></a> +<a id="line-222" name="line-222"></a><span class="cm">/* Computes the size in pixels of the scaled image */</span> +<a id="line-223" name="line-223"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-224" name="line-224"></a><span class="n">compute_scaled_size</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">)</span> +<a id="line-225" name="line-225"></a><span class="p">{</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-229" name="line-229"></a> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-235" name="line-235"></a><span class="p">}</span> +<a id="line-236" name="line-236"></a> +<a id="line-237" name="line-237"></a><span class="cm">/* Computes the offsets for the new zoom value so that they keep the image</span> +<a id="line-238" name="line-238"></a><span class="cm"> * centered on the view.</span> +<a id="line-239" name="line-239"></a><span class="cm"> */</span> +<a id="line-240" name="line-240"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-241" name="line-241"></a><span class="n">compute_center_zoom_offsets</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">old_zoom</span><span class="p">,</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">new_zoom</span><span class="p">,</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">,</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom_x_anchor</span><span class="p">,</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom_y_anchor</span><span class="p">,</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">yofs</span><span class="p">)</span> +<a id="line-246" name="line-246"></a><span class="p">{</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">old_scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">old_scaled_height</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">new_scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">new_scaled_height</span><span class="p">;</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">view_cx</span><span class="p">,</span><span class="w"> </span><span class="n">view_cy</span><span class="p">;</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-253" name="line-253"></a> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">compute_scaled_size</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">old_zoom</span><span class="p">,</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="o">&</span><span class="n">old_scaled_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">old_scaled_height</span><span class="p">);</span> +<a id="line-256" name="line-256"></a> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old_scaled_width</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">width</span><span class="p">)</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">view_cx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">zoom_x_anchor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">old_scaled_width</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">old_zoom</span><span class="p">;</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="k">else</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">view_cx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">zoom_x_anchor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">width</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">old_zoom</span><span class="p">;</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">old_scaled_height</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">height</span><span class="p">)</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">view_cy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">zoom_y_anchor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">old_scaled_height</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">old_zoom</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">else</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">view_cy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">zoom_y_anchor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">height</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">old_zoom</span><span class="p">;</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">compute_scaled_size</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">new_zoom</span><span class="p">,</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="o">&</span><span class="n">new_scaled_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">new_scaled_height</span><span class="p">);</span> +<a id="line-269" name="line-269"></a> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_scaled_width</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">width</span><span class="p">)</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="o">*</span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="o">*</span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">view_cx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">new_zoom</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">zoom_x_anchor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">xofs</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="o">*</span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="p">}</span> +<a id="line-277" name="line-277"></a> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_scaled_height</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">height</span><span class="p">)</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="o">*</span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="o">*</span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">view_cy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">new_zoom</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">zoom_y_anchor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">yofs</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="o">*</span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">}</span> +<a id="line-285" name="line-285"></a><span class="p">}</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="cm">/* Sets the scrollbar values based on the current scrolling offset */</span> +<a id="line-288" name="line-288"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-289" name="line-289"></a><span class="n">update_scrollbar_values</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-290" name="line-290"></a><span class="p">{</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">;</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">page_size</span><span class="p">,</span><span class="n">page_increment</span><span class="p">,</span><span class="n">step_increment</span><span class="p">;</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">lower</span><span class="p">,</span><span class="w"> </span><span class="n">upper</span><span class="p">;</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-296" name="line-296"></a> +<a id="line-297" name="line-297"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">)</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">))</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-302" name="line-302"></a> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">compute_scaled_size</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">scaled_height</span><span class="p">);</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-305" name="line-305"></a> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="cm">/* Set scroll increments */</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">page_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">);</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">page_increment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">step_increment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCROLL_STEP_SIZE</span><span class="p">;</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="cm">/* Set scroll bounds and new offsets */</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">lower</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">upper</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scaled_width</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">upper</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">page_size</span><span class="p">);</span> +<a id="line-317" name="line-317"></a> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">g_signal_handlers_block_matched</span><span class="w"> </span><span class="p">(</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">,</span><span class="w"> </span><span class="n">G_SIGNAL_MATCH_DATA</span><span class="p">,</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-321" name="line-321"></a> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">gtk_adjustment_configure</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">lower</span><span class="p">,</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">upper</span><span class="p">,</span><span class="w"> </span><span class="n">step_increment</span><span class="p">,</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">page_increment</span><span class="p">,</span><span class="w"> </span><span class="n">page_size</span><span class="p">);</span> +<a id="line-325" name="line-325"></a> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_matched</span><span class="w"> </span><span class="p">(</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">,</span><span class="w"> </span><span class="n">G_SIGNAL_MATCH_DATA</span><span class="p">,</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">}</span> +<a id="line-330" name="line-330"></a> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">page_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">scaled_height</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">);</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">page_increment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">step_increment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCROLL_STEP_SIZE</span><span class="p">;</span> +<a id="line-335" name="line-335"></a> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">lower</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">upper</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">;</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">upper</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">page_size</span><span class="p">);</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">g_signal_handlers_block_matched</span><span class="w"> </span><span class="p">(</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">,</span><span class="w"> </span><span class="n">G_SIGNAL_MATCH_DATA</span><span class="p">,</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-343" name="line-343"></a> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">gtk_adjustment_configure</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="p">,</span><span class="w"> </span><span class="n">lower</span><span class="p">,</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">upper</span><span class="p">,</span><span class="w"> </span><span class="n">step_increment</span><span class="p">,</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">page_increment</span><span class="p">,</span><span class="w"> </span><span class="n">page_size</span><span class="p">);</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_matched</span><span class="w"> </span><span class="p">(</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">,</span><span class="w"> </span><span class="n">G_SIGNAL_MATCH_DATA</span><span class="p">,</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="p">}</span> +<a id="line-352" name="line-352"></a><span class="p">}</span> +<a id="line-353" name="line-353"></a> +<a id="line-354" name="line-354"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-355" name="line-355"></a><span class="n">eom_scroll_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">EomScrollViewCursor</span><span class="w"> </span><span class="n">new_cursor</span><span class="p">)</span> +<a id="line-356" name="line-356"></a><span class="p">{</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">GdkCursor</span><span class="w"> </span><span class="o">*</span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">;</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">cursor</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">new_cursor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="p">}</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_toplevel</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_cursor</span><span class="p">;</span> +<a id="line-368" name="line-368"></a> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">new_cursor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_SCROLL_VIEW_CURSOR_NORMAL</span><span class="p">:</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">gdk_window_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_SCROLL_VIEW_CURSOR_HIDDEN</span><span class="p">:</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cursor_new_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_BLANK_CURSOR</span><span class="p">);</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_SCROLL_VIEW_CURSOR_DRAG</span><span class="p">:</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cursor_new_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_FLEUR</span><span class="p">);</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="p">}</span> +<a id="line-380" name="line-380"></a> +<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">cursor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">gdk_window_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">cursor</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">cursor</span><span class="p">);</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="p">}</span> +<a id="line-386" name="line-386"></a><span class="p">}</span> +<a id="line-387" name="line-387"></a> +<a id="line-388" name="line-388"></a><span class="cm">/* Changes visibility of the scrollbars based on the zoom factor and the</span> +<a id="line-389" name="line-389"></a><span class="cm"> * specified allocation, or the current allocation if NULL is specified.</span> +<a id="line-390" name="line-390"></a><span class="cm"> */</span> +<a id="line-391" name="line-391"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-392" name="line-392"></a><span class="n">check_scrollbar_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="o">*</span><span class="n">alloc</span><span class="p">)</span> +<a id="line-393" name="line-393"></a><span class="p">{</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bar_height</span><span class="p">;</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bar_width</span><span class="p">;</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">img_width</span><span class="p">;</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">img_height</span><span class="p">;</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">GtkRequisition</span><span class="w"> </span><span class="n">req</span><span class="p">;</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">hbar_visible</span><span class="p">,</span><span class="w"> </span><span class="n">vbar_visible</span><span class="p">;</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-404" name="line-404"></a> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">alloc</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">alloc</span><span class="o">-></span><span class="n">width</span><span class="p">;</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">alloc</span><span class="o">-></span><span class="n">height</span><span class="p">;</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-410" name="line-410"></a> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">;</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">;</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="p">}</span> +<a id="line-415" name="line-415"></a> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">compute_scaled_size</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">img_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">img_height</span><span class="p">);</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="cm">/* this should work fairly well in this special case for scrollbars */</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">gtk_widget_get_preferred_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">req</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">bar_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">req</span><span class="p">.</span><span class="n">height</span><span class="p">;</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">gtk_widget_get_preferred_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">req</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">bar_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">req</span><span class="p">.</span><span class="n">width</span><span class="p">;</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">,</span><span class="w"> </span><span class="s">"Widget Size allocate: %i, %i Bar: %i, %i</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">bar_width</span><span class="p">,</span><span class="w"> </span><span class="n">bar_height</span><span class="p">);</span> +<a id="line-426" name="line-426"></a> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">hbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-428" name="line-428"></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">-></span><span class="n">zoom_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ZOOM_MODE_FIT</span><span class="p">)</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">hbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-430" name="line-430"></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">img_width</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">img_height</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">height</span><span class="p">)</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">hbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-432" name="line-432"></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">img_width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">img_height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">height</span><span class="p">)</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">hbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-434" name="line-434"></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">img_width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">width</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">hbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-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">img_height</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">bar_height</span><span class="p">))</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">vbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="k">else</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">vbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="p">}</span> +<a id="line-441" name="line-441"></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">img_height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">vbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img_width</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">bar_width</span><span class="p">))</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">hbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="k">else</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">hbar_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="p">}</span> +<a id="line-448" name="line-448"></a> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hbar_visible</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">))</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">),</span><span class="w"> </span><span class="s">"visible"</span><span class="p">,</span><span class="w"> </span><span class="n">hbar_visible</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-451" name="line-451"></a> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vbar_visible</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">))</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">),</span><span class="w"> </span><span class="s">"visible"</span><span class="p">,</span><span class="w"> </span><span class="n">vbar_visible</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="p">}</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="cp">#define DOUBLE_EQUAL_MAX_DIFF 1e-6</span> +<a id="line-457" name="line-457"></a><span class="cp">#define DOUBLE_EQUAL(a,b) (fabs (a - b) < DOUBLE_EQUAL_MAX_DIFF)</span> +<a id="line-458" name="line-458"></a> +<a id="line-459" name="line-459"></a><span class="cm">/* Returns whether the image is zoomed in */</span> +<a id="line-460" name="line-460"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-461" name="line-461"></a><span class="n">is_zoomed_in</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-462" name="line-462"></a><span class="p">{</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-464" name="line-464"></a> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">DOUBLE_EQUAL_MAX_DIFF</span><span class="p">;</span> +<a id="line-467" name="line-467"></a><span class="p">}</span> +<a id="line-468" name="line-468"></a> +<a id="line-469" name="line-469"></a><span class="cm">/* Returns whether the image is zoomed out */</span> +<a id="line-470" name="line-470"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-471" name="line-471"></a><span class="n">is_zoomed_out</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-472" name="line-472"></a><span class="p">{</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-474" name="line-474"></a> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">DOUBLE_EQUAL_MAX_DIFF</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span> +<a id="line-477" name="line-477"></a><span class="p">}</span> +<a id="line-478" name="line-478"></a> +<a id="line-479" name="line-479"></a><span class="cm">/* Returns wether the image is movable, that means if it is larger then</span> +<a id="line-480" name="line-480"></a><span class="cm"> * the actual visible area.</span> +<a id="line-481" name="line-481"></a><span class="cm"> */</span> +<a id="line-482" name="line-482"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-483" name="line-483"></a><span class="n">is_image_movable</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-484" name="line-484"></a><span class="p">{</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-486" name="line-486"></a> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-488" name="line-488"></a> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">));</span> +<a id="line-490" name="line-490"></a><span class="p">}</span> +<a id="line-491" name="line-491"></a> +<a id="line-492" name="line-492"></a><span class="cm">/*===================================</span> +<a id="line-493" name="line-493"></a><span class="cm"> drawing core</span> +<a id="line-494" name="line-494"></a><span class="cm"> ---------------------------------*/</span> +<a id="line-495" name="line-495"></a> +<a id="line-496" name="line-496"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-497" name="line-497"></a><span class="n">get_transparency_params</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">,</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color1</span><span class="p">,</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color2</span><span class="p">)</span> +<a id="line-498" name="line-498"></a><span class="p">{</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-500" name="line-500"></a> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-502" name="line-502"></a> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="cm">/* Compute transparency parameters */</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">transp_style</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSP_BACKGROUND</span><span class="p">:</span><span class="w"> </span><span class="p">{</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="cm">/* Simply return fully transparent color */</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">color1</span><span class="o">-></span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color1</span><span class="o">-></span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color1</span><span class="o">-></span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color1</span><span class="o">-></span><span class="n">alpha</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">color2</span><span class="o">-></span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color2</span><span class="o">-></span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color2</span><span class="o">-></span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color2</span><span class="o">-></span><span class="n">alpha</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="p">}</span> +<a id="line-511" name="line-511"></a> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSP_CHECKED</span><span class="p">:</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_rgba_parse</span><span class="w"> </span><span class="p">(</span><span class="n">color1</span><span class="p">,</span><span class="w"> </span><span class="n">CHECK_GRAY</span><span class="p">));</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_rgba_parse</span><span class="w"> </span><span class="p">(</span><span class="n">color2</span><span class="p">,</span><span class="w"> </span><span class="n">CHECK_LIGHT</span><span class="p">));</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-516" name="line-516"></a> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSP_COLOR</span><span class="p">:</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="o">*</span><span class="n">color1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">color2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">transp_color</span><span class="p">;</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-520" name="line-520"></a> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="p">};</span> +<a id="line-524" name="line-524"></a> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CHECK_MEDIUM</span><span class="p">;</span> +<a id="line-526" name="line-526"></a><span class="p">}</span> +<a id="line-527" name="line-527"></a> +<a id="line-528" name="line-528"></a><span class="k">static</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span> +<a id="line-529" name="line-529"></a><span class="n">create_background_surface</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-530" name="line-530"></a><span class="p">{</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">check_size</span><span class="p">;</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">check_1</span><span class="p">;</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">check_2</span><span class="p">;</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">;</span> +<a id="line-535" name="line-535"></a> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">get_transparency_params</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">check_1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">check_2</span><span class="p">);</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_create_similar_surface</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">),</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">CAIRO_CONTENT_COLOR_ALPHA</span><span class="p">,</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">check_size</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">cairo_t</span><span class="o">*</span><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">);</span> +<a id="line-541" name="line-541"></a> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="cm">/* Use source operator to make fully transparent work */</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">cairo_set_operator</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">CAIRO_OPERATOR_SOURCE</span><span class="p">);</span> +<a id="line-544" name="line-544"></a> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">gdk_cairo_set_source_rgba</span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">check_1</span><span class="p">);</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">);</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">);</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-549" name="line-549"></a> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">gdk_cairo_set_source_rgba</span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">check_2</span><span class="p">);</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">,</span><span class="w"> </span><span class="n">check_size</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-554" name="line-554"></a> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-556" name="line-556"></a> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">surface</span><span class="p">;</span> +<a id="line-558" name="line-558"></a><span class="p">}</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="cm">/* =======================================</span> +<a id="line-561" name="line-561"></a> +<a id="line-562" name="line-562"></a><span class="cm"> scrolling stuff</span> +<a id="line-563" name="line-563"></a> +<a id="line-564" name="line-564"></a><span class="cm"> --------------------------------------*/</span> +<a id="line-565" name="line-565"></a> +<a id="line-566" name="line-566"></a><span class="cm">/* Scrolls the view to the specified offsets. */</span> +<a id="line-567" name="line-567"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-568" name="line-568"></a><span class="n">scroll_to</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">change_adjustments</span><span class="p">)</span> +<a id="line-569" name="line-569"></a><span class="p">{</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">;</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-574" name="line-574"></a> +<a id="line-575" name="line-575"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-576" name="line-576"></a> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="cm">/* Check bounds & Compute offsets */</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_adjustment_get_upper</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">)</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">gtk_adjustment_get_page_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">));</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="p">;</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-584" name="line-584"></a> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_adjustment_get_upper</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">)</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">gtk_adjustment_get_page_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">));</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="p">;</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-591" name="line-591"></a> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xofs</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-594" name="line-594"></a> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">x</span><span class="p">;</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-597" name="line-597"></a> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_is_drawable</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">))</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span> +<a id="line-600" name="line-600"></a> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-602" name="line-602"></a> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">abs</span><span class="w"> </span><span class="p">(</span><span class="n">xofs</span><span class="p">)</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">abs</span><span class="w"> </span><span class="p">(</span><span class="n">yofs</span><span class="p">)</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="p">}</span> +<a id="line-607" name="line-607"></a> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">gdk_window_scroll</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="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="n">yofs</span><span class="p">);</span> +<a id="line-611" name="line-611"></a> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span> +<a id="line-613" name="line-613"></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">change_adjustments</span><span class="p">)</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-615" name="line-615"></a> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">g_signal_handlers_block_matched</span><span class="w"> </span><span class="p">(</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">,</span><span class="w"> </span><span class="n">G_SIGNAL_MATCH_DATA</span><span class="p">,</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">g_signal_handlers_block_matched</span><span class="w"> </span><span class="p">(</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">,</span><span class="w"> </span><span class="n">G_SIGNAL_MATCH_DATA</span><span class="p">,</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-622" name="line-622"></a> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span> +<a id="line-625" name="line-625"></a> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_matched</span><span class="w"> </span><span class="p">(</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">,</span><span class="w"> </span><span class="n">G_SIGNAL_MATCH_DATA</span><span class="p">,</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_matched</span><span class="w"> </span><span class="p">(</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">,</span><span class="w"> </span><span class="n">G_SIGNAL_MATCH_DATA</span><span class="p">,</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-632" name="line-632"></a><span class="p">}</span> +<a id="line-633" name="line-633"></a> +<a id="line-634" name="line-634"></a><span class="cm">/* Scrolls the image view by the specified offsets. Notifies the adjustments</span> +<a id="line-635" name="line-635"></a><span class="cm"> * about their new values.</span> +<a id="line-636" name="line-636"></a><span class="cm"> */</span> +<a id="line-637" name="line-637"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-638" name="line-638"></a><span class="n">scroll_by</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">yofs</span><span class="p">)</span> +<a id="line-639" name="line-639"></a><span class="p">{</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-641" name="line-641"></a> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-643" name="line-643"></a> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">scroll_to</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">yofs</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-645" name="line-645"></a><span class="p">}</span> +<a id="line-646" name="line-646"></a> +<a id="line-647" name="line-647"></a><span class="cm">/* Callback used when an adjustment is changed */</span> +<a id="line-648" name="line-648"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-649" name="line-649"></a><span class="n">adjustment_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adj</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-650" name="line-650"></a><span class="p">{</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-653" name="line-653"></a> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-655" name="line-655"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-656" name="line-656"></a> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">scroll_to</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_adjustment_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">),</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">gtk_adjustment_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-659" name="line-659"></a> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">gtk_widget_queue_resize</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-661" name="line-661"></a><span class="p">}</span> +<a id="line-662" name="line-662"></a> +<a id="line-663" name="line-663"></a><span class="cm">/* Drags the image to the specified position */</span> +<a id="line-664" name="line-664"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-665" name="line-665"></a><span class="n">drag_to</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">)</span> +<a id="line-666" name="line-666"></a><span class="p">{</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="p">;</span> +<a id="line-669" name="line-669"></a> +<a id="line-670" name="line-670"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-671" name="line-671"></a> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">drag_anchor_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">x</span><span class="p">;</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">drag_anchor_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-674" name="line-674"></a> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">drag_ofs_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">dx</span><span class="p">;</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">drag_ofs_y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">dy</span><span class="p">;</span> +<a id="line-677" name="line-677"></a> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">scroll_to</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-679" name="line-679"></a><span class="p">}</span> +<a id="line-680" name="line-680"></a> +<a id="line-681" name="line-681"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-682" name="line-682"></a><span class="n">set_minimum_zoom_factor</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-683" name="line-683"></a><span class="p">{</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-685" name="line-685"></a> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">min_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">,</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">MAX</span><span class="p">(</span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">,</span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="n">MIN_ZOOM_FACTOR</span><span class="p">)</span><span class="w"> </span><span class="p">);</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-690" name="line-690"></a><span class="p">}</span> +<a id="line-691" name="line-691"></a> +<a id="line-692" name="line-692"></a><span class="cm">/**</span> +<a id="line-693" name="line-693"></a><span class="cm"> * set_zoom:</span> +<a id="line-694" name="line-694"></a><span class="cm"> * @view: A scroll view.</span> +<a id="line-695" name="line-695"></a><span class="cm"> * @zoom: Zoom factor.</span> +<a id="line-696" name="line-696"></a><span class="cm"> * @have_anchor: Whether the anchor point specified by (@anchorx, @anchory)</span> +<a id="line-697" name="line-697"></a><span class="cm"> * should be used.</span> +<a id="line-698" name="line-698"></a><span class="cm"> * @anchorx: Horizontal anchor point in pixels.</span> +<a id="line-699" name="line-699"></a><span class="cm"> * @anchory: Vertical anchor point in pixels.</span> +<a id="line-700" name="line-700"></a><span class="cm"> *</span> +<a id="line-701" name="line-701"></a><span class="cm"> * Sets the zoom factor for an image view. The anchor point can be used to</span> +<a id="line-702" name="line-702"></a><span class="cm"> * specify the point that stays fixed when the image is zoomed. If @have_anchor</span> +<a id="line-703" name="line-703"></a><span class="cm"> * is %TRUE, then (@anchorx, @anchory) specify the point relative to the image</span> +<a id="line-704" name="line-704"></a><span class="cm"> * view widget's allocation that will stay fixed when zooming. If @have_anchor</span> +<a id="line-705" name="line-705"></a><span class="cm"> * is %FALSE, then the center point of the image view will be used.</span> +<a id="line-706" name="line-706"></a><span class="cm"> **/</span> +<a id="line-707" name="line-707"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-708" name="line-708"></a><span class="n">set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_anchor</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">anchorx</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">anchory</span><span class="p">)</span> +<a id="line-710" name="line-710"></a><span class="p">{</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">;</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">x_rel</span><span class="p">,</span><span class="w"> </span><span class="n">y_rel</span><span class="p">;</span> +<a id="line-715" name="line-715"></a> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-717" name="line-717"></a> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-720" name="line-720"></a> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">zoom</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">MAX_ZOOM_FACTOR</span><span class="p">)</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX_ZOOM_FACTOR</span><span class="p">;</span> +<a id="line-723" name="line-723"></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">zoom</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">MIN_ZOOM_FACTOR</span><span class="p">)</span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN_ZOOM_FACTOR</span><span class="p">;</span> +<a id="line-725" name="line-725"></a> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">zoom</span><span class="p">))</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">min_zoom</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">)</span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-730" name="line-730"></a> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ZOOM_MODE_FREE</span><span class="p">;</span> +<a id="line-732" name="line-732"></a> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-734" name="line-734"></a> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="cm">/* compute new xofs/yofs values */</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">have_anchor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">x_rel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">anchorx</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">;</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">y_rel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">anchory</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">;</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">x_rel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.5</span><span class="p">;</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">y_rel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.5</span><span class="p">;</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="p">}</span> +<a id="line-743" name="line-743"></a> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">compute_center_zoom_offsets</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">,</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">x_rel</span><span class="p">,</span><span class="w"> </span><span class="n">y_rel</span><span class="p">,</span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="o">&</span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">yofs</span><span class="p">);</span> +<a id="line-748" name="line-748"></a> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="cm">/* set new values */</span> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xofs</span><span class="p">;</span><span class="w"> </span><span class="cm">/* (img_width * x_rel * zoom) - anchorx; */</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">yofs</span><span class="p">;</span><span class="w"> </span><span class="cm">/* (img_height * y_rel * zoom) - anchory; */</span> +<a id="line-752" name="line-752"></a><span class="cp">#if 0</span> +<a id="line-753" name="line-753"></a><span class="c"> g_print ("xofs: %i yofs: %i\n", priv->xofs, priv->yofs);</span> +<a id="line-754" name="line-754"></a><span class="cp">#endif</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">zoom</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">min_zoom</span><span class="p">)</span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">min_zoom</span><span class="p">;</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="k">else</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">zoom</span><span class="p">;</span> +<a id="line-759" name="line-759"></a> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="cm">/* we make use of the new values here */</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">check_scrollbar_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">update_scrollbar_values</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-763" name="line-763"></a> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="cm">/* repaint the whole image */</span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-766" name="line-766"></a> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">view_signals</span><span class="p">[</span><span class="n">SIGNAL_ZOOM_CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">);</span> +<a id="line-768" name="line-768"></a><span class="p">}</span> +<a id="line-769" name="line-769"></a> +<a id="line-770" name="line-770"></a><span class="cm">/* Zooms the image to fit the available allocation */</span> +<a id="line-771" name="line-771"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-772" name="line-772"></a><span class="n">set_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-773" name="line-773"></a><span class="p">{</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">new_zoom</span><span class="p">;</span> +<a id="line-777" name="line-777"></a> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-779" name="line-779"></a> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ZOOM_MODE_FIT</span><span class="p">;</span> +<a id="line-781" name="line-781"></a> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_mapped</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">)))</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-784" name="line-784"></a> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-787" name="line-787"></a> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-789" name="line-789"></a> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">new_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">zoom_fit_scale</span><span class="w"> </span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">,</span> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">,</span> +<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">,</span> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">upscale</span><span class="p">);</span> +<a id="line-794" name="line-794"></a> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_zoom</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">MAX_ZOOM_FACTOR</span><span class="p">)</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">new_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX_ZOOM_FACTOR</span><span class="p">;</span> +<a id="line-797" name="line-797"></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">new_zoom</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">MIN_ZOOM_FACTOR</span><span class="p">)</span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="n">new_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN_ZOOM_FACTOR</span><span class="p">;</span> +<a id="line-799" name="line-799"></a> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_zoom</span><span class="p">;</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-803" name="line-803"></a> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">view_signals</span><span class="p">[</span><span class="n">SIGNAL_ZOOM_CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">);</span> +<a id="line-805" name="line-805"></a><span class="p">}</span> +<a id="line-806" name="line-806"></a> +<a id="line-807" name="line-807"></a><span class="cm">/*===================================</span> +<a id="line-808" name="line-808"></a> +<a id="line-809" name="line-809"></a><span class="cm"> internal signal callbacks</span> +<a id="line-810" name="line-810"></a> +<a id="line-811" name="line-811"></a><span class="cm"> ---------------------------------*/</span> +<a id="line-812" name="line-812"></a> +<a id="line-813" name="line-813"></a><span class="cm">/* Key press event handler for the image view */</span> +<a id="line-814" name="line-814"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-815" name="line-815"></a><span class="n">display_key_press_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventKey</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> +<a id="line-816" name="line-816"></a><span class="p">{</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">do_zoom</span><span class="p">;</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom</span><span class="p">;</span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">do_scroll</span><span class="p">;</span> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">;</span> +<a id="line-824" name="line-824"></a> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-826" name="line-826"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-827" name="line-827"></a> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">do_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">do_scroll</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span> +<a id="line-832" name="line-832"></a> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-834" name="line-834"></a> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="cm">/* EomScrollView doesn't handle/have any Alt+Key combos */</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="p">}</span> +<a id="line-839" name="line-839"></a> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Up</span><span class="p">:</span> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="n">do_scroll</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-844" name="line-844"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">SCROLL_STEP_SIZE</span><span class="p">;</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-846" name="line-846"></a> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Page_Up</span><span class="p">:</span> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">do_scroll</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="p">}</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-857" name="line-857"></a> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Down</span><span class="p">:</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">do_scroll</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCROLL_STEP_SIZE</span><span class="p">;</span> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-863" name="line-863"></a> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Page_Down</span><span class="p">:</span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">do_scroll</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-870" name="line-870"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="p">}</span> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-874" name="line-874"></a> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Left</span><span class="p">:</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="n">do_scroll</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">SCROLL_STEP_SIZE</span><span class="p">;</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-880" name="line-880"></a> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Right</span><span class="p">:</span> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="n">do_scroll</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCROLL_STEP_SIZE</span><span class="p">;</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-886" name="line-886"></a> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_plus</span><span class="p">:</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_equal</span><span class="p">:</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Add</span><span class="p">:</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">do_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-893" name="line-893"></a> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_minus</span><span class="p">:</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Subtract</span><span class="p">:</span> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">do_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-899" name="line-899"></a> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_1</span><span class="p">:</span> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">do_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-904" name="line-904"></a> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="p">}</span> +<a id="line-908" name="line-908"></a> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">do_zoom</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="n">GdkSeat</span><span class="w"> </span><span class="o">*</span><span class="n">seat</span><span class="p">;</span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="n">GdkDevice</span><span class="w"> </span><span class="o">*</span><span class="n">device</span><span class="p">;</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-913" name="line-913"></a> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">seat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default_seat</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">device</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_seat_get_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">seat</span><span class="p">);</span> +<a id="line-916" name="line-916"></a> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">gdk_window_get_device_position</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">device</span><span class="p">,</span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="p">}</span> +<a id="line-921" name="line-921"></a> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">do_scroll</span><span class="p">)</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">scroll_by</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">);</span> +<a id="line-924" name="line-924"></a> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-926" name="line-926"></a><span class="p">}</span> +<a id="line-927" name="line-927"></a> +<a id="line-928" name="line-928"></a><span class="cm">/* Button press event handler for the image view */</span> +<a id="line-929" name="line-929"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-930" name="line-930"></a><span class="n">eom_scroll_view_button_press_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</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> +<a id="line-931" name="line-931"></a><span class="p">{</span> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-934" name="line-934"></a> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-936" name="line-936"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-937" name="line-937"></a> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_has_focus</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">))</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-940" name="line-940"></a> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">dragging</span><span class="p">)</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-943" name="line-943"></a> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">1</span><span class="p">:</span> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">2</span><span class="p">:</span> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">scroll_wheel_zoom</span><span class="w"> </span><span class="o">&&</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="o">!</span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">))</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-950" name="line-950"></a> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_image_movable</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">eom_scroll_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW_CURSOR_DRAG</span><span class="p">);</span> +<a id="line-953" name="line-953"></a> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">dragging</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">drag_anchor_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">;</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">drag_anchor_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">;</span> +<a id="line-957" name="line-957"></a> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">drag_ofs_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="p">;</span> +<a id="line-959" name="line-959"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">drag_ofs_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="p">;</span> +<a id="line-960" name="line-960"></a> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="p">}</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="p">}</span> +<a id="line-966" name="line-966"></a> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-968" name="line-968"></a><span class="p">}</span> +<a id="line-969" name="line-969"></a> +<a id="line-970" name="line-970"></a><span class="cm">/* Button release event handler for the image view */</span> +<a id="line-971" name="line-971"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-972" name="line-972"></a><span class="n">eom_scroll_view_button_release_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</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> +<a id="line-973" name="line-973"></a><span class="p">{</span> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-976" name="line-976"></a> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-978" name="line-978"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-979" name="line-979"></a> +<a id="line-980" name="line-980"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">dragging</span><span class="p">)</span> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-982" name="line-982"></a> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-984" name="line-984"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">1</span><span class="p">:</span> +<a id="line-985" name="line-985"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">2</span><span class="p">:</span> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="n">drag_to</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">);</span> +<a id="line-987" name="line-987"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">dragging</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-988" name="line-988"></a> +<a id="line-989" name="line-989"></a><span class="w"> </span><span class="n">eom_scroll_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW_CURSOR_NORMAL</span><span class="p">);</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-991" name="line-991"></a> +<a id="line-992" name="line-992"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-993" name="line-993"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="p">}</span> +<a id="line-995" name="line-995"></a> +<a id="line-996" name="line-996"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-997" name="line-997"></a><span class="p">}</span> +<a id="line-998" name="line-998"></a> +<a id="line-999" name="line-999"></a><span class="cm">/* Scroll event handler for the image view. We zoom with an event without</span> +<a id="line-1000" name="line-1000"></a><span class="cm"> * modifiers rather than scroll; we use the Shift modifier to scroll.</span> +<a id="line-1001" name="line-1001"></a><span class="cm"> * Rationale: images are not primarily vertical, and in EOM you scan scroll by</span> +<a id="line-1002" name="line-1002"></a><span class="cm"> * dragging the image with button 1 anyways.</span> +<a id="line-1003" name="line-1003"></a><span class="cm"> */</span> +<a id="line-1004" name="line-1004"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1005" name="line-1005"></a><span class="n">eom_scroll_view_scroll_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventScroll</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> +<a id="line-1006" name="line-1006"></a><span class="p">{</span> +<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom_factor</span><span class="p">;</span> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">;</span> +<a id="line-1011" name="line-1011"></a> +<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1013" name="line-1013"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1014" name="line-1014"></a> +<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="cm">/* Compute zoom factor and scrolling offsets; we'll only use either of them */</span> +<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="cm">/* same as in gtkscrolledwindow.c */</span> +<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_adjustment_get_page_increment</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_adjustment_get_page_increment</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-1019" name="line-1019"></a> +<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">direction</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_UP</span><span class="p">:</span> +<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="n">zoom_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">yofs</span><span class="p">;</span> +<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1026" name="line-1026"></a> +<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_LEFT</span><span class="p">:</span> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">zoom_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">xofs</span><span class="p">;</span> +<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1032" name="line-1032"></a> +<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_DOWN</span><span class="p">:</span> +<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="n">zoom_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="cm">/* yofs = yofs; */</span> +<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1038" name="line-1038"></a> +<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_RIGHT</span><span class="p">:</span> +<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">zoom_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="cm">/* xofs = xofs; */</span> +<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1043" name="line-1043"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1044" name="line-1044"></a> +<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1049" name="line-1049"></a> +<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">scroll_wheel_zoom</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_SHIFT_MASK</span><span class="p">)</span> +<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="n">scroll_by</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">);</span> +<a id="line-1053" name="line-1053"></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">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span> +<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">scroll_by</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">);</span> +<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="n">set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">zoom_factor</span><span class="p">,</span> +<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">);</span> +<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_SHIFT_MASK</span><span class="p">)</span> +<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">scroll_by</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">);</span> +<a id="line-1061" name="line-1061"></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">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span> +<a id="line-1062" name="line-1062"></a><span class="w"> </span><span class="n">set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">zoom_factor</span><span class="p">,</span> +<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">);</span> +<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="n">scroll_by</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">);</span> +<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1067" name="line-1067"></a> +<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1069" name="line-1069"></a><span class="p">}</span> +<a id="line-1070" name="line-1070"></a> +<a id="line-1071" name="line-1071"></a><span class="cm">/* Motion event handler for the image view */</span> +<a id="line-1072" name="line-1072"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1073" name="line-1073"></a><span class="n">eom_scroll_view_motion_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventMotion</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> +<a id="line-1074" name="line-1074"></a><span class="p">{</span> +<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="n">GdkModifierType</span><span class="w"> </span><span class="n">mods</span><span class="p">;</span> +<a id="line-1079" name="line-1079"></a> +<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1081" name="line-1081"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1082" name="line-1082"></a> +<a id="line-1083" name="line-1083"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">dragging</span><span class="p">)</span> +<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1085" name="line-1085"></a> +<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">is_hint</span><span class="p">)</span> +<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="n">gdk_window_get_device_position</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">),</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">device</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">mods</span><span class="p">);</span> +<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">;</span> +<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">;</span> +<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1092" name="line-1092"></a> +<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="n">drag_to</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span> +<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1095" name="line-1095"></a><span class="p">}</span> +<a id="line-1096" name="line-1096"></a> +<a id="line-1097" name="line-1097"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1098" name="line-1098"></a><span class="n">display_map_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1099" name="line-1099"></a><span class="p">{</span> +<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1102" name="line-1102"></a> +<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1104" name="line-1104"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1105" name="line-1105"></a> +<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1107" name="line-1107"></a> +<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="n">set_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">check_scrollbar_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1111" name="line-1111"></a><span class="p">}</span> +<a id="line-1112" name="line-1112"></a> +<a id="line-1113" name="line-1113"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1114" name="line-1114"></a><span class="n">eom_scroll_view_size_allocate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="o">*</span><span class="n">alloc</span><span class="p">)</span> +<a id="line-1115" name="line-1115"></a><span class="p">{</span> +<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1117" name="line-1117"></a> +<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">check_scrollbar_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">alloc</span><span class="p">);</span> +<a id="line-1120" name="line-1120"></a> +<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">size_allocate</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span> +<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="p">,</span><span class="n">alloc</span><span class="p">);</span> +<a id="line-1123" name="line-1123"></a><span class="p">}</span> +<a id="line-1124" name="line-1124"></a> +<a id="line-1125" name="line-1125"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1126" name="line-1126"></a><span class="n">display_size_change</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventConfigure</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> +<a id="line-1127" name="line-1127"></a><span class="p">{</span> +<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1130" name="line-1130"></a> +<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1132" name="line-1132"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1133" name="line-1133"></a> +<a id="line-1134" name="line-1134"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ZOOM_MODE_FIT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">alloc</span><span class="p">;</span> +<a id="line-1136" name="line-1136"></a> +<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="n">alloc</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">width</span><span class="p">;</span> +<a id="line-1138" name="line-1138"></a><span class="w"> </span><span class="n">alloc</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">height</span><span class="p">;</span> +<a id="line-1139" name="line-1139"></a> +<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="n">set_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="n">check_scrollbar_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">alloc</span><span class="p">);</span> +<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">;</span> +<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1146" name="line-1146"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1147" name="line-1147"></a> +<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="n">compute_scaled_size</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">scaled_height</span><span class="p">);</span> +<a id="line-1149" name="line-1149"></a> +<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">scaled_width</span><span class="p">)</span> +<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="n">x_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scaled_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="p">;</span> +<a id="line-1152" name="line-1152"></a> +<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">scaled_height</span><span class="p">)</span> +<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="n">y_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scaled_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="p">;</span> +<a id="line-1155" name="line-1155"></a> +<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="n">scroll_by</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">x_offset</span><span class="p">,</span><span class="w"> </span><span class="n">y_offset</span><span class="p">);</span> +<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1158" name="line-1158"></a> +<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="n">update_scrollbar_values</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1160" name="line-1160"></a><span class="p">}</span> +<a id="line-1161" name="line-1161"></a> +<a id="line-1162" name="line-1162"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1163" name="line-1163"></a><span class="n">eom_scroll_view_focus_in_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="n">GdkEventFocus</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1166" name="line-1166"></a><span class="p">{</span> +<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="n">g_signal_stop_emission_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="s">"focus_in_event"</span><span class="p">);</span> +<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1169" name="line-1169"></a><span class="p">}</span> +<a id="line-1170" name="line-1170"></a> +<a id="line-1171" name="line-1171"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1172" name="line-1172"></a><span class="n">eom_scroll_view_focus_out_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="n">GdkEventFocus</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1175" name="line-1175"></a><span class="p">{</span> +<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="n">g_signal_stop_emission_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="s">"focus_out_event"</span><span class="p">);</span> +<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1178" name="line-1178"></a><span class="p">}</span> +<a id="line-1179" name="line-1179"></a> +<a id="line-1180" name="line-1180"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">_hq_redraw_cb</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1181" name="line-1181"></a><span class="p">{</span> +<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1183" name="line-1183"></a> +<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">force_unfiltered</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1186" name="line-1186"></a> +<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hq_redraw_timeout_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">G_SOURCE_REMOVE</span><span class="p">;</span> +<a id="line-1189" name="line-1189"></a><span class="p">}</span> +<a id="line-1190" name="line-1190"></a> +<a id="line-1191" name="line-1191"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1192" name="line-1192"></a><span class="n">_clear_hq_redraw_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1193" name="line-1193"></a><span class="p">{</span> +<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1195" name="line-1195"></a> +<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hq_redraw_timeout_source</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="n">g_source_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hq_redraw_timeout_source</span><span class="p">);</span> +<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">g_source_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hq_redraw_timeout_source</span><span class="p">);</span> +<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1200" name="line-1200"></a> +<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hq_redraw_timeout_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1202" name="line-1202"></a><span class="p">}</span> +<a id="line-1203" name="line-1203"></a> +<a id="line-1204" name="line-1204"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1205" name="line-1205"></a><span class="n">_set_hq_redraw_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1206" name="line-1206"></a><span class="p">{</span> +<a id="line-1207" name="line-1207"></a><span class="w"> </span><span class="n">GSource</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">;</span> +<a id="line-1208" name="line-1208"></a> +<a id="line-1209" name="line-1209"></a><span class="w"> </span><span class="n">_clear_hq_redraw_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1210" name="line-1210"></a> +<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_source_new</span><span class="w"> </span><span class="p">(</span><span class="mi">200</span><span class="p">);</span> +<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">g_source_set_callback</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">_hq_redraw_cb</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1213" name="line-1213"></a> +<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="n">g_source_attach</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1215" name="line-1215"></a> +<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">hq_redraw_timeout_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">source</span><span class="p">;</span> +<a id="line-1217" name="line-1217"></a><span class="p">}</span> +<a id="line-1218" name="line-1218"></a> +<a id="line-1219" name="line-1219"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1220" name="line-1220"></a><span class="n">display_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1221" name="line-1221"></a><span class="p">{</span> +<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">background_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1224" name="line-1224"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-1226" name="line-1226"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">;</span> +<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">;</span> +<a id="line-1228" name="line-1228"></a> +<a id="line-1229" name="line-1229"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_DRAWING_AREA</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1230" name="line-1230"></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">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1231" name="line-1231"></a> +<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1233" name="line-1233"></a> +<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1235" name="line-1235"></a> +<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1237" name="line-1237"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1238" name="line-1238"></a> +<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="n">compute_scaled_size</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">scaled_height</span><span class="p">);</span> +<a id="line-1240" name="line-1240"></a> +<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-1242" name="line-1242"></a> +<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="cm">/* Compute image offsets with respect to the window */</span> +<a id="line-1244" name="line-1244"></a> +<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">scaled_width</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">)</span> +<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">scaled_width</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-1247" name="line-1247"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="n">xofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">priv</span><span class="o">-></span><span class="n">xofs</span><span class="p">;</span> +<a id="line-1249" name="line-1249"></a> +<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">scaled_height</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">)</span> +<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-1252" name="line-1252"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1253" name="line-1253"></a><span class="w"> </span><span class="n">yofs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">priv</span><span class="o">-></span><span class="n">yofs</span><span class="p">;</span> +<a id="line-1254" name="line-1254"></a> +<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom %.2f, xofs: %i, yofs: %i scaled w: %i h: %i</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> +<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">);</span> +<a id="line-1257" name="line-1257"></a> +<a id="line-1258" name="line-1258"></a><span class="w"> </span><span class="cm">/* Paint the background */</span> +<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">);</span> +<a id="line-1260" name="line-1260"></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">-></span><span class="n">transp_style</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_TRANSP_BACKGROUND</span><span class="p">)</span> +<a id="line-1261" name="line-1261"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">),</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">),</span> +<a id="line-1262" name="line-1262"></a><span class="w"> </span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">);</span> +<a id="line-1263" name="line-1263"></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">-></span><span class="n">override_bg_color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1264" name="line-1264"></a><span class="w"> </span><span class="n">background_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">override_bg_color</span><span class="p">;</span> +<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">use_bg_color</span><span class="p">)</span> +<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="n">background_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_color</span><span class="p">;</span> +<a id="line-1267" name="line-1267"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">background_color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="n">cairo_set_source_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span> +<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="n">background_color</span><span class="o">-></span><span class="n">red</span><span class="p">,</span> +<a id="line-1270" name="line-1270"></a><span class="w"> </span><span class="n">background_color</span><span class="o">-></span><span class="n">green</span><span class="p">,</span> +<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="n">background_color</span><span class="o">-></span><span class="n">blue</span><span class="p">,</span> +<a id="line-1272" name="line-1272"></a><span class="w"> </span><span class="n">background_color</span><span class="o">-></span><span class="n">alpha</span><span class="p">);</span> +<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1274" name="line-1274"></a><span class="w"> </span><span class="n">cairo_set_source</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_window_get_background_pattern</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">)));</span> +<a id="line-1275" name="line-1275"></a><span class="w"> </span><span class="n">cairo_set_fill_rule</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">CAIRO_FILL_RULE_EVEN_ODD</span><span class="p">);</span> +<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-1277" name="line-1277"></a> +<a id="line-1278" name="line-1278"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_has_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1279" name="line-1279"></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">-></span><span class="n">background_surface</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1280" name="line-1280"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_background_surface</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1281" name="line-1281"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1282" name="line-1282"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">);</span> +<a id="line-1283" name="line-1283"></a><span class="w"> </span><span class="n">cairo_pattern_set_extend</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_get_source</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">),</span><span class="w"> </span><span class="n">CAIRO_EXTEND_REPEAT</span><span class="p">);</span> +<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">);</span> +<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1287" name="line-1287"></a> +<a id="line-1288" name="line-1288"></a><span class="w"> </span><span class="cm">/* Make sure the image is only drawn as large as needed.</span> +<a id="line-1289" name="line-1289"></a><span class="cm"> * This is especially necessary for SVGs where there might</span> +<a id="line-1290" name="line-1290"></a><span class="cm"> * be more image data available outside the image boundaries.</span> +<a id="line-1291" name="line-1291"></a><span class="cm"> */</span> +<a id="line-1292" name="line-1292"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_width</span><span class="p">,</span><span class="w"> </span><span class="n">scaled_height</span><span class="p">);</span> +<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="n">cairo_clip</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-1294" name="line-1294"></a> +<a id="line-1295" name="line-1295"></a><span class="cp">#ifdef HAVE_RSVG</span> +<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_is_svg</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1297" name="line-1297"></a><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="n">translate</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">original</span><span class="p">;</span> +<a id="line-1298" name="line-1298"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">transform</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_transform</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1299" name="line-1299"></a><span class="w"> </span><span class="n">cairo_matrix_init_identity</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">matrix</span><span class="p">);</span> +<a id="line-1300" name="line-1300"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">transform</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1301" name="line-1301"></a><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="n">affine</span><span class="p">;</span> +<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">image_offset_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">image_offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1304" name="line-1304"></a> +<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="n">eom_transform_get_affine</span><span class="w"> </span><span class="p">(</span><span class="n">transform</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">affine</span><span class="p">);</span> +<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="n">cairo_matrix_multiply</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">matrix</span><span class="p">);</span> +<a id="line-1307" name="line-1307"></a> +<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">eom_transform_get_transform_type</span><span class="w"> </span><span class="p">(</span><span class="n">transform</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_90</span><span class="p">:</span> +<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">:</span> +<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="n">image_offset_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-1312" name="line-1312"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_270</span><span class="p">:</span> +<a id="line-1314" name="line-1314"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">:</span> +<a id="line-1315" name="line-1315"></a><span class="w"> </span><span class="n">image_offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-1316" name="line-1316"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1317" name="line-1317"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_180</span><span class="p">:</span> +<a id="line-1318" name="line-1318"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_TRANSPOSE</span><span class="p">:</span> +<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_TRANSVERSE</span><span class="p">:</span> +<a id="line-1320" name="line-1320"></a><span class="w"> </span><span class="n">image_offset_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-1321" name="line-1321"></a><span class="w"> </span><span class="n">image_offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-1322" name="line-1322"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1323" name="line-1323"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_NONE</span><span class="p">:</span> +<a id="line-1324" name="line-1324"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1325" name="line-1325"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1326" name="line-1326"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1327" name="line-1327"></a><span class="w"> </span><span class="n">cairo_matrix_init_translate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">translate</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">image_offset_x</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">image_offset_y</span><span class="p">);</span> +<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="n">cairo_matrix_multiply</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">translate</span><span class="p">);</span> +<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1330" name="line-1330"></a><span class="w"> </span><span class="cm">/* Zoom factor for SVGs is already scaled, so scale back to application pixels. */</span> +<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="n">cairo_matrix_init_scale</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">);</span> +<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="n">cairo_matrix_multiply</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">scale</span><span class="p">);</span> +<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">cairo_matrix_init_translate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">translate</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="p">);</span> +<a id="line-1334" name="line-1334"></a><span class="w"> </span><span class="n">cairo_matrix_multiply</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">translate</span><span class="p">);</span> +<a id="line-1335" name="line-1335"></a> +<a id="line-1336" name="line-1336"></a><span class="w"> </span><span class="n">cairo_get_matrix</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">original</span><span class="p">);</span> +<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="n">cairo_matrix_multiply</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">matrix</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">original</span><span class="p">);</span> +<a id="line-1338" name="line-1338"></a><span class="w"> </span><span class="n">cairo_set_matrix</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">matrix</span><span class="p">);</span> +<a id="line-1339" name="line-1339"></a> +<a id="line-1340" name="line-1340"></a><span class="w"> </span><span class="n">rsvg_handle_render_cairo</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_get_svg</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="n">cr</span><span class="p">);</span> +<a id="line-1341" name="line-1341"></a> +<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-1343" name="line-1343"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RSVG */</span> +<a id="line-1344" name="line-1344"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="n">cairo_filter_t</span><span class="w"> </span><span class="n">interp_type</span><span class="p">;</span> +<a id="line-1346" name="line-1346"></a> +<a id="line-1347" name="line-1347"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">DOUBLE_EQUAL</span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">force_unfiltered</span><span class="p">)</span> +<a id="line-1348" name="line-1348"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1349" name="line-1349"></a><span class="w"> </span><span class="n">interp_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CAIRO_FILTER_NEAREST</span><span class="p">;</span> +<a id="line-1350" name="line-1350"></a><span class="w"> </span><span class="n">_set_hq_redraw_timeout</span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1351" name="line-1351"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1352" name="line-1352"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1353" name="line-1353"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_zoomed_in</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">))</span> +<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="n">interp_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">interp_type_in</span><span class="p">;</span> +<a id="line-1356" name="line-1356"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="n">interp_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">interp_type_out</span><span class="p">;</span> +<a id="line-1358" name="line-1358"></a> +<a id="line-1359" name="line-1359"></a><span class="w"> </span><span class="n">_clear_hq_redraw_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1360" name="line-1360"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">force_unfiltered</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1361" name="line-1361"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="n">cairo_scale</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">);</span> +<a id="line-1363" name="line-1363"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">,</span><span class="w"> </span><span class="n">xofs</span><span class="o">/</span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">yofs</span><span class="o">/</span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">);</span> +<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="n">cairo_pattern_set_extend</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_get_source</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">),</span><span class="w"> </span><span class="n">CAIRO_EXTEND_PAD</span><span class="p">);</span> +<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_zoomed_in</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">is_zoomed_out</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">))</span> +<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="n">cairo_pattern_set_filter</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_get_source</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">),</span><span class="w"> </span><span class="n">interp_type</span><span class="p">);</span> +<a id="line-1367" name="line-1367"></a> +<a id="line-1368" name="line-1368"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span> +<a id="line-1369" name="line-1369"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1370" name="line-1370"></a> +<a id="line-1371" name="line-1371"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1372" name="line-1372"></a><span class="p">}</span> +<a id="line-1373" name="line-1373"></a> +<a id="line-1374" name="line-1374"></a><span class="cm">/*==================================</span> +<a id="line-1375" name="line-1375"></a> +<a id="line-1376" name="line-1376"></a><span class="cm"> image loading callbacks</span> +<a id="line-1377" name="line-1377"></a> +<a id="line-1378" name="line-1378"></a><span class="cm"> -----------------------------------*/</span> +<a id="line-1379" name="line-1379"></a> +<a id="line-1380" name="line-1380"></a><span class="cm">/* Use when the pixbuf in the view is changed, to keep a</span> +<a id="line-1381" name="line-1381"></a><span class="cm"> reference to it and create its cairo surface. */</span> +<a id="line-1382" name="line-1382"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1383" name="line-1383"></a><span class="n">update_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">)</span> +<a id="line-1384" name="line-1384"></a><span class="p">{</span> +<a id="line-1385" name="line-1385"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1386" name="line-1386"></a> +<a id="line-1387" name="line-1387"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1388" name="line-1388"></a> +<a id="line-1389" name="line-1389"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1390" name="line-1390"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-1391" name="line-1391"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1392" name="line-1392"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1393" name="line-1393"></a> +<a id="line-1394" name="line-1394"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-1395" name="line-1395"></a> +<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1397" name="line-1397"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="p">);</span> +<a id="line-1398" name="line-1398"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1399" name="line-1399"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_surface_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-1400" name="line-1400"></a><span class="p">}</span> +<a id="line-1401" name="line-1401"></a> +<a id="line-1402" name="line-1402"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1403" name="line-1403"></a><span class="n">image_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1404" name="line-1404"></a><span class="p">{</span> +<a id="line-1405" name="line-1405"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1406" name="line-1406"></a> +<a id="line-1407" name="line-1407"></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">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1408" name="line-1408"></a> +<a id="line-1409" name="line-1409"></a><span class="w"> </span><span class="n">update_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="n">eom_image_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-1410" name="line-1410"></a> +<a id="line-1411" name="line-1411"></a><span class="w"> </span><span class="n">set_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-1412" name="line-1412"></a><span class="w"> </span><span class="n">check_scrollbar_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1413" name="line-1413"></a> +<a id="line-1414" name="line-1414"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1415" name="line-1415"></a><span class="p">}</span> +<a id="line-1416" name="line-1416"></a> +<a id="line-1417" name="line-1417"></a><span class="cm">/*===================================</span> +<a id="line-1418" name="line-1418"></a><span class="cm"> public API</span> +<a id="line-1419" name="line-1419"></a><span class="cm"> ---------------------------------*/</span> +<a id="line-1420" name="line-1420"></a> +<a id="line-1421" name="line-1421"></a><span class="kt">void</span> +<a id="line-1422" name="line-1422"></a><span class="n">eom_scroll_view_hide_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1423" name="line-1423"></a><span class="p">{</span> +<a id="line-1424" name="line-1424"></a><span class="w"> </span><span class="n">eom_scroll_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW_CURSOR_HIDDEN</span><span class="p">);</span> +<a id="line-1425" name="line-1425"></a><span class="p">}</span> +<a id="line-1426" name="line-1426"></a> +<a id="line-1427" name="line-1427"></a><span class="kt">void</span> +<a id="line-1428" name="line-1428"></a><span class="n">eom_scroll_view_show_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1429" name="line-1429"></a><span class="p">{</span> +<a id="line-1430" name="line-1430"></a><span class="w"> </span><span class="n">eom_scroll_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW_CURSOR_NORMAL</span><span class="p">);</span> +<a id="line-1431" name="line-1431"></a><span class="p">}</span> +<a id="line-1432" name="line-1432"></a> +<a id="line-1433" name="line-1433"></a><span class="cm">/* general properties */</span> +<a id="line-1434" name="line-1434"></a><span class="kt">void</span> +<a id="line-1435" name="line-1435"></a><span class="n">eom_scroll_view_set_zoom_upscale</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">upscale</span><span class="p">)</span> +<a id="line-1436" name="line-1436"></a><span class="p">{</span> +<a id="line-1437" name="line-1437"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1438" name="line-1438"></a> +<a id="line-1439" name="line-1439"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1440" name="line-1440"></a> +<a id="line-1441" name="line-1441"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1442" name="line-1442"></a> +<a id="line-1443" name="line-1443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">upscale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">upscale</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1444" name="line-1444"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">upscale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">upscale</span><span class="p">;</span> +<a id="line-1445" name="line-1445"></a> +<a id="line-1446" name="line-1446"></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">-></span><span class="n">zoom_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ZOOM_MODE_FIT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1447" name="line-1447"></a><span class="w"> </span><span class="n">set_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1448" name="line-1448"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1449" name="line-1449"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1450" name="line-1450"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1451" name="line-1451"></a><span class="p">}</span> +<a id="line-1452" name="line-1452"></a> +<a id="line-1453" name="line-1453"></a><span class="kt">void</span> +<a id="line-1454" name="line-1454"></a><span class="n">eom_scroll_view_set_antialiasing_in</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-1455" name="line-1455"></a><span class="p">{</span> +<a id="line-1456" name="line-1456"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="n">cairo_filter_t</span><span class="w"> </span><span class="n">new_interp_type</span><span class="p">;</span> +<a id="line-1458" name="line-1458"></a> +<a id="line-1459" name="line-1459"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1460" name="line-1460"></a> +<a id="line-1461" name="line-1461"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1462" name="line-1462"></a> +<a id="line-1463" name="line-1463"></a><span class="w"> </span><span class="n">new_interp_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">CAIRO_FILTER_GOOD</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">CAIRO_FILTER_NEAREST</span><span class="p">;</span> +<a id="line-1464" name="line-1464"></a> +<a id="line-1465" name="line-1465"></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">-></span><span class="n">interp_type_in</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">new_interp_type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1466" name="line-1466"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">interp_type_in</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_interp_type</span><span class="p">;</span> +<a id="line-1467" name="line-1467"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="s">"antialiasing-in"</span><span class="p">);</span> +<a id="line-1469" name="line-1469"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1470" name="line-1470"></a><span class="p">}</span> +<a id="line-1471" name="line-1471"></a> +<a id="line-1472" name="line-1472"></a><span class="kt">void</span> +<a id="line-1473" name="line-1473"></a><span class="n">eom_scroll_view_set_antialiasing_out</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-1474" name="line-1474"></a><span class="p">{</span> +<a id="line-1475" name="line-1475"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1476" name="line-1476"></a><span class="w"> </span><span class="n">cairo_filter_t</span><span class="w"> </span><span class="n">new_interp_type</span><span class="p">;</span> +<a id="line-1477" name="line-1477"></a> +<a id="line-1478" name="line-1478"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1479" name="line-1479"></a> +<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1481" name="line-1481"></a> +<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="n">new_interp_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">CAIRO_FILTER_GOOD</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">CAIRO_FILTER_NEAREST</span><span class="p">;</span> +<a id="line-1483" name="line-1483"></a> +<a id="line-1484" name="line-1484"></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">-></span><span class="n">interp_type_out</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">new_interp_type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1485" name="line-1485"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">interp_type_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_interp_type</span><span class="p">;</span> +<a id="line-1486" name="line-1486"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1487" name="line-1487"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="s">"antialiasing-out"</span><span class="p">);</span> +<a id="line-1488" name="line-1488"></a> +<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1490" name="line-1490"></a><span class="p">}</span> +<a id="line-1491" name="line-1491"></a> +<a id="line-1492" name="line-1492"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1493" name="line-1493"></a><span class="n">_transp_background_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1494" name="line-1494"></a><span class="p">{</span> +<a id="line-1495" name="line-1495"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1496" name="line-1496"></a> +<a id="line-1497" name="line-1497"></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">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">gdk_pixbuf_get_has_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1498" name="line-1498"></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">-></span><span class="n">background_surface</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1499" name="line-1499"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="p">);</span> +<a id="line-1500" name="line-1500"></a><span class="w"> </span><span class="cm">/* Will be recreated if needed during redraw */</span> +<a id="line-1501" name="line-1501"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1503" name="line-1503"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1505" name="line-1505"></a> +<a id="line-1506" name="line-1506"></a><span class="p">}</span> +<a id="line-1507" name="line-1507"></a> +<a id="line-1508" name="line-1508"></a><span class="kt">void</span> +<a id="line-1509" name="line-1509"></a><span class="n">eom_scroll_view_set_transparency_color</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span> +<a id="line-1510" name="line-1510"></a><span class="p">{</span> +<a id="line-1511" name="line-1511"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1512" name="line-1512"></a> +<a id="line-1513" name="line-1513"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1514" name="line-1514"></a> +<a id="line-1515" name="line-1515"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1516" name="line-1516"></a> +<a id="line-1517" name="line-1517"></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">_eom_gdk_rgba_equal0</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">transp_color</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1518" name="line-1518"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">transp_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">;</span> +<a id="line-1519" name="line-1519"></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">-></span><span class="n">transp_style</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_TRANSP_COLOR</span><span class="p">)</span> +<a id="line-1520" name="line-1520"></a><span class="w"> </span><span class="n">_transp_background_changed</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1521" name="line-1521"></a> +<a id="line-1522" name="line-1522"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="s">"transparency-color"</span><span class="p">);</span> +<a id="line-1523" name="line-1523"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1524" name="line-1524"></a><span class="p">}</span> +<a id="line-1525" name="line-1525"></a> +<a id="line-1526" name="line-1526"></a><span class="kt">void</span> +<a id="line-1527" name="line-1527"></a><span class="n">eom_scroll_view_set_transparency</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span> +<a id="line-1528" name="line-1528"></a><span class="w"> </span><span class="n">EomTransparencyStyle</span><span class="w"> </span><span class="n">style</span><span class="p">)</span> +<a id="line-1529" name="line-1529"></a><span class="p">{</span> +<a id="line-1530" name="line-1530"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1531" name="line-1531"></a> +<a id="line-1532" name="line-1532"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1533" name="line-1533"></a> +<a id="line-1534" name="line-1534"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1535" name="line-1535"></a> +<a id="line-1536" name="line-1536"></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">-></span><span class="n">transp_style</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">style</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1537" name="line-1537"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">transp_style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">style</span><span class="p">;</span> +<a id="line-1538" name="line-1538"></a><span class="w"> </span><span class="n">_transp_background_changed</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1539" name="line-1539"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="s">"transparency-style"</span><span class="p">);</span> +<a id="line-1540" name="line-1540"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1541" name="line-1541"></a><span class="p">}</span> +<a id="line-1542" name="line-1542"></a> +<a id="line-1543" name="line-1543"></a><span class="cm">/* zoom api */</span> +<a id="line-1544" name="line-1544"></a> +<a id="line-1545" name="line-1545"></a><span class="k">static</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">preferred_zoom_levels</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-1546" name="line-1546"></a><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">50</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">20</span><span class="p">,</span> +<a id="line-1547" name="line-1547"></a><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">10.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">5.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">3.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">1.5</span><span class="p">,</span> +<a id="line-1548" name="line-1548"></a><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">2.0</span><span class="p">,</span><span class="w"> </span><span class="mf">3.0</span><span class="p">,</span><span class="w"> </span><span class="mf">4.0</span><span class="p">,</span><span class="w"> </span><span class="mf">5.0</span><span class="p">,</span><span class="w"> </span><span class="mf">6.0</span><span class="p">,</span><span class="w"> </span><span class="mf">7.0</span><span class="p">,</span><span class="w"> </span><span class="mf">8.0</span><span class="p">,</span><span class="w"> </span><span class="mf">9.0</span><span class="p">,</span><span class="w"> </span><span class="mf">10.0</span><span class="p">,</span> +<a id="line-1549" name="line-1549"></a><span class="w"> </span><span class="mf">11.0</span><span class="p">,</span><span class="w"> </span><span class="mf">12.0</span><span class="p">,</span><span class="w"> </span><span class="mf">13.0</span><span class="p">,</span><span class="w"> </span><span class="mf">14.0</span><span class="p">,</span><span class="w"> </span><span class="mf">15.0</span><span class="p">,</span><span class="w"> </span><span class="mf">16.0</span><span class="p">,</span><span class="w"> </span><span class="mf">17.0</span><span class="p">,</span><span class="w"> </span><span class="mf">18.0</span><span class="p">,</span><span class="w"> </span><span class="mf">19.0</span><span class="p">,</span><span class="w"> </span><span class="mf">20.0</span> +<a id="line-1550" name="line-1550"></a><span class="p">};</span> +<a id="line-1551" name="line-1551"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_zoom_levels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">preferred_zoom_levels</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">));</span> +<a id="line-1552" name="line-1552"></a> +<a id="line-1553" name="line-1553"></a><span class="kt">void</span> +<a id="line-1554" name="line-1554"></a><span class="nf">eom_scroll_view_zoom_in</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">smooth</span><span class="p">)</span> +<a id="line-1555" name="line-1555"></a><span class="p">{</span> +<a id="line-1556" name="line-1556"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1557" name="line-1557"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom</span><span class="p">;</span> +<a id="line-1558" name="line-1558"></a> +<a id="line-1559" name="line-1559"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1560" name="line-1560"></a> +<a id="line-1561" name="line-1561"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1562" name="line-1562"></a> +<a id="line-1563" name="line-1563"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">smooth</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1564" name="line-1564"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-1565" name="line-1565"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1566" name="line-1566"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1567" name="line-1567"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-1568" name="line-1568"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-1569" name="line-1569"></a> +<a id="line-1570" name="line-1570"></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"><</span><span class="w"> </span><span class="n">n_zoom_levels</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1571" name="line-1571"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">preferred_zoom_levels</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span> +<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">DOUBLE_EQUAL_MAX_DIFF</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1573" name="line-1573"></a><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-1574" name="line-1574"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1575" name="line-1575"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1576" name="line-1576"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1577" name="line-1577"></a> +<a id="line-1578" name="line-1578"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">index</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1579" name="line-1579"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">;</span> +<a id="line-1580" name="line-1580"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1582" name="line-1582"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">preferred_zoom_levels</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">];</span> +<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1584" name="line-1584"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1585" name="line-1585"></a><span class="w"> </span><span class="n">set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1586" name="line-1586"></a> +<a id="line-1587" name="line-1587"></a><span class="p">}</span> +<a id="line-1588" name="line-1588"></a> +<a id="line-1589" name="line-1589"></a><span class="kt">void</span> +<a id="line-1590" name="line-1590"></a><span class="nf">eom_scroll_view_zoom_out</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">smooth</span><span class="p">)</span> +<a id="line-1591" name="line-1591"></a><span class="p">{</span> +<a id="line-1592" name="line-1592"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1593" name="line-1593"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom</span><span class="p">;</span> +<a id="line-1594" name="line-1594"></a> +<a id="line-1595" name="line-1595"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1596" name="line-1596"></a> +<a id="line-1597" name="line-1597"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1598" name="line-1598"></a> +<a id="line-1599" name="line-1599"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">smooth</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1600" name="line-1600"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-1601" name="line-1601"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1602" name="line-1602"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1603" name="line-1603"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-1604" name="line-1604"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-1605" name="line-1605"></a> +<a id="line-1606" name="line-1606"></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="n">n_zoom_levels</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="n">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="o">--</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1607" name="line-1607"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">preferred_zoom_levels</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span> +<a id="line-1608" name="line-1608"></a><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">DOUBLE_EQUAL_MAX_DIFF</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1611" name="line-1611"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1612" name="line-1612"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1613" name="line-1613"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">index</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1614" name="line-1614"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">;</span> +<a id="line-1615" name="line-1615"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1616" name="line-1616"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1617" name="line-1617"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">preferred_zoom_levels</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">];</span> +<a id="line-1618" name="line-1618"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1619" name="line-1619"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1620" name="line-1620"></a><span class="w"> </span><span class="n">set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1621" name="line-1621"></a><span class="p">}</span> +<a id="line-1622" name="line-1622"></a> +<a id="line-1623" name="line-1623"></a><span class="kt">void</span> +<a id="line-1624" name="line-1624"></a><span class="nf">eom_scroll_view_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1625" name="line-1625"></a><span class="p">{</span> +<a id="line-1626" name="line-1626"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1627" name="line-1627"></a> +<a id="line-1628" name="line-1628"></a><span class="w"> </span><span class="n">set_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1629" name="line-1629"></a><span class="w"> </span><span class="n">check_scrollbar_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1630" name="line-1630"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1631" name="line-1631"></a><span class="p">}</span> +<a id="line-1632" name="line-1632"></a> +<a id="line-1633" name="line-1633"></a><span class="kt">void</span> +<a id="line-1634" name="line-1634"></a><span class="nf">eom_scroll_view_set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom</span><span class="p">)</span> +<a id="line-1635" name="line-1635"></a><span class="p">{</span> +<a id="line-1636" name="line-1636"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1637" name="line-1637"></a> +<a id="line-1638" name="line-1638"></a><span class="w"> </span><span class="n">set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1639" name="line-1639"></a><span class="p">}</span> +<a id="line-1640" name="line-1640"></a> +<a id="line-1641" name="line-1641"></a><span class="kt">double</span> +<a id="line-1642" name="line-1642"></a><span class="nf">eom_scroll_view_get_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1643" name="line-1643"></a><span class="p">{</span> +<a id="line-1644" name="line-1644"></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">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-1645" name="line-1645"></a> +<a id="line-1646" name="line-1646"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">;</span> +<a id="line-1647" name="line-1647"></a><span class="p">}</span> +<a id="line-1648" name="line-1648"></a> +<a id="line-1649" name="line-1649"></a><span class="n">gboolean</span> +<a id="line-1650" name="line-1650"></a><span class="nf">eom_scroll_view_get_zoom_is_min</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1651" name="line-1651"></a><span class="p">{</span> +<a id="line-1652" name="line-1652"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1653" name="line-1653"></a> +<a id="line-1654" name="line-1654"></a><span class="w"> </span><span class="n">set_minimum_zoom_factor</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1655" name="line-1655"></a> +<a id="line-1656" name="line-1656"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">MIN_ZOOM_FACTOR</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-1657" name="line-1657"></a><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">min_zoom</span><span class="p">);</span> +<a id="line-1658" name="line-1658"></a><span class="p">}</span> +<a id="line-1659" name="line-1659"></a> +<a id="line-1660" name="line-1660"></a><span class="n">gboolean</span> +<a id="line-1661" name="line-1661"></a><span class="nf">eom_scroll_view_get_zoom_is_max</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1662" name="line-1662"></a><span class="p">{</span> +<a id="line-1663" name="line-1663"></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">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1664" name="line-1664"></a> +<a id="line-1665" name="line-1665"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">MAX_ZOOM_FACTOR</span><span class="p">);</span> +<a id="line-1666" name="line-1666"></a><span class="p">}</span> +<a id="line-1667" name="line-1667"></a> +<a id="line-1668" name="line-1668"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1669" name="line-1669"></a><span class="nf">display_next_frame_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">delay</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1670" name="line-1670"></a><span class="p">{</span> +<a id="line-1671" name="line-1671"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1672" name="line-1672"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1673" name="line-1673"></a> +<a id="line-1674" name="line-1674"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">))</span> +<a id="line-1675" name="line-1675"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1676" name="line-1676"></a> +<a id="line-1677" name="line-1677"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1678" name="line-1678"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1679" name="line-1679"></a> +<a id="line-1680" name="line-1680"></a><span class="w"> </span><span class="n">update_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1681" name="line-1681"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1682" name="line-1682"></a><span class="p">}</span> +<a id="line-1683" name="line-1683"></a> +<a id="line-1684" name="line-1684"></a><span class="kt">void</span> +<a id="line-1685" name="line-1685"></a><span class="nf">eom_scroll_view_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-1686" name="line-1686"></a><span class="p">{</span> +<a id="line-1687" name="line-1687"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1688" name="line-1688"></a> +<a id="line-1689" name="line-1689"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-1690" name="line-1690"></a> +<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1692" name="line-1692"></a> +<a id="line-1693" name="line-1693"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1694" name="line-1694"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1695" name="line-1695"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1696" name="line-1696"></a> +<a id="line-1697" name="line-1697"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1698" name="line-1698"></a><span class="w"> </span><span class="n">free_image_resources</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1699" name="line-1699"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1700" name="line-1700"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1701" name="line-1701"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1702" name="line-1702"></a> +<a id="line-1703" name="line-1703"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1704" name="line-1704"></a><span class="w"> </span><span class="n">eom_image_data_ref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-1705" name="line-1705"></a> +<a id="line-1706" name="line-1706"></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">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="n">update_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1708" name="line-1708"></a><span class="w"> </span><span class="n">set_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1709" name="line-1709"></a><span class="w"> </span><span class="n">check_scrollbar_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1710" name="line-1710"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1711" name="line-1711"></a> +<a id="line-1712" name="line-1712"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1713" name="line-1713"></a> +<a id="line-1714" name="line-1714"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-1715" name="line-1715"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">image_changed_cb</span><span class="p">),</span> +<a id="line-1716" name="line-1716"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1717" name="line-1717"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_is_animation</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1718" name="line-1718"></a><span class="w"> </span><span class="n">eom_image_start_animation</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-1719" name="line-1719"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">frame_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"next-frame"</span><span class="p">,</span> +<a id="line-1720" name="line-1720"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">display_next_frame_cb</span><span class="p">),</span> +<a id="line-1721" name="line-1721"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1722" name="line-1722"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1723" name="line-1723"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1724" name="line-1724"></a> +<a id="line-1725" name="line-1725"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-1726" name="line-1726"></a> +<a id="line-1727" name="line-1727"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="s">"image"</span><span class="p">);</span> +<a id="line-1728" name="line-1728"></a><span class="p">}</span> +<a id="line-1729" name="line-1729"></a> +<a id="line-1730" name="line-1730"></a><span class="cm">/**</span> +<a id="line-1731" name="line-1731"></a><span class="cm"> * eom_scroll_view_get_image:</span> +<a id="line-1732" name="line-1732"></a><span class="cm"> * @view: An #EomScrollView.</span> +<a id="line-1733" name="line-1733"></a><span class="cm"> *</span> +<a id="line-1734" name="line-1734"></a><span class="cm"> * Gets the the currently displayed #EomImage.</span> +<a id="line-1735" name="line-1735"></a><span class="cm"> *</span> +<a id="line-1736" name="line-1736"></a><span class="cm"> * Returns: (transfer full): An #EomImage.</span> +<a id="line-1737" name="line-1737"></a><span class="cm"> **/</span> +<a id="line-1738" name="line-1738"></a><span class="n">EomImage</span><span class="o">*</span> +<a id="line-1739" name="line-1739"></a><span class="nf">eom_scroll_view_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1740" name="line-1740"></a><span class="p">{</span> +<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">;</span> +<a id="line-1742" name="line-1742"></a> +<a id="line-1743" name="line-1743"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1744" name="line-1744"></a> +<a id="line-1745" name="line-1745"></a><span class="w"> </span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-1746" name="line-1746"></a> +<a id="line-1747" name="line-1747"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1748" name="line-1748"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-1749" name="line-1749"></a> +<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">img</span><span class="p">;</span> +<a id="line-1751" name="line-1751"></a><span class="p">}</span> +<a id="line-1752" name="line-1752"></a> +<a id="line-1753" name="line-1753"></a><span class="n">gboolean</span> +<a id="line-1754" name="line-1754"></a><span class="nf">eom_scroll_view_scrollbars_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1755" name="line-1755"></a><span class="p">{</span> +<a id="line-1756" name="line-1756"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">))</span> +<a id="line-1758" name="line-1758"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1759" name="line-1759"></a> +<a id="line-1760" name="line-1760"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1761" name="line-1761"></a><span class="p">}</span> +<a id="line-1762" name="line-1762"></a> +<a id="line-1763" name="line-1763"></a><span class="cm">/*===================================</span> +<a id="line-1764" name="line-1764"></a><span class="cm"> object creation/freeing</span> +<a id="line-1765" name="line-1765"></a><span class="cm"> ---------------------------------*/</span> +<a id="line-1766" name="line-1766"></a> +<a id="line-1767" name="line-1767"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1768" name="line-1768"></a><span class="nf">sv_string_to_rgba_mapping</span><span class="w"> </span><span class="p">(</span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-1769" name="line-1769"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">variant</span><span class="p">,</span> +<a id="line-1770" name="line-1770"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1771" name="line-1771"></a><span class="p">{</span> +<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">color</span><span class="p">;</span> +<a id="line-1773" name="line-1773"></a> +<a id="line-1774" name="line-1774"></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">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">variant</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE_STRING</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1775" name="line-1775"></a> +<a id="line-1776" name="line-1776"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_rgba_parse</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">variant</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1777" name="line-1777"></a><span class="w"> </span><span class="n">g_value_set_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">color</span><span class="p">);</span> +<a id="line-1778" name="line-1778"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1779" name="line-1779"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1780" name="line-1780"></a> +<a id="line-1781" name="line-1781"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1782" name="line-1782"></a><span class="p">}</span> +<a id="line-1783" name="line-1783"></a> +<a id="line-1784" name="line-1784"></a><span class="k">static</span><span class="w"> </span><span class="n">GVariant</span><span class="o">*</span> +<a id="line-1785" name="line-1785"></a><span class="nf">sv_rgba_to_string_mapping</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-1786" name="line-1786"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GVariantType</span><span class="w"> </span><span class="o">*</span><span class="n">expected_type</span><span class="p">,</span> +<a id="line-1787" name="line-1787"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1788" name="line-1788"></a><span class="p">{</span> +<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">variant</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1790" name="line-1790"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">;</span> +<a id="line-1791" name="line-1791"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">hex_val</span><span class="p">;</span> +<a id="line-1792" name="line-1792"></a> +<a id="line-1793" name="line-1793"></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">G_VALUE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_TYPE_RGBA</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1794" name="line-1794"></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">g_variant_type_equal</span><span class="w"> </span><span class="p">(</span><span class="n">expected_type</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE_STRING</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1795" name="line-1795"></a> +<a id="line-1796" name="line-1796"></a><span class="w"> </span><span class="n">color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-1797" name="line-1797"></a><span class="w"> </span><span class="n">hex_val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_rgba_to_string</span><span class="p">(</span><span class="n">color</span><span class="p">);</span> +<a id="line-1798" name="line-1798"></a><span class="w"> </span><span class="n">variant</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_new_string</span><span class="w"> </span><span class="p">(</span><span class="n">hex_val</span><span class="p">);</span> +<a id="line-1799" name="line-1799"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">hex_val</span><span class="p">);</span> +<a id="line-1800" name="line-1800"></a> +<a id="line-1801" name="line-1801"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">variant</span><span class="p">;</span> +<a id="line-1802" name="line-1802"></a><span class="p">}</span> +<a id="line-1803" name="line-1803"></a> +<a id="line-1804" name="line-1804"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1805" name="line-1805"></a><span class="nf">eom_scroll_view_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-1806" name="line-1806"></a><span class="p">{</span> +<a id="line-1807" name="line-1807"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">;</span> +<a id="line-1808" name="line-1808"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1809" name="line-1809"></a> +<a id="line-1810" name="line-1810"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_scroll_view_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1811" name="line-1811"></a><span class="w"> </span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_CONF_VIEW</span><span class="p">);</span> +<a id="line-1812" name="line-1812"></a> +<a id="line-1813" name="line-1813"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span> +<a id="line-1814" name="line-1814"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">min_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN_ZOOM_FACTOR</span><span class="p">;</span> +<a id="line-1815" name="line-1815"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ZOOM_MODE_FIT</span><span class="p">;</span> +<a id="line-1816" name="line-1816"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">upscale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1817" name="line-1817"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">interp_type_in</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CAIRO_FILTER_GOOD</span><span class="p">;</span> +<a id="line-1818" name="line-1818"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">interp_type_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CAIRO_FILTER_GOOD</span><span class="p">;</span> +<a id="line-1819" name="line-1819"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scroll_wheel_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1820" name="line-1820"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">IMAGE_VIEW_ZOOM_MULTIPLIER</span><span class="p">;</span> +<a id="line-1821" name="line-1821"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1822" name="line-1822"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1823" name="line-1823"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1824" name="line-1824"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">transp_style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_TRANSP_BACKGROUND</span><span class="p">;</span> +<a id="line-1825" name="line-1825"></a><span class="w"> </span><span class="n">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_rgba_parse</span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">transp_color</span><span class="p">,</span><span class="w"> </span><span class="n">CHECK_BLACK</span><span class="p">));</span> +<a id="line-1826" name="line-1826"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW_CURSOR_NORMAL</span><span class="p">;</span> +<a id="line-1827" name="line-1827"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1828" name="line-1828"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1829" name="line-1829"></a> +<a id="line-1830" name="line-1830"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_ADJUSTMENT</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_adjustment_new</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">));</span> +<a id="line-1831" name="line-1831"></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">-></span><span class="n">hadj</span><span class="p">,</span><span class="w"> </span><span class="s">"value_changed"</span><span class="p">,</span> +<a id="line-1832" name="line-1832"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment_changed_cb</span><span class="p">),</span> +<a id="line-1833" name="line-1833"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1834" name="line-1834"></a> +<a id="line-1835" name="line-1835"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scrollbar_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hadj</span><span class="p">);</span> +<a id="line-1836" name="line-1836"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_ADJUSTMENT</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_adjustment_new</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">));</span> +<a id="line-1837" name="line-1837"></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">-></span><span class="n">vadj</span><span class="p">,</span><span class="w"> </span><span class="s">"value_changed"</span><span class="p">,</span> +<a id="line-1838" name="line-1838"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment_changed_cb</span><span class="p">),</span> +<a id="line-1839" name="line-1839"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1840" name="line-1840"></a> +<a id="line-1841" name="line-1841"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scrollbar_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">vadj</span><span class="p">);</span> +<a id="line-1842" name="line-1842"></a><span class="w"> </span><span class="n">priv</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">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TYPE_DRAWING_AREA</span><span class="p">,</span> +<a id="line-1843" name="line-1843"></a><span class="w"> </span><span class="s">"can-focus"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-1844" name="line-1844"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1845" name="line-1845"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_scale_factor</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-1846" name="line-1846"></a> +<a id="line-1847" name="line-1847"></a><span class="w"> </span><span class="n">gtk_widget_add_events</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span> +<a id="line-1848" name="line-1848"></a><span class="w"> </span><span class="n">GDK_EXPOSURE_MASK</span> +<a id="line-1849" name="line-1849"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS_MASK</span> +<a id="line-1850" name="line-1850"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON_RELEASE_MASK</span> +<a id="line-1851" name="line-1851"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_POINTER_MOTION_MASK</span> +<a id="line-1852" name="line-1852"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_POINTER_MOTION_HINT_MASK</span> +<a id="line-1853" name="line-1853"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_SCROLL_MASK</span> +<a id="line-1854" name="line-1854"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_KEY_PRESS_MASK</span><span class="p">);</span> +<a id="line-1855" name="line-1855"></a> +<a id="line-1856" name="line-1856"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"configure_event"</span><span class="p">,</span> +<a id="line-1857" name="line-1857"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">display_size_change</span><span class="p">),</span> +<a id="line-1858" name="line-1858"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1859" name="line-1859"></a> +<a id="line-1860" name="line-1860"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"draw"</span><span class="p">,</span> +<a id="line-1861" name="line-1861"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">display_draw</span><span class="p">),</span> +<a id="line-1862" name="line-1862"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1863" name="line-1863"></a> +<a id="line-1864" name="line-1864"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"map_event"</span><span class="p">,</span> +<a id="line-1865" name="line-1865"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">display_map_event</span><span class="p">),</span> +<a id="line-1866" name="line-1866"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1867" name="line-1867"></a> +<a id="line-1868" name="line-1868"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"button_press_event"</span><span class="p">,</span> +<a id="line-1869" name="line-1869"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_button_press_event</span><span class="p">),</span> +<a id="line-1870" name="line-1870"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1871" name="line-1871"></a> +<a id="line-1872" name="line-1872"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"motion_notify_event"</span><span class="p">,</span> +<a id="line-1873" name="line-1873"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_motion_event</span><span class="p">),</span> +<a id="line-1874" name="line-1874"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1875" name="line-1875"></a> +<a id="line-1876" name="line-1876"></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">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"button_release_event"</span><span class="p">,</span> +<a id="line-1877" name="line-1877"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_button_release_event</span><span class="p">),</span> +<a id="line-1878" name="line-1878"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1879" name="line-1879"></a> +<a id="line-1880" name="line-1880"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"scroll_event"</span><span class="p">,</span> +<a id="line-1881" name="line-1881"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_scroll_event</span><span class="p">),</span> +<a id="line-1882" name="line-1882"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1883" name="line-1883"></a> +<a id="line-1884" name="line-1884"></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">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"focus_in_event"</span><span class="p">,</span> +<a id="line-1885" name="line-1885"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_focus_in_event</span><span class="p">),</span> +<a id="line-1886" name="line-1886"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1887" name="line-1887"></a> +<a id="line-1888" name="line-1888"></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">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"focus_out_event"</span><span class="p">,</span> +<a id="line-1889" name="line-1889"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_focus_out_event</span><span class="p">),</span> +<a id="line-1890" name="line-1890"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1891" name="line-1891"></a> +<a id="line-1892" name="line-1892"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"key_press_event"</span><span class="p">,</span> +<a id="line-1893" name="line-1893"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">display_key_press_event</span><span class="p">),</span> +<a id="line-1894" name="line-1894"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1895" name="line-1895"></a> +<a id="line-1896" name="line-1896"></a><span class="w"> </span><span class="n">gtk_drag_source_set</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_BUTTON1_MASK</span><span class="p">,</span> +<a id="line-1897" name="line-1897"></a><span class="w"> </span><span class="n">target_table</span><span class="p">,</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">target_table</span><span class="p">),</span> +<a id="line-1898" name="line-1898"></a><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="w"> </span><span class="o">|</span> +<a id="line-1899" name="line-1899"></a><span class="w"> </span><span class="n">GDK_ACTION_LINK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ACTION_ASK</span><span class="p">);</span> +<a id="line-1900" name="line-1900"></a> +<a id="line-1901" name="line-1901"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"drag-data-get"</span><span class="p">,</span> +<a id="line-1902" name="line-1902"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">view_on_drag_data_get_cb</span><span class="p">),</span> +<a id="line-1903" name="line-1903"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1904" name="line-1904"></a> +<a id="line-1905" name="line-1905"></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">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"drag-begin"</span><span class="p">,</span> +<a id="line-1906" name="line-1906"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">view_on_drag_begin_cb</span><span class="p">),</span> +<a id="line-1907" name="line-1907"></a><span class="w"> </span><span class="n">view</span><span class="p">);</span> +<a id="line-1908" name="line-1908"></a> +<a id="line-1909" name="line-1909"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span> +<a id="line-1910" name="line-1910"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-1911" name="line-1911"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1912" name="line-1912"></a><span class="w"> </span><span class="n">gtk_widget_set_vexpand</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1913" name="line-1913"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">,</span> +<a id="line-1914" name="line-1914"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-1915" name="line-1915"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">hbar</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1916" name="line-1916"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">,</span> +<a id="line-1917" name="line-1917"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-1918" name="line-1918"></a><span class="w"> </span><span class="n">gtk_widget_set_vexpand</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">vbar</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1919" name="line-1919"></a> +<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="n">g_settings_bind</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">EOM_CONF_VIEW_USE_BG_COLOR</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">,</span> +<a id="line-1921" name="line-1921"></a><span class="w"> </span><span class="s">"use-background-color"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">);</span> +<a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="n">g_settings_bind_with_mapping</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">EOM_CONF_VIEW_BACKGROUND_COLOR</span><span class="p">,</span> +<a id="line-1923" name="line-1923"></a><span class="w"> </span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"background-color"</span><span class="p">,</span> +<a id="line-1924" name="line-1924"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_DEFAULT</span><span class="p">,</span> +<a id="line-1925" name="line-1925"></a><span class="w"> </span><span class="n">sv_string_to_rgba_mapping</span><span class="p">,</span> +<a id="line-1926" name="line-1926"></a><span class="w"> </span><span class="n">sv_rgba_to_string_mapping</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1927" name="line-1927"></a><span class="w"> </span><span class="n">g_settings_bind</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">EOM_CONF_VIEW_EXTRAPOLATE</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">,</span> +<a id="line-1928" name="line-1928"></a><span class="w"> </span><span class="s">"antialiasing-in"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="n">g_settings_bind</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">EOM_CONF_VIEW_INTERPOLATE</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">,</span> +<a id="line-1930" name="line-1930"></a><span class="w"> </span><span class="s">"antialiasing-out"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-1931" name="line-1931"></a><span class="w"> </span><span class="n">g_settings_bind_with_mapping</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">EOM_CONF_VIEW_TRANS_COLOR</span><span class="p">,</span> +<a id="line-1932" name="line-1932"></a><span class="w"> </span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"transparency-color"</span><span class="p">,</span> +<a id="line-1933" name="line-1933"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">,</span> +<a id="line-1934" name="line-1934"></a><span class="w"> </span><span class="n">sv_string_to_rgba_mapping</span><span class="p">,</span> +<a id="line-1935" name="line-1935"></a><span class="w"> </span><span class="n">sv_rgba_to_string_mapping</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1936" name="line-1936"></a><span class="w"> </span><span class="n">g_settings_bind</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">EOM_CONF_VIEW_TRANSPARENCY</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="p">,</span> +<a id="line-1937" name="line-1937"></a><span class="w"> </span><span class="s">"transparency-style"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-1938" name="line-1938"></a> +<a id="line-1939" name="line-1939"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span> +<a id="line-1940" name="line-1940"></a> +<a id="line-1941" name="line-1941"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">override_bg_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1942" name="line-1942"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1943" name="line-1943"></a><span class="p">}</span> +<a id="line-1944" name="line-1944"></a> +<a id="line-1945" name="line-1945"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1946" name="line-1946"></a><span class="nf">eom_scroll_view_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-1947" name="line-1947"></a><span class="p">{</span> +<a id="line-1948" name="line-1948"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1949" name="line-1949"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1950" name="line-1950"></a> +<a id="line-1951" name="line-1951"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-1952" name="line-1952"></a> +<a id="line-1953" name="line-1953"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1954" name="line-1954"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1955" name="line-1955"></a> +<a id="line-1956" name="line-1956"></a><span class="w"> </span><span class="n">_clear_hq_redraw_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1957" name="line-1957"></a> +<a id="line-1958" name="line-1958"></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">-></span><span class="n">idle_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1959" name="line-1959"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">idle_id</span><span class="p">);</span> +<a id="line-1960" name="line-1960"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">idle_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1961" name="line-1961"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1962" name="line-1962"></a> +<a id="line-1963" name="line-1963"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">background_color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1964" name="line-1964"></a><span class="w"> </span><span class="n">gdk_rgba_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">background_color</span><span class="p">);</span> +<a id="line-1965" name="line-1965"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1966" name="line-1966"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1967" name="line-1967"></a> +<a id="line-1968" name="line-1968"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">override_bg_color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1969" name="line-1969"></a><span class="w"> </span><span class="n">gdk_rgba_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">override_bg_color</span><span class="p">);</span> +<a id="line-1970" name="line-1970"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">override_bg_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1971" name="line-1971"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1972" name="line-1972"></a> +<a id="line-1973" name="line-1973"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1974" name="line-1974"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="p">);</span> +<a id="line-1975" name="line-1975"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1976" name="line-1976"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1977" name="line-1977"></a> +<a id="line-1978" name="line-1978"></a><span class="w"> </span><span class="n">free_image_resources</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-1979" name="line-1979"></a> +<a id="line-1980" name="line-1980"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1981" name="line-1981"></a><span class="p">}</span> +<a id="line-1982" name="line-1982"></a> +<a id="line-1983" name="line-1983"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1984" name="line-1984"></a><span class="nf">eom_scroll_view_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-1985" name="line-1985"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-1986" name="line-1986"></a><span class="p">{</span> +<a id="line-1987" name="line-1987"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-1988" name="line-1988"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1989" name="line-1989"></a> +<a id="line-1990" name="line-1990"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-1991" name="line-1991"></a> +<a id="line-1992" name="line-1992"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1993" name="line-1993"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1994" name="line-1994"></a> +<a id="line-1995" name="line-1995"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1996" name="line-1996"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ANTIALIAS_IN</span><span class="p">:</span> +<a id="line-1997" name="line-1997"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1998" name="line-1998"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">filter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">interp_type_in</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">CAIRO_FILTER_NEAREST</span><span class="p">);</span> +<a id="line-1999" name="line-1999"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">filter</span><span class="p">);</span> +<a id="line-2000" name="line-2000"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2001" name="line-2001"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2002" name="line-2002"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ANTIALIAS_OUT</span><span class="p">:</span> +<a id="line-2003" name="line-2003"></a><span class="w"> </span><span class="p">{</span> +<a id="line-2004" name="line-2004"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">filter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">interp_type_out</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">CAIRO_FILTER_NEAREST</span><span class="p">);</span> +<a id="line-2005" name="line-2005"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">filter</span><span class="p">);</span> +<a id="line-2006" name="line-2006"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2007" name="line-2007"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2008" name="line-2008"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_USE_BG_COLOR</span><span class="p">:</span> +<a id="line-2009" name="line-2009"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">use_bg_color</span><span class="p">);</span> +<a id="line-2010" name="line-2010"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2011" name="line-2011"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_BACKGROUND_COLOR</span><span class="p">:</span> +<a id="line-2012" name="line-2012"></a><span class="w"> </span><span class="c1">//FIXME: This doesn't really handle the NULL color.</span> +<a id="line-2013" name="line-2013"></a><span class="w"> </span><span class="n">g_value_set_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_color</span><span class="p">);</span> +<a id="line-2014" name="line-2014"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2015" name="line-2015"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SCROLLWHEEL_ZOOM</span><span class="p">:</span> +<a id="line-2016" name="line-2016"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">scroll_wheel_zoom</span><span class="p">);</span> +<a id="line-2017" name="line-2017"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2018" name="line-2018"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TRANSPARENCY_STYLE</span><span class="p">:</span> +<a id="line-2019" name="line-2019"></a><span class="w"> </span><span class="n">g_value_set_enum</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">transp_style</span><span class="p">);</span> +<a id="line-2020" name="line-2020"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2021" name="line-2021"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ZOOM_MULTIPLIER</span><span class="p">:</span> +<a id="line-2022" name="line-2022"></a><span class="w"> </span><span class="n">g_value_set_double</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="p">);</span> +<a id="line-2023" name="line-2023"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2024" name="line-2024"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span> +<a id="line-2025" name="line-2025"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-2026" name="line-2026"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2027" name="line-2027"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-2028" name="line-2028"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-2029" name="line-2029"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2030" name="line-2030"></a><span class="p">}</span> +<a id="line-2031" name="line-2031"></a> +<a id="line-2032" name="line-2032"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2033" name="line-2033"></a><span class="nf">eom_scroll_view_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-2034" name="line-2034"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-2035" name="line-2035"></a><span class="p">{</span> +<a id="line-2036" name="line-2036"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-2037" name="line-2037"></a> +<a id="line-2038" name="line-2038"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-2039" name="line-2039"></a> +<a id="line-2040" name="line-2040"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-2041" name="line-2041"></a> +<a id="line-2042" name="line-2042"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2043" name="line-2043"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ANTIALIAS_IN</span><span class="p">:</span> +<a id="line-2044" name="line-2044"></a><span class="w"> </span><span class="n">eom_scroll_view_set_antialiasing_in</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-2045" name="line-2045"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2046" name="line-2046"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ANTIALIAS_OUT</span><span class="p">:</span> +<a id="line-2047" name="line-2047"></a><span class="w"> </span><span class="n">eom_scroll_view_set_antialiasing_out</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-2048" name="line-2048"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2049" name="line-2049"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_USE_BG_COLOR</span><span class="p">:</span> +<a id="line-2050" name="line-2050"></a><span class="w"> </span><span class="n">eom_scroll_view_set_use_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-2051" name="line-2051"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2052" name="line-2052"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_BACKGROUND_COLOR</span><span class="p">:</span> +<a id="line-2053" name="line-2053"></a><span class="w"> </span><span class="p">{</span> +<a id="line-2054" name="line-2054"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-2055" name="line-2055"></a><span class="w"> </span><span class="n">eom_scroll_view_set_background_color</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span> +<a id="line-2056" name="line-2056"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2057" name="line-2057"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2058" name="line-2058"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SCROLLWHEEL_ZOOM</span><span class="p">:</span> +<a id="line-2059" name="line-2059"></a><span class="w"> </span><span class="n">eom_scroll_view_set_scroll_wheel_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-2060" name="line-2060"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2061" name="line-2061"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TRANSP_COLOR</span><span class="p">:</span> +<a id="line-2062" name="line-2062"></a><span class="w"> </span><span class="n">eom_scroll_view_set_transparency_color</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-2063" name="line-2063"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2064" name="line-2064"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TRANSPARENCY_STYLE</span><span class="p">:</span> +<a id="line-2065" name="line-2065"></a><span class="w"> </span><span class="n">eom_scroll_view_set_transparency</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_enum</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-2066" name="line-2066"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2067" name="line-2067"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ZOOM_MULTIPLIER</span><span class="p">:</span> +<a id="line-2068" name="line-2068"></a><span class="w"> </span><span class="n">eom_scroll_view_set_zoom_multiplier</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_double</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-2069" name="line-2069"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2070" name="line-2070"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span> +<a id="line-2071" name="line-2071"></a><span class="w"> </span><span class="n">eom_scroll_view_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-2072" name="line-2072"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2073" name="line-2073"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-2074" name="line-2074"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-2075" name="line-2075"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2076" name="line-2076"></a><span class="p">}</span> +<a id="line-2077" name="line-2077"></a> +<a id="line-2078" name="line-2078"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2079" name="line-2079"></a><span class="nf">eom_scroll_view_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollViewClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-2080" name="line-2080"></a><span class="p">{</span> +<a id="line-2081" name="line-2081"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="p">;</span> +<a id="line-2082" name="line-2082"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="p">;</span> +<a id="line-2083" name="line-2083"></a> +<a id="line-2084" name="line-2084"></a><span class="w"> </span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-2085" name="line-2085"></a><span class="w"> </span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidgetClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-2086" name="line-2086"></a> +<a id="line-2087" name="line-2087"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_scroll_view_dispose</span><span class="p">;</span> +<a id="line-2088" name="line-2088"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_scroll_view_set_property</span><span class="p">;</span> +<a id="line-2089" name="line-2089"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_scroll_view_get_property</span><span class="p">;</span> +<a id="line-2090" name="line-2090"></a> +<a id="line-2091" name="line-2091"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2092" name="line-2092"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_ANTIALIAS_IN</span><span class="p">,</span> +<a id="line-2093" name="line-2093"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">"antialiasing-in"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-2094" name="line-2094"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2095" name="line-2095"></a> +<a id="line-2096" name="line-2096"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2097" name="line-2097"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_ANTIALIAS_OUT</span><span class="p">,</span> +<a id="line-2098" name="line-2098"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">"antialiasing-out"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-2099" name="line-2099"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2100" name="line-2100"></a> +<a id="line-2101" name="line-2101"></a><span class="w"> </span><span class="cm">/**</span> +<a id="line-2102" name="line-2102"></a><span class="cm"> * EomScrollView:background-color:</span> +<a id="line-2103" name="line-2103"></a><span class="cm"> *</span> +<a id="line-2104" name="line-2104"></a><span class="cm"> * This is the default background color used for painting the background</span> +<a id="line-2105" name="line-2105"></a><span class="cm"> * of the image view. If set to %NULL the color is determined by the</span> +<a id="line-2106" name="line-2106"></a><span class="cm"> * active GTK theme.</span> +<a id="line-2107" name="line-2107"></a><span class="cm"> */</span> +<a id="line-2108" name="line-2108"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2109" name="line-2109"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_BACKGROUND_COLOR</span><span class="p">,</span> +<a id="line-2110" name="line-2110"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">"background-color"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-2111" name="line-2111"></a><span class="w"> </span><span class="n">GDK_TYPE_RGBA</span><span class="p">,</span> +<a id="line-2112" name="line-2112"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2113" name="line-2113"></a> +<a id="line-2114" name="line-2114"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2115" name="line-2115"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_USE_BG_COLOR</span><span class="p">,</span> +<a id="line-2116" name="line-2116"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">"use-background-color"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-2117" name="line-2117"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2118" name="line-2118"></a> +<a id="line-2119" name="line-2119"></a><span class="w"> </span><span class="cm">/**</span> +<a id="line-2120" name="line-2120"></a><span class="cm"> * EomScrollView:zoom-multiplier:</span> +<a id="line-2121" name="line-2121"></a><span class="cm"> *</span> +<a id="line-2122" name="line-2122"></a><span class="cm"> * The current zoom factor is multiplied with this value + 1.0 when</span> +<a id="line-2123" name="line-2123"></a><span class="cm"> * scrolling with the scrollwheel to determine the next zoom factor.</span> +<a id="line-2124" name="line-2124"></a><span class="cm"> */</span> +<a id="line-2125" name="line-2125"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2126" name="line-2126"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_ZOOM_MULTIPLIER</span><span class="p">,</span> +<a id="line-2127" name="line-2127"></a><span class="w"> </span><span class="n">g_param_spec_double</span><span class="w"> </span><span class="p">(</span><span class="s">"zoom-multiplier"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-2128" name="line-2128"></a><span class="w"> </span><span class="o">-</span><span class="n">G_MAXDOUBLE</span><span class="p">,</span><span class="w"> </span><span class="n">G_MAXDOUBLE</span><span class="w"> </span><span class="mf">-1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.05</span><span class="p">,</span> +<a id="line-2129" name="line-2129"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2130" name="line-2130"></a> +<a id="line-2131" name="line-2131"></a><span class="w"> </span><span class="cm">/**</span> +<a id="line-2132" name="line-2132"></a><span class="cm"> * EomScrollView:scrollwheel-zoom:</span> +<a id="line-2133" name="line-2133"></a><span class="cm"> *</span> +<a id="line-2134" name="line-2134"></a><span class="cm"> * If %TRUE the scrollwheel will zoom the view, otherwise it will be</span> +<a id="line-2135" name="line-2135"></a><span class="cm"> * used for scrolling a zoomed image.</span> +<a id="line-2136" name="line-2136"></a><span class="cm"> */</span> +<a id="line-2137" name="line-2137"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2138" name="line-2138"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_SCROLLWHEEL_ZOOM</span><span class="p">,</span> +<a id="line-2139" name="line-2139"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">"scrollwheel-zoom"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-2140" name="line-2140"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2141" name="line-2141"></a> +<a id="line-2142" name="line-2142"></a><span class="w"> </span><span class="cm">/**</span> +<a id="line-2143" name="line-2143"></a><span class="cm"> * EomScrollView:image:</span> +<a id="line-2144" name="line-2144"></a><span class="cm"> *</span> +<a id="line-2145" name="line-2145"></a><span class="cm"> * This is the currently display #EomImage.</span> +<a id="line-2146" name="line-2146"></a><span class="cm"> */</span> +<a id="line-2147" name="line-2147"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2148" name="line-2148"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span> +<a id="line-2149" name="line-2149"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"image"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_TYPE_IMAGE</span><span class="p">,</span> +<a id="line-2150" name="line-2150"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2151" name="line-2151"></a> +<a id="line-2152" name="line-2152"></a><span class="w"> </span><span class="cm">/**</span> +<a id="line-2153" name="line-2153"></a><span class="cm"> * EomScrollView:transparency-color:</span> +<a id="line-2154" name="line-2154"></a><span class="cm"> *</span> +<a id="line-2155" name="line-2155"></a><span class="cm"> * This is the color used to fill the transparent parts of an image</span> +<a id="line-2156" name="line-2156"></a><span class="cm"> * if :transparency-style is set to use a custom color.</span> +<a id="line-2157" name="line-2157"></a><span class="cm"> */</span> +<a id="line-2158" name="line-2158"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2159" name="line-2159"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_TRANSP_COLOR</span><span class="p">,</span> +<a id="line-2160" name="line-2160"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">"transparency-color"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-2161" name="line-2161"></a><span class="w"> </span><span class="n">GDK_TYPE_RGBA</span><span class="p">,</span> +<a id="line-2162" name="line-2162"></a><span class="w"> </span><span class="n">G_PARAM_WRITABLE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2163" name="line-2163"></a> +<a id="line-2164" name="line-2164"></a><span class="w"> </span><span class="cm">/**</span> +<a id="line-2165" name="line-2165"></a><span class="cm"> * EomScrollView:transparency-style:</span> +<a id="line-2166" name="line-2166"></a><span class="cm"> *</span> +<a id="line-2167" name="line-2167"></a><span class="cm"> * Determines how to fill the shown image's transparent areas.</span> +<a id="line-2168" name="line-2168"></a><span class="cm"> */</span> +<a id="line-2169" name="line-2169"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-2170" name="line-2170"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_TRANSPARENCY_STYLE</span><span class="p">,</span> +<a id="line-2171" name="line-2171"></a><span class="w"> </span><span class="n">g_param_spec_enum</span><span class="w"> </span><span class="p">(</span><span class="s">"transparency-style"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-2172" name="line-2172"></a><span class="w"> </span><span class="n">EOM_TYPE_TRANSPARENCY_STYLE</span><span class="p">,</span> +<a id="line-2173" name="line-2173"></a><span class="w"> </span><span class="n">EOM_TRANSP_CHECKED</span><span class="p">,</span> +<a id="line-2174" name="line-2174"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-2175" name="line-2175"></a> +<a id="line-2176" name="line-2176"></a><span class="w"> </span><span class="n">view_signals</span><span class="w"> </span><span class="p">[</span><span class="n">SIGNAL_ZOOM_CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-2177" name="line-2177"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"zoom_changed"</span><span class="p">,</span> +<a id="line-2178" name="line-2178"></a><span class="w"> </span><span class="n">EOM_TYPE_SCROLL_VIEW</span><span class="p">,</span> +<a id="line-2179" name="line-2179"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-2180" name="line-2180"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollViewClass</span><span class="p">,</span><span class="w"> </span><span class="n">zoom_changed</span><span class="p">),</span> +<a id="line-2181" name="line-2181"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-2182" name="line-2182"></a><span class="w"> </span><span class="n">eom_marshal_VOID__DOUBLE</span><span class="p">,</span> +<a id="line-2183" name="line-2183"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-2184" name="line-2184"></a><span class="w"> </span><span class="n">G_TYPE_DOUBLE</span><span class="p">);</span> +<a id="line-2185" name="line-2185"></a> +<a id="line-2186" name="line-2186"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-></span><span class="n">size_allocate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_scroll_view_size_allocate</span><span class="p">;</span> +<a id="line-2187" name="line-2187"></a><span class="p">}</span> +<a id="line-2188" name="line-2188"></a> +<a id="line-2189" name="line-2189"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2190" name="line-2190"></a><span class="nf">view_on_drag_begin_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-2191" name="line-2191"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-2192" name="line-2192"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2193" name="line-2193"></a><span class="p">{</span> +<a id="line-2194" name="line-2194"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-2195" name="line-2195"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-2196" name="line-2196"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnail</span><span class="p">;</span> +<a id="line-2197" name="line-2197"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-2198" name="line-2198"></a> +<a id="line-2199" name="line-2199"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2200" name="line-2200"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-2201" name="line-2201"></a> +<a id="line-2202" name="line-2202"></a><span class="w"> </span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-2203" name="line-2203"></a> +<a id="line-2204" name="line-2204"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2205" name="line-2205"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">;</span> +<a id="line-2206" name="line-2206"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scale</span><span class="p">;</span> +<a id="line-2207" name="line-2207"></a><span class="w"> </span><span class="n">gtk_drag_set_icon_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">thumbnail</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="o">/</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="o">/</span><span class="mi">2</span><span class="p">);</span> +<a id="line-2208" name="line-2208"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">);</span> +<a id="line-2209" name="line-2209"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2210" name="line-2210"></a><span class="p">}</span> +<a id="line-2211" name="line-2211"></a> +<a id="line-2212" name="line-2212"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2213" name="line-2213"></a><span class="nf">view_on_drag_data_get_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-2214" name="line-2214"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">drag_context</span><span class="p">,</span> +<a id="line-2215" name="line-2215"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">,</span> +<a id="line-2216" name="line-2216"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span> +<a id="line-2217" name="line-2217"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-2218" name="line-2218"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2219" name="line-2219"></a><span class="p">{</span> +<a id="line-2220" name="line-2220"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-2221" name="line-2221"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-2222" name="line-2222"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uris</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span> +<a id="line-2223" name="line-2223"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-2224" name="line-2224"></a> +<a id="line-2225" name="line-2225"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2226" name="line-2226"></a> +<a id="line-2227" name="line-2227"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-2228" name="line-2228"></a> +<a id="line-2229" name="line-2229"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-2230" name="line-2230"></a><span class="w"> </span><span class="n">uris</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-2231" name="line-2231"></a><span class="w"> </span><span class="n">uris</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="nb">NULL</span><span class="p">;</span> +<a id="line-2232" name="line-2232"></a> +<a id="line-2233" name="line-2233"></a><span class="w"> </span><span class="n">gtk_selection_data_set_uris</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">uris</span><span class="p">);</span> +<a id="line-2234" name="line-2234"></a> +<a id="line-2235" name="line-2235"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> +<a id="line-2236" name="line-2236"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-2237" name="line-2237"></a><span class="p">}</span> +<a id="line-2238" name="line-2238"></a> +<a id="line-2239" name="line-2239"></a><span class="n">GtkWidget</span><span class="o">*</span> +<a id="line-2240" name="line-2240"></a><span class="nf">eom_scroll_view_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-2241" name="line-2241"></a><span class="p">{</span> +<a id="line-2242" name="line-2242"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">;</span> +<a id="line-2243" name="line-2243"></a> +<a id="line-2244" name="line-2244"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_SCROLL_VIEW</span><span class="p">,</span> +<a id="line-2245" name="line-2245"></a><span class="w"> </span><span class="s">"can-focus"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-2246" name="line-2246"></a><span class="w"> </span><span class="s">"row-homogeneous"</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-2247" name="line-2247"></a><span class="w"> </span><span class="s">"column-homogeneous"</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-2248" name="line-2248"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2249" name="line-2249"></a> +<a id="line-2250" name="line-2250"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">widget</span><span class="p">;</span> +<a id="line-2251" name="line-2251"></a><span class="p">}</span> +<a id="line-2252" name="line-2252"></a> +<a id="line-2253" name="line-2253"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-2254" name="line-2254"></a><span class="nf">view_on_button_press_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-2255" name="line-2255"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2256" name="line-2256"></a><span class="p">{</span> +<a id="line-2257" name="line-2257"></a><span class="w"> </span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-2258" name="line-2258"></a> +<a id="line-2259" name="line-2259"></a><span class="w"> </span><span class="cm">/* Ignore double-clicks and triple-clicks */</span> +<a id="line-2260" name="line-2260"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS</span><span class="p">)</span> +<a id="line-2261" name="line-2261"></a><span class="w"> </span><span class="p">{</span> +<a id="line-2262" name="line-2262"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span> +<a id="line-2263" name="line-2263"></a><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkEvent</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-2264" name="line-2264"></a> +<a id="line-2265" name="line-2265"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-2266" name="line-2266"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2267" name="line-2267"></a> +<a id="line-2268" name="line-2268"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2269" name="line-2269"></a><span class="p">}</span> +<a id="line-2270" name="line-2270"></a> +<a id="line-2271" name="line-2271"></a><span class="kt">void</span> +<a id="line-2272" name="line-2272"></a><span class="nf">eom_scroll_view_set_popup</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span> +<a id="line-2273" name="line-2273"></a><span class="w"> </span><span class="n">GtkMenu</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">)</span> +<a id="line-2274" name="line-2274"></a><span class="p">{</span> +<a id="line-2275" name="line-2275"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-2276" name="line-2276"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2277" name="line-2277"></a> +<a id="line-2278" name="line-2278"></a><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span> +<a id="line-2279" name="line-2279"></a> +<a id="line-2280" name="line-2280"></a><span class="w"> </span><span class="n">gtk_menu_attach_to_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span> +<a id="line-2281" name="line-2281"></a><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span> +<a id="line-2282" name="line-2282"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2283" name="line-2283"></a> +<a id="line-2284" name="line-2284"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"button_press_event"</span><span class="p">,</span> +<a id="line-2285" name="line-2285"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">view_on_button_press_event_cb</span><span class="p">),</span> +<a id="line-2286" name="line-2286"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2287" name="line-2287"></a><span class="p">}</span> +<a id="line-2288" name="line-2288"></a> +<a id="line-2289" name="line-2289"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-2290" name="line-2290"></a><span class="nf">_eom_gdk_rgba_equal0</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">)</span> +<a id="line-2291" name="line-2291"></a><span class="p">{</span> +<a id="line-2292" name="line-2292"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2293" name="line-2293"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">b</span><span class="p">);</span> +<a id="line-2294" name="line-2294"></a> +<a id="line-2295" name="line-2295"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gdk_rgba_equal</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">);</span> +<a id="line-2296" name="line-2296"></a><span class="p">}</span> +<a id="line-2297" name="line-2297"></a> +<a id="line-2298" name="line-2298"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-2299" name="line-2299"></a><span class="nf">_eom_replace_gdk_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">**</span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">)</span> +<a id="line-2300" name="line-2300"></a><span class="p">{</span> +<a id="line-2301" name="line-2301"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">;</span> +<a id="line-2302" name="line-2302"></a> +<a id="line-2303" name="line-2303"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_gdk_rgba_equal0</span><span class="w"> </span><span class="p">(</span><span class="n">old</span><span class="p">,</span><span class="w"> </span><span class="n">src</span><span class="p">))</span> +<a id="line-2304" name="line-2304"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2305" name="line-2305"></a> +<a id="line-2306" name="line-2306"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2307" name="line-2307"></a><span class="w"> </span><span class="n">gdk_rgba_free</span><span class="w"> </span><span class="p">(</span><span class="n">old</span><span class="p">);</span> +<a id="line-2308" name="line-2308"></a> +<a id="line-2309" name="line-2309"></a><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">gdk_rgba_copy</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2310" name="line-2310"></a> +<a id="line-2311" name="line-2311"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-2312" name="line-2312"></a><span class="p">}</span> +<a id="line-2313" name="line-2313"></a> +<a id="line-2314" name="line-2314"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2315" name="line-2315"></a><span class="nf">_eom_scroll_view_update_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-2316" name="line-2316"></a><span class="p">{</span> +<a id="line-2317" name="line-2317"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2318" name="line-2318"></a> +<a id="line-2319" name="line-2319"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">transp_style</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_TRANSP_BACKGROUND</span> +<a id="line-2320" name="line-2320"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2321" name="line-2321"></a><span class="w"> </span><span class="cm">/* Delete the SVG background to have it recreated with</span> +<a id="line-2322" name="line-2322"></a><span class="cm"> * the correct color during the next SVG redraw */</span> +<a id="line-2323" name="line-2323"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="p">);</span> +<a id="line-2324" name="line-2324"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">background_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2325" name="line-2325"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2326" name="line-2326"></a> +<a id="line-2327" name="line-2327"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">);</span> +<a id="line-2328" name="line-2328"></a><span class="p">}</span> +<a id="line-2329" name="line-2329"></a> +<a id="line-2330" name="line-2330"></a><span class="kt">void</span> +<a id="line-2331" name="line-2331"></a><span class="nf">eom_scroll_view_set_background_color</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span> +<a id="line-2332" name="line-2332"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span> +<a id="line-2333" name="line-2333"></a><span class="p">{</span> +<a id="line-2334" name="line-2334"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-2335" name="line-2335"></a> +<a id="line-2336" name="line-2336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_replace_gdk_rgba</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">background_color</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">))</span> +<a id="line-2337" name="line-2337"></a><span class="w"> </span><span class="n">_eom_scroll_view_update_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-2338" name="line-2338"></a><span class="p">}</span> +<a id="line-2339" name="line-2339"></a> +<a id="line-2340" name="line-2340"></a><span class="kt">void</span> +<a id="line-2341" name="line-2341"></a><span class="nf">eom_scroll_view_override_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span> +<a id="line-2342" name="line-2342"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span> +<a id="line-2343" name="line-2343"></a><span class="p">{</span> +<a id="line-2344" name="line-2344"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-2345" name="line-2345"></a> +<a id="line-2346" name="line-2346"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_replace_gdk_rgba</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">override_bg_color</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">))</span> +<a id="line-2347" name="line-2347"></a><span class="w"> </span><span class="n">_eom_scroll_view_update_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-2348" name="line-2348"></a><span class="p">}</span> +<a id="line-2349" name="line-2349"></a> +<a id="line-2350" name="line-2350"></a><span class="kt">void</span> +<a id="line-2351" name="line-2351"></a><span class="nf">eom_scroll_view_set_use_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">use</span><span class="p">)</span> +<a id="line-2352" name="line-2352"></a><span class="p">{</span> +<a id="line-2353" name="line-2353"></a><span class="w"> </span><span class="n">EomScrollViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2354" name="line-2354"></a> +<a id="line-2355" name="line-2355"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-2356" name="line-2356"></a> +<a id="line-2357" name="line-2357"></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">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2358" name="line-2358"></a> +<a id="line-2359" name="line-2359"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">use</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">use_bg_color</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2360" name="line-2360"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">use_bg_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">use</span><span class="p">;</span> +<a id="line-2361" name="line-2361"></a> +<a id="line-2362" name="line-2362"></a><span class="w"> </span><span class="n">_eom_scroll_view_update_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-2363" name="line-2363"></a> +<a id="line-2364" name="line-2364"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="s">"use-background-color"</span><span class="p">);</span> +<a id="line-2365" name="line-2365"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2366" name="line-2366"></a><span class="p">}</span> +<a id="line-2367" name="line-2367"></a> +<a id="line-2368" name="line-2368"></a><span class="kt">void</span> +<a id="line-2369" name="line-2369"></a><span class="nf">eom_scroll_view_set_scroll_wheel_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span> +<a id="line-2370" name="line-2370"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">scroll_wheel_zoom</span><span class="p">)</span> +<a id="line-2371" name="line-2371"></a><span class="p">{</span> +<a id="line-2372" name="line-2372"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-2373" name="line-2373"></a> +<a id="line-2374" name="line-2374"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scroll_wheel_zoom</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">scroll_wheel_zoom</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2375" name="line-2375"></a><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">scroll_wheel_zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scroll_wheel_zoom</span><span class="p">;</span> +<a id="line-2376" name="line-2376"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="s">"scrollwheel-zoom"</span><span class="p">);</span> +<a id="line-2377" name="line-2377"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2378" name="line-2378"></a><span class="p">}</span> +<a id="line-2379" name="line-2379"></a> +<a id="line-2380" name="line-2380"></a><span class="kt">void</span> +<a id="line-2381" name="line-2381"></a><span class="nf">eom_scroll_view_set_zoom_multiplier</span><span class="w"> </span><span class="p">(</span><span class="n">EomScrollView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">,</span> +<a id="line-2382" name="line-2382"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">zoom_multiplier</span><span class="p">)</span> +<a id="line-2383" name="line-2383"></a><span class="p">{</span> +<a id="line-2384" name="line-2384"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-2385" name="line-2385"></a> +<a id="line-2386" name="line-2386"></a><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">zoom_multiplier</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">zoom_multiplier</span><span class="p">;</span> +<a id="line-2387" name="line-2387"></a> +<a id="line-2388" name="line-2388"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="s">"zoom-multiplier"</span><span class="p">);</span> +<a id="line-2389" name="line-2389"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/27.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/27.html new file mode 100644 index 0000000..84c8ef2 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/27.html @@ -0,0 +1,1415 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-sidebar.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-sidebar.c</p> +<a href="27.html#line-68"> unknownMacro 68</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye of Mate - Side bar</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2004 Red Hat, Inc.</span> +<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2007 The Free Software Foundation</span> +<a id="line-5" name="line-5"></a><span class="cm"> *</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-7" name="line-7"></a><span class="cm"> *</span> +<a id="line-8" name="line-8"></a><span class="cm"> * Based on evince code (shell/ev-sidebar.c) by:</span> +<a id="line-9" name="line-9"></a><span class="cm"> * - Jonathan Blandford <[email protected]></span> +<a id="line-10" name="line-10"></a><span class="cm"> *</span> +<a id="line-11" name="line-11"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-12" name="line-12"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-13" name="line-13"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-14" name="line-14"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-15" name="line-15"></a><span class="cm"> *</span> +<a id="line-16" name="line-16"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-17" name="line-17"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-18" name="line-18"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-19" name="line-19"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-20" name="line-20"></a><span class="cm"> *</span> +<a id="line-21" name="line-21"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-22" name="line-22"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-23" name="line-23"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-24" name="line-24"></a><span class="cm"> */</span> +<a id="line-25" name="line-25"></a> +<a id="line-26" name="line-26"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-28" name="line-28"></a><span class="cp">#endif</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></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">"eom-sidebar.h"</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PROP_CURRENT_PAGE</span> +<a id="line-39" name="line-39"></a><span class="p">};</span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">PAGE_COLUMN_TITLE</span><span class="p">,</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PAGE_COLUMN_MENU_ITEM</span><span class="p">,</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">PAGE_COLUMN_MAIN_WIDGET</span><span class="p">,</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">PAGE_COLUMN_NOTEBOOK_INDEX</span><span class="p">,</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PAGE_COLUMN_NUM_COLS</span> +<a id="line-47" name="line-47"></a><span class="p">};</span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">SIGNAL_PAGE_ADDED</span><span class="p">,</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">SIGNAL_PAGE_REMOVED</span><span class="p">,</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">SIGNAL_LAST</span> +<a id="line-53" name="line-53"></a><span class="p">};</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_LAST</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomSidebarPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">notebook</span><span class="p">;</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">select_button</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">arrow</span><span class="p">;</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">page_model</span><span class="p">;</span> +<a id="line-66" name="line-66"></a><span class="p">};</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="p">,</span><span class="w"> </span><span class="n">eom_sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_BOX</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-71" name="line-71"></a><span class="n">eom_sidebar_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-72" name="line-72"></a><span class="p">{</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">gtk_menu_detach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">));</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">}</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">);</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">}</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">destroy</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-86" name="line-86"></a><span class="p">}</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-89" name="line-89"></a><span class="n">eom_sidebar_select_page</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">)</span> +<a id="line-90" name="line-90"></a><span class="p">{</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">title</span><span class="p">;</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">index</span><span class="p">;</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">PAGE_COLUMN_TITLE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">title</span><span class="p">,</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">PAGE_COLUMN_NOTEBOOK_INDEX</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">index</span><span class="p">,</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</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_notebook_set_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span><span class="w"> </span><span class="n">index</span><span class="p">);</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">title</span><span class="p">);</span> +<a id="line-101" name="line-101"></a> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">title</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="p">}</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="kt">void</span> +<a id="line-106" name="line-106"></a><span class="n">eom_sidebar_set_page</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="p">,</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_widget</span><span class="p">)</span> +<a id="line-108" name="line-108"></a><span class="p">{</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="p">;</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">;</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">PAGE_COLUMN_MAIN_WIDGET</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">widget</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-120" name="line-120"></a> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">main_widget</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">eom_sidebar_select_page</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">}</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">}</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">),</span><span class="w"> </span><span class="s">"current-page"</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="p">}</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-135" name="line-135"></a><span class="n">eom_sidebar_get_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">)</span> +<a id="line-136" name="line-136"></a><span class="p">{</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">GtkNotebook</span><span class="w"> </span><span class="o">*</span><span class="n">notebook</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">);</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gtk_notebook_get_nth_page</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_notebook_get_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">));</span> +<a id="line-141" name="line-141"></a><span class="p">}</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="kt">void</span> +<a id="line-144" name="line-144"></a><span class="n">eom_sidebar_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-148" name="line-148"></a><span class="p">{</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CURRENT_PAGE</span><span class="p">:</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">eom_sidebar_set_page</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">}</span> +<a id="line-158" name="line-158"></a><span class="p">}</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-161" name="line-161"></a><span class="n">eom_sidebar_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-165" name="line-165"></a><span class="p">{</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CURRENT_PAGE</span><span class="p">:</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">eom_sidebar_get_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">));</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">}</span> +<a id="line-175" name="line-175"></a><span class="p">}</span> +<a id="line-176" name="line-176"></a> +<a id="line-177" name="line-177"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-178" name="line-178"></a><span class="n">eom_sidebar_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebarClass</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar_class</span><span class="p">)</span> +<a id="line-179" name="line-179"></a><span class="p">{</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">g_object_class</span><span class="p">;</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="p">;</span> +<a id="line-182" name="line-182"></a> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">g_object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_class</span><span class="p">);</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_class</span><span class="p">);</span> +<a id="line-185" name="line-185"></a> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-></span><span class="n">destroy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_sidebar_destroy</span><span class="p">;</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_sidebar_get_property</span><span class="p">;</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_sidebar_set_property</span><span class="p">;</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_class</span><span class="p">,</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">PROP_CURRENT_PAGE</span><span class="p">,</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"current-page"</span><span class="p">,</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="s">"Current page"</span><span class="p">,</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">"The currently visible page"</span><span class="p">,</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">,</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_PAGE_ADDED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"page-added"</span><span class="p">,</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">EOM_TYPE_SIDEBAR</span><span class="p">,</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_FIRST</span><span class="p">,</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebarClass</span><span class="p">,</span><span class="w"> </span><span class="n">page_added</span><span class="p">),</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__OBJECT</span><span class="p">,</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">);</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_PAGE_REMOVED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"page-removed"</span><span class="p">,</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">EOM_TYPE_SIDEBAR</span><span class="p">,</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_FIRST</span><span class="p">,</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebarClass</span><span class="p">,</span><span class="w"> </span><span class="n">page_removed</span><span class="p">),</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__OBJECT</span><span class="p">,</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">);</span> +<a id="line-219" name="line-219"></a><span class="p">}</span> +<a id="line-220" name="line-220"></a> +<a id="line-221" name="line-221"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-222" name="line-222"></a><span class="n">eom_sidebar_select_button_press_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-225" name="line-225"></a><span class="p">{</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">GtkRequisition</span><span class="w"> </span><span class="n">requisition</span><span class="p">;</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-231" name="line-231"></a> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">gtk_widget_get_preferred_size</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">requisition</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">,</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">,</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">requisition</span><span class="p">.</span><span class="n">width</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-239" name="line-239"></a> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-241" name="line-241"></a> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">widget</span><span class="p">,</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">GDK_GRAVITY_SOUTH_WEST</span><span class="p">,</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">GDK_GRAVITY_NORTH_WEST</span><span class="p">,</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkEvent</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-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">TRUE</span><span class="p">;</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">}</span> +<a id="line-252" name="line-252"></a> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-254" name="line-254"></a><span class="p">}</span> +<a id="line-255" name="line-255"></a> +<a id="line-256" name="line-256"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-257" name="line-257"></a><span class="n">eom_sidebar_select_button_key_press_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-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> +<a id="line-260" name="line-260"></a><span class="p">{</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-262" name="line-262"></a> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_space</span><span class="w"> </span><span class="o">||</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_KP_Space</span><span class="w"> </span><span class="o">||</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Return</span><span class="w"> </span><span class="o">||</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_KP_Enter</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-268" name="line-268"></a> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">widget</span><span class="p">,</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">GDK_GRAVITY_SOUTH_WEST</span><span class="p">,</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">GDK_GRAVITY_NORTH_WEST</span><span class="p">,</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkEvent</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-274" name="line-274"></a> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="p">}</span> +<a id="line-277" name="line-277"></a> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-279" name="line-279"></a><span class="p">}</span> +<a id="line-280" name="line-280"></a> +<a id="line-281" name="line-281"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-282" name="line-282"></a><span class="n">eom_sidebar_close_clicked_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-284" name="line-284"></a><span class="p">{</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">));</span> +<a id="line-288" name="line-288"></a><span class="p">}</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-291" name="line-291"></a><span class="n">eom_sidebar_menu_deactivate_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-293" name="line-293"></a><span class="p">{</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_button</span><span class="p">;</span> +<a id="line-295" name="line-295"></a> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">menu_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-297" name="line-297"></a> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">menu_button</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-299" name="line-299"></a><span class="p">}</span> +<a id="line-300" name="line-300"></a> +<a id="line-301" name="line-301"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-302" name="line-302"></a><span class="n">eom_sidebar_menu_detach_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">GtkMenu</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">)</span> +<a id="line-304" name="line-304"></a><span class="p">{</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-306" name="line-306"></a> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-308" name="line-308"></a><span class="p">}</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-311" name="line-311"></a><span class="n">eom_sidebar_menu_item_activate_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-313" name="line-313"></a><span class="p">{</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="p">;</span> +<a id="line-318" name="line-318"></a> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">));</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-321" name="line-321"></a> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">PAGE_COLUMN_MENU_ITEM</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">item</span><span class="p">,</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</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">item</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">menu_item</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">eom_sidebar_select_page</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="p">}</span> +<a id="line-333" name="line-333"></a> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="p">}</span> +<a id="line-336" name="line-336"></a> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">),</span><span class="w"> </span><span class="s">"current-page"</span><span class="p">);</span> +<a id="line-338" name="line-338"></a><span class="p">}</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-341" name="line-341"></a><span class="n">eom_sidebar_update_arrow_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">)</span> +<a id="line-342" name="line-342"></a><span class="p">{</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">EomSidebarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sidebar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_pages</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_sidebar_get_n_pages</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-345" name="line-345"></a> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">gtk_widget_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">arrow</span><span class="p">),</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">n_pages</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-348" name="line-348"></a><span class="p">}</span> +<a id="line-349" name="line-349"></a> +<a id="line-350" name="line-350"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-351" name="line-351"></a><span class="n">eom_sidebar_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="p">)</span> +<a id="line-352" name="line-352"></a><span class="p">{</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">;</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">close_button</span><span class="p">;</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">select_hbox</span><span class="p">;</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">arrow</span><span class="p">;</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-358" name="line-358"></a> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_sidebar_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">);</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">gtk_style_context_add_class</span><span class="w"> </span><span class="p">(</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">)),</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">GTK_STYLE_CLASS_SIDEBAR</span><span class="p">);</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="cm">/* data model */</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="p">)</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">gtk_list_store_new</span><span class="w"> </span><span class="p">(</span><span class="n">PAGE_COLUMN_NUM_COLS</span><span class="p">,</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">,</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">,</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">,</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-372" name="line-372"></a> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="cm">/* top option menu */</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="s">"border-width"</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hbox</span><span class="p">;</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">),</span><span class="w"> </span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">);</span> +<a id="line-379" name="line-379"></a> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">select_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_button_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">gtk_button_set_relief</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">select_button</span><span class="p">),</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">GTK_RELIEF_NONE</span><span class="p">);</span> +<a id="line-383" name="line-383"></a> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">select_button</span><span class="p">,</span><span class="w"> </span><span class="s">"button_press_event"</span><span class="p">,</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_select_button_press_cb</span><span class="p">),</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="p">);</span> +<a id="line-387" name="line-387"></a> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">select_button</span><span class="p">,</span><span class="w"> </span><span class="s">"key_press_event"</span><span class="p">,</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_select_button_key_press_cb</span><span class="p">),</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="p">);</span> +<a id="line-391" name="line-391"></a> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">select_hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-393" name="line-393"></a> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">gtk_widget_set_name</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">"eom-sidebar-title"</span><span class="p">);</span> +<a id="line-396" name="line-396"></a> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">select_hbox</span><span class="p">),</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">label</span><span class="p">,</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-400" name="line-400"></a> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">label</span><span class="p">);</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">arrow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">"pan-down-symbolic"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">select_hbox</span><span class="p">),</span><span class="w"> </span><span class="n">arrow</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">arrow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">arrow</span><span class="p">;</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">gtk_widget_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">arrow</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-407" name="line-407"></a> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">select_button</span><span class="p">),</span><span class="w"> </span><span class="n">select_hbox</span><span class="p">);</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">select_hbox</span><span class="p">);</span> +<a id="line-410" name="line-410"></a> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">gtk_box_set_center_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">select_button</span><span class="p">);</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">select_button</span><span class="p">);</span> +<a id="line-413" name="line-413"></a> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">close_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-415" name="line-415"></a> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">gtk_button_set_relief</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">close_button</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_RELIEF_NONE</span><span class="p">);</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">close_button</span><span class="p">,</span><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_close_clicked_cb</span><span class="p">),</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="p">);</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">"window-close"</span><span class="p">,</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_MENU</span><span class="p">);</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">close_button</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-426" name="line-426"></a> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">close_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">close_button</span><span class="p">);</span> +<a id="line-429" name="line-429"></a> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-431" name="line-431"></a> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="s">"deactivate"</span><span class="p">,</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_menu_deactivate_cb</span><span class="p">),</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">select_button</span><span class="p">);</span> +<a id="line-435" name="line-435"></a> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">gtk_menu_attach_to_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">),</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">eom_sidebar_menu_detach_cb</span><span class="p">);</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">);</span> +<a id="line-441" name="line-441"></a> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_notebook_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-443" name="line-443"></a> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">gtk_notebook_set_show_border</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">gtk_notebook_set_show_tabs</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-446" name="line-446"></a> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">),</span><span class="w"> </span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">,</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-449" name="line-449"></a> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">);</span> +<a id="line-451" name="line-451"></a><span class="p">}</span> +<a id="line-452" name="line-452"></a> +<a id="line-453" name="line-453"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-454" name="line-454"></a><span class="n">eom_sidebar_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-455" name="line-455"></a><span class="p">{</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="p">;</span> +<a id="line-457" name="line-457"></a> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">eom_sidebar</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">EOM_TYPE_SIDEBAR</span><span class="p">,</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="s">"orientation"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-461" name="line-461"></a> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">eom_sidebar</span><span class="p">;</span> +<a id="line-463" name="line-463"></a><span class="p">}</span> +<a id="line-464" name="line-464"></a> +<a id="line-465" name="line-465"></a><span class="kt">void</span> +<a id="line-466" name="line-466"></a><span class="n">eom_sidebar_add_page</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="p">,</span> +<a id="line-467" name="line-467"></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">title</span><span class="p">,</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_widget</span><span class="p">)</span> +<a id="line-469" name="line-469"></a><span class="p">{</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">;</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label_title</span><span class="p">;</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">index</span><span class="p">;</span> +<a id="line-474" name="line-474"></a> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">));</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">main_widget</span><span class="p">));</span> +<a id="line-477" name="line-477"></a> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_notebook_append_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">main_widget</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-480" name="line-480"></a> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_item_new_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">title</span><span class="p">);</span> +<a id="line-482" name="line-482"></a> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_menu_item_activate_cb</span><span class="p">),</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">eom_sidebar</span><span class="p">);</span> +<a id="line-486" name="line-486"></a> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-488" name="line-488"></a> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-491" name="line-491"></a> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="cm">/* Insert and move to end */</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">gtk_list_store_insert_with_values</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">),</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">PAGE_COLUMN_TITLE</span><span class="p">,</span><span class="w"> </span><span class="n">title</span><span class="p">,</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">PAGE_COLUMN_MENU_ITEM</span><span class="p">,</span><span class="w"> </span><span class="n">menu_item</span><span class="p">,</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">PAGE_COLUMN_MAIN_WIDGET</span><span class="p">,</span><span class="w"> </span><span class="n">main_widget</span><span class="p">,</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">PAGE_COLUMN_NOTEBOOK_INDEX</span><span class="p">,</span><span class="w"> </span><span class="n">index</span><span class="p">,</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-500" name="line-500"></a> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">gtk_list_store_move_before</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">),</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-504" name="line-504"></a> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="cm">/* Set the first item added as active */</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">PAGE_COLUMN_TITLE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">label_title</span><span class="p">,</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">PAGE_COLUMN_NOTEBOOK_INDEX</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">index</span><span class="p">,</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-512" name="line-512"></a> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">gtk_menu_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">index</span><span class="p">);</span> +<a id="line-514" name="line-514"></a> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">label_title</span><span class="p">);</span> +<a id="line-516" name="line-516"></a> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">gtk_notebook_set_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">index</span><span class="p">);</span> +<a id="line-519" name="line-519"></a> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">label_title</span><span class="p">);</span> +<a id="line-521" name="line-521"></a> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">eom_sidebar_update_arrow_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">);</span> +<a id="line-523" name="line-523"></a> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_PAGE_ADDED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">main_widget</span><span class="p">);</span> +<a id="line-525" name="line-525"></a><span class="p">}</span> +<a id="line-526" name="line-526"></a> +<a id="line-527" name="line-527"></a><span class="kt">void</span> +<a id="line-528" name="line-528"></a><span class="n">eom_sidebar_remove_page</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_widget</span><span class="p">)</span> +<a id="line-529" name="line-529"></a><span class="p">{</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">;</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="p">;</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">index</span><span class="p">;</span> +<a id="line-534" name="line-534"></a> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">));</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">main_widget</span><span class="p">));</span> +<a id="line-537" name="line-537"></a> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-539" name="line-539"></a> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">PAGE_COLUMN_NOTEBOOK_INDEX</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">index</span><span class="p">,</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">PAGE_COLUMN_MENU_ITEM</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">menu_item</span><span class="p">,</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">PAGE_COLUMN_MAIN_WIDGET</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">widget</span><span class="p">,</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-546" name="line-546"></a> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">main_widget</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">,</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="p">}</span> +<a id="line-553" name="line-553"></a> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="p">}</span> +<a id="line-557" name="line-557"></a> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">gtk_notebook_remove_page</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">notebook</span><span class="p">),</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">index</span><span class="p">);</span> +<a id="line-561" name="line-561"></a> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-563" name="line-563"></a> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">gtk_list_store_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">),</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-566" name="line-566"></a> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">eom_sidebar_update_arrow_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">);</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_PAGE_REMOVED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">main_widget</span><span class="p">);</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="p">}</span> +<a id="line-571" name="line-571"></a><span class="p">}</span> +<a id="line-572" name="line-572"></a> +<a id="line-573" name="line-573"></a><span class="n">gint</span> +<a id="line-574" name="line-574"></a><span class="n">eom_sidebar_get_n_pages</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="p">)</span> +<a id="line-575" name="line-575"></a><span class="p">{</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-577" name="line-577"></a> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gtk_tree_model_iter_n_children</span><span class="w"> </span><span class="p">(</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-580" name="line-580"></a><span class="p">}</span> +<a id="line-581" name="line-581"></a> +<a id="line-582" name="line-582"></a><span class="n">gboolean</span> +<a id="line-583" name="line-583"></a><span class="n">eom_sidebar_is_empty</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">eom_sidebar</span><span class="p">)</span> +<a id="line-584" name="line-584"></a><span class="p">{</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-586" name="line-586"></a> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gtk_tree_model_iter_n_children</span><span class="w"> </span><span class="p">(</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_model</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-589" name="line-589"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/28.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/28.html new file mode 100644 index 0000000..8c020ee --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/28.html @@ -0,0 +1,529 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-statusbar.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-statusbar.c</p> +<a href="28.html#line-39"> unknownMacro 39</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye of Mate - Statusbar</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2000-2006 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Federico Mena-Quintero <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> * Jens Finke <[email protected]></span> +<a id="line-7" name="line-7"></a><span class="cm"> *</span> +<a id="line-8" name="line-8"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-9" name="line-9"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-10" name="line-10"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-11" name="line-11"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-12" name="line-12"></a><span class="cm"> *</span> +<a id="line-13" name="line-13"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-14" name="line-14"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-15" name="line-15"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-16" name="line-16"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-17" name="line-17"></a><span class="cm"> *</span> +<a id="line-18" name="line-18"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-19" name="line-19"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-20" name="line-20"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-21" name="line-21"></a><span class="cm"> */</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-25" name="line-25"></a><span class="cp">#endif</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">"eom-statusbar.h"</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"><string.h></span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomStatusbarPrivate</span> +<a id="line-34" name="line-34"></a><span class="p">{</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">progressbar</span><span class="p">;</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">img_num_label</span><span class="p">;</span> +<a id="line-37" name="line-37"></a><span class="p">};</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomStatusbar</span><span class="p">,</span><span class="w"> </span><span class="n">eom_statusbar</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_STATUSBAR</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-42" name="line-42"></a><span class="n">eom_statusbar_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomStatusbarClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-43" name="line-43"></a><span class="p">{</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="cm">/* empty */</span> +<a id="line-45" name="line-45"></a><span class="p">}</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-48" name="line-48"></a><span class="n">eom_statusbar_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomStatusbar</span><span class="w"> </span><span class="o">*</span><span class="n">statusbar</span><span class="p">)</span> +<a id="line-49" name="line-49"></a><span class="p">{</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">EomStatusbarPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">;</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_statusbar_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="p">);</span> +<a id="line-54" name="line-54"></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">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gtk_widget_set_margin_top</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gtk_widget_set_margin_bottom</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-58" name="line-58"></a> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">img_num_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">img_num_label</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">img_num_label</span><span class="p">);</span> +<a id="line-62" name="line-62"></a> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">img_num_label</span><span class="p">,</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">vbox</span><span class="p">,</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">progressbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_progress_bar_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">progressbar</span><span class="p">,</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">progressbar</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">);</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">progressbar</span><span class="p">);</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="p">}</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-94" name="line-94"></a><span class="n">eom_statusbar_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-95" name="line-95"></a><span class="p">{</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_STATUSBAR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-97" name="line-97"></a><span class="p">}</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="kt">void</span> +<a id="line-100" name="line-100"></a><span class="n">eom_statusbar_set_image_number</span><span class="w"> </span><span class="p">(</span><span class="n">EomStatusbar</span><span class="w"> </span><span class="o">*</span><span class="n">statusbar</span><span class="p">,</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num</span><span class="p">,</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">tot</span><span class="p">)</span> +<a id="line-103" name="line-103"></a><span class="p">{</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">msg</span><span class="p">;</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="p">));</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="cm">/* Hide number display if values don't make sense */</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">num</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">tot</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="cm">/* Translators: This string is displayed in the statusbar.</span> +<a id="line-113" name="line-113"></a><span class="cm"> * The first token is the image number, the second is total image</span> +<a id="line-114" name="line-114"></a><span class="cm"> * count.</span> +<a id="line-115" name="line-115"></a><span class="cm"> *</span> +<a id="line-116" name="line-116"></a><span class="cm"> * Translate to "%Id" if you want to use localized digits, or</span> +<a id="line-117" name="line-117"></a><span class="cm"> * translate to "%d" otherwise.</span> +<a id="line-118" name="line-118"></a><span class="cm"> *</span> +<a id="line-119" name="line-119"></a><span class="cm"> * Note that translating this doesn't guarantee that you get localized</span> +<a id="line-120" name="line-120"></a><span class="cm"> * digits. That needs support from your system and locale definition</span> +<a id="line-121" name="line-121"></a><span class="cm"> * too.*/</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">msg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"%d / %d"</span><span class="p">),</span><span class="w"> </span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">tot</span><span class="p">);</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">img_num_label</span><span class="p">),</span><span class="w"> </span><span class="n">msg</span><span class="p">);</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">msg</span><span class="p">);</span> +<a id="line-127" name="line-127"></a><span class="p">}</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="kt">void</span> +<a id="line-130" name="line-130"></a><span class="n">eom_statusbar_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">EomStatusbar</span><span class="w"> </span><span class="o">*</span><span class="n">statusbar</span><span class="p">,</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">progress</span><span class="p">)</span> +<a id="line-132" name="line-132"></a><span class="p">{</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="p">));</span> +<a id="line-134" name="line-134"></a> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">gtk_progress_bar_set_fraction</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PROGRESS_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">progressbar</span><span class="p">),</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">progress</span><span class="p">);</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">progress</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">progress</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">progressbar</span><span class="p">);</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">img_num_label</span><span class="p">);</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">progressbar</span><span class="p">);</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">statusbar</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">img_num_label</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">}</span> +<a id="line-145" name="line-145"></a><span class="p">}</span> +<a id="line-146" name="line-146"></a> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/29.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/29.html new file mode 100644 index 0000000..2b35119 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/29.html @@ -0,0 +1,2373 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-thumb-view.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-thumb-view.c</p> +<a href="29.html#line-90"> unknownMacro 90</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - Thumbnail View</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006-2008 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Claudio Saavedra <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-8" name="line-8"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-9" name="line-9"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-10" name="line-10"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-15" name="line-15"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-19" name="line-19"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-24" name="line-24"></a><span class="cp">#endif</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">"eom-thumb-view.h"</span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-list-store.h"</span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image.h"</span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-job-queue.h"</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-exif-util.h"</span> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libexif/exif-data.h></span> +<a id="line-34" name="line-34"></a><span class="cp">#endif</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span> +<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PROP_ORIENTATION</span> +<a id="line-44" name="line-44"></a><span class="p">};</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="cp">#define EOM_THUMB_VIEW_SPACING 0</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="k">static</span><span class="w"> </span><span class="n">EomImage</span><span class="o">*</span><span class="w"> </span><span class="nf">eom_thumb_view_get_image_from_path</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">);</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_thumb_view_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_thumb_view_update_columns</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">);</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-57" name="line-57"></a><span class="nf">thumbview_on_query_tooltip_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">keyboard_mode</span><span class="p">,</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">GtkTooltip</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip</span><span class="p">,</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-63" name="line-63"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-64" name="line-64"></a><span class="nf">thumbview_on_parent_set_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">old_parent</span><span class="p">,</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-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> +<a id="line-69" name="line-69"></a><span class="nf">thumbview_on_drag_data_get_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">drag_context</span><span class="p">,</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">,</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomThumbViewPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">;</span><span class="w"> </span><span class="cm">/* the first visible thumbnail */</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">;</span><span class="w"> </span><span class="cm">/* the last visible thumbnail */</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span><span class="w"> </span><span class="cm">/* a contextual menu for thumbnails */</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">GtkCellRenderer</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf_cell</span><span class="p">;</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">visible_range_changed_id</span><span class="p">;</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">GtkOrientation</span><span class="w"> </span><span class="n">orientation</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">image_add_id</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">image_removed_id</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="p">};</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="n">G_DEFINE_TYPE_WITH_CODE</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="p">,</span><span class="w"> </span><span class="n">eom_thumb_view</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_ICON_VIEW</span><span class="p">,</span> +<a id="line-90" name="line-90"></a><span class="hll"><span class="w"> </span><span class="n">G_IMPLEMENT_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TYPE_ORIENTABLE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span>\<span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_IMPLEMENT_INTERFACE is a macro then please configure it.</span> +</span><a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">G_ADD_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="p">));</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="cm">/* Drag 'n Drop */</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-96" name="line-96"></a><span class="nf">eom_thumb_view_constructed</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-97" name="line-97"></a><span class="p">{</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">;</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_thumb_view_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">constructed</span><span class="p">)</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_thumb_view_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">constructed</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">thumbview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf_cell</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_pixbuf_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">gtk_cell_layout_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf_cell</span><span class="p">,</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf_cell</span><span class="p">,</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="s">"height"</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="s">"width"</span><span class="p">,</span><span class="w"> </span><span class="mi">115</span><span class="p">,</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="s">"yalign"</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="s">"xalign"</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_attributes</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf_cell</span><span class="p">,</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="s">"pixbuf"</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_LIST_STORE_THUMBNAIL</span><span class="p">,</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">gtk_icon_view_set_selection_mode</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">GTK_SELECTION_MULTIPLE</span><span class="p">);</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">gtk_icon_view_set_column_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SPACING</span><span class="p">);</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">gtk_icon_view_set_row_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SPACING</span><span class="p">);</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="s">"has-tooltip"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="s">"query-tooltip"</span><span class="p">,</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_query_tooltip_cb</span><span class="p">),</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">start_thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">end_thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="s">"parent-set"</span><span class="p">,</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_parent_set_cb</span><span class="p">),</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">gtk_icon_view_enable_model_drag_source</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="w"> </span><span class="o">|</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="w"> </span><span class="o">|</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">GDK_ACTION_LINK</span><span class="w"> </span><span class="o">|</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">GDK_ACTION_ASK</span><span class="p">);</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">gtk_drag_source_add_uri_targets</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-153" name="line-153"></a> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="s">"drag-data-get"</span><span class="p">,</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_drag_data_get_cb</span><span class="p">),</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="p">}</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-160" name="line-160"></a><span class="nf">eom_thumb_view_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-161" name="line-161"></a><span class="p">{</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">EomThumbViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-164" name="line-164"></a> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visible_range_changed_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">visible_range_changed_id</span><span class="p">);</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">visible_range_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-169" name="line-169"></a> +<a id="line-170" name="line-170"></a><span class="cp">#if GLIB_CHECK_VERSION(2,62,0)</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">g_clear_signal_handler</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">image_add_id</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">g_clear_signal_handler</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">image_removed_id</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">}</span> +<a id="line-175" name="line-175"></a><span class="cp">#else</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-177" name="line-177"></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">-></span><span class="n">image_add_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_add_id</span><span class="p">);</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_add_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">}</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_removed_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_removed_id</span><span class="p">);</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_removed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="p">}</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="p">}</span> +<a id="line-187" name="line-187"></a><span class="cp">#endif</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_thumb_view_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-190" name="line-190"></a><span class="p">}</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-193" name="line-193"></a><span class="nf">eom_thumb_view_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-197" name="line-197"></a><span class="p">{</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="p">{</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ORIENTATION</span><span class="p">:</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_value_set_enum</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="p">}</span> +<a id="line-210" name="line-210"></a><span class="p">}</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-213" name="line-213"></a><span class="nf">eom_thumb_view_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-217" name="line-217"></a><span class="p">{</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="p">{</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ORIENTATION</span><span class="p">:</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_enum</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">eom_thumb_view_update_columns</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="p">}</span> +<a id="line-230" name="line-230"></a><span class="p">}</span> +<a id="line-231" name="line-231"></a> +<a id="line-232" name="line-232"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-233" name="line-233"></a><span class="nf">eom_thumb_view_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbViewClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-234" name="line-234"></a><span class="p">{</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">);</span> +<a id="line-236" name="line-236"></a> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">constructed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_constructed</span><span class="p">;</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_dispose</span><span class="p">;</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_property</span><span class="p">;</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_set_property</span><span class="p">;</span> +<a id="line-241" name="line-241"></a> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">g_object_class_override_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_ORIENTATION</span><span class="p">,</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="s">"orientation"</span><span class="p">);</span> +<a id="line-244" name="line-244"></a><span class="p">}</span> +<a id="line-245" name="line-245"></a> +<a id="line-246" name="line-246"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-247" name="line-247"></a><span class="nf">eom_thumb_view_clear_range</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">,</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">)</span> +<a id="line-250" name="line-250"></a><span class="p">{</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">)));</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">;</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-256" name="line-256"></a> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">start_thumb</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">);</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">start_thumb</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">;</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">),</span><span class="w"> </span><span class="n">thumb</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">eom_list_store_thumbnail_unset</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">}</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="p">}</span> +<a id="line-267" name="line-267"></a> +<a id="line-268" name="line-268"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-269" name="line-269"></a><span class="nf">eom_thumb_view_add_range</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">,</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">)</span> +<a id="line-272" name="line-272"></a><span class="p">{</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">)));</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">;</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">start_thumb</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">);</span> +<a id="line-280" name="line-280"></a> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">start_thumb</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">;</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">),</span><span class="w"> </span><span class="n">thumb</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">eom_list_store_thumbnail_set</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="p">}</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-288" name="line-288"></a><span class="p">}</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-291" name="line-291"></a><span class="nf">eom_thumb_view_update_visible_range</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">,</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">)</span> +<a id="line-294" name="line-294"></a><span class="p">{</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">EomThumbViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">old_start_thumb</span><span class="p">,</span><span class="w"> </span><span class="n">old_end_thumb</span><span class="p">;</span> +<a id="line-297" name="line-297"></a> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">old_start_thumb</span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">start_thumb</span><span class="p">;</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">old_end_thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">end_thumb</span><span class="p">;</span> +<a id="line-300" name="line-300"></a> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">start_thumb</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">old_start_thumb</span><span class="w"> </span><span class="o">&&</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">end_thumb</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">old_end_thumb</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="p">}</span> +<a id="line-305" name="line-305"></a> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old_start_thumb</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">)</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">eom_thumb_view_clear_range</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">old_start_thumb</span><span class="p">,</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">start_thumb</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">old_end_thumb</span><span class="p">));</span> +<a id="line-308" name="line-308"></a> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old_end_thumb</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">end_thumb</span><span class="p">)</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">eom_thumb_view_clear_range</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">end_thumb</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">old_start_thumb</span><span class="p">),</span><span class="w"> </span><span class="n">old_end_thumb</span><span class="p">);</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">eom_thumb_view_add_range</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">,</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">);</span> +<a id="line-313" name="line-313"></a> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">start_thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">start_thumb</span><span class="p">;</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">end_thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">end_thumb</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="p">}</span> +<a id="line-317" name="line-317"></a> +<a id="line-318" name="line-318"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-319" name="line-319"></a><span class="nf">visible_range_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">)</span> +<a id="line-320" name="line-320"></a><span class="p">{</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">path2</span><span class="p">;</span> +<a id="line-322" name="line-322"></a> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">visible_range_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-324" name="line-324"></a> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_icon_view_get_visible_range</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">path1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">path2</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="p">}</span> +<a id="line-328" name="line-328"></a> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path1</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">path1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_first</span><span class="w"> </span><span class="p">();</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="p">}</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_n_children</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">)),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">path2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">n_items</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="p">}</span> +<a id="line-336" name="line-336"></a> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">eom_thumb_view_update_visible_range</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_tree_path_get_indices</span><span class="w"> </span><span class="p">(</span><span class="n">path1</span><span class="p">)</span><span class="w"> </span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">gtk_tree_path_get_indices</span><span class="w"> </span><span class="p">(</span><span class="n">path2</span><span class="p">)</span><span class="w"> </span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path1</span><span class="p">);</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path2</span><span class="p">);</span> +<a id="line-342" name="line-342"></a> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-344" name="line-344"></a><span class="p">}</span> +<a id="line-345" name="line-345"></a> +<a id="line-346" name="line-346"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-347" name="line-347"></a><span class="nf">eom_thumb_view_visible_range_changed</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">)</span> +<a id="line-348" name="line-348"></a><span class="p">{</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">visible_range_changed_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-350" name="line-350"></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">visible_range_changed_cb</span><span class="p">,</span><span class="w"> </span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="p">}</span> +<a id="line-352" name="line-352"></a> +<a id="line-353" name="line-353"></a><span class="p">}</span> +<a id="line-354" name="line-354"></a> +<a id="line-355" name="line-355"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-356" name="line-356"></a><span class="nf">thumbview_on_visible_range_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-358" name="line-358"></a><span class="p">{</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">eom_thumb_view_visible_range_changed</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-360" name="line-360"></a><span class="p">}</span> +<a id="line-361" name="line-361"></a> +<a id="line-362" name="line-362"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-363" name="line-363"></a><span class="nf">thumbview_on_adjustment_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-365" name="line-365"></a><span class="p">{</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">eom_thumb_view_visible_range_changed</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="p">}</span> +<a id="line-368" name="line-368"></a> +<a id="line-369" name="line-369"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-370" name="line-370"></a><span class="nf">thumbview_on_parent_set_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">old_parent</span><span class="p">,</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-373" name="line-373"></a><span class="p">{</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">GtkScrolledWindow</span><span class="w"> </span><span class="o">*</span><span class="n">sw</span><span class="p">;</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">hadjustment</span><span class="p">;</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">vadjustment</span><span class="p">;</span> +<a id="line-378" name="line-378"></a> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">GTK_IS_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="p">}</span> +<a id="line-383" name="line-383"></a> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="cm">/* if we have been set to a ScrolledWindow, we connect to the callback</span> +<a id="line-385" name="line-385"></a><span class="cm"> to set and unset thumbnails. */</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">sw</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">);</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">hadjustment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scrolled_window_get_hadjustment</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">sw</span><span class="p">));</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">vadjustment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scrolled_window_get_vadjustment</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">sw</span><span class="p">));</span> +<a id="line-389" name="line-389"></a> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="cm">/* when scrolling */</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">g_signal_connect_data</span><span class="w"> </span><span class="p">(</span><span class="n">hadjustment</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_visible_range_changed_cb</span><span class="p">),</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">G_CONNECT_SWAPPED</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_CONNECT_AFTER</span><span class="p">);</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">g_signal_connect_data</span><span class="w"> </span><span class="p">(</span><span class="n">vadjustment</span><span class="p">,</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_visible_range_changed_cb</span><span class="p">),</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">G_CONNECT_SWAPPED</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_CONNECT_AFTER</span><span class="p">);</span> +<a id="line-397" name="line-397"></a> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="cm">/* when the adjustment is changed, ie. probably we have new images added. */</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">g_signal_connect_data</span><span class="w"> </span><span class="p">(</span><span class="n">hadjustment</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_adjustment_changed_cb</span><span class="p">),</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">G_CONNECT_SWAPPED</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_CONNECT_AFTER</span><span class="p">);</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">g_signal_connect_data</span><span class="w"> </span><span class="p">(</span><span class="n">vadjustment</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_adjustment_changed_cb</span><span class="p">),</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">G_CONNECT_SWAPPED</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_CONNECT_AFTER</span><span class="p">);</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="cm">/* when resizing the scrolled window */</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">g_signal_connect_swapped</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">sw</span><span class="p">),</span><span class="w"> </span><span class="s">"size-allocate"</span><span class="p">,</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_visible_range_changed_cb</span><span class="p">),</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-410" name="line-410"></a><span class="p">}</span> +<a id="line-411" name="line-411"></a> +<a id="line-412" name="line-412"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-413" name="line-413"></a><span class="nf">thumbview_on_button_press_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-415" name="line-415"></a><span class="p">{</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="cm">/* Ignore double-clicks and triple-clicks */</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS</span><span class="p">)</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="p">{</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_path_at_pos</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="p">);</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="p">}</span> +<a id="line-426" name="line-426"></a> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_icon_view_path_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">eom_thumb_view_get_n_selected</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">gtk_icon_view_unselect_all</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">gtk_icon_view_select_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">gtk_icon_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="p">}</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">eom_thumb_view_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-434" name="line-434"></a> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-436" name="line-436"></a> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="p">}</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-441" name="line-441"></a><span class="p">}</span> +<a id="line-442" name="line-442"></a> +<a id="line-443" name="line-443"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-444" name="line-444"></a><span class="nf">thumbview_on_drag_data_get_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">drag_context</span><span class="p">,</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">,</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-450" name="line-450"></a><span class="p">{</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">node</span><span class="p">;</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-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">uris</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-457" name="line-457"></a> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_selected_images</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_n_selected</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-460" name="line-460"></a> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">uris</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="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-462" name="line-462"></a> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="p">;</span><span class="w"> </span><span class="n">node</span><span class="w"> </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">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-465" name="line-465"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">uris</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="p">}</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">uris</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-471" name="line-471"></a> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">gtk_selection_data_set_uris</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">uris</span><span class="p">);</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">);</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span> +<a id="line-475" name="line-475"></a><span class="p">}</span> +<a id="line-476" name="line-476"></a> +<a id="line-477" name="line-477"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-478" name="line-478"></a><span class="nf">thumbview_get_tooltip_string</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-479" name="line-479"></a><span class="p">{</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">bytes</span><span class="p">;</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">type_str</span><span class="p">;</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mime_str</span><span class="p">;</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip_string</span><span class="p">;</span> +<a id="line-487" name="line-487"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">ExifData</span><span class="w"> </span><span class="o">*</span><span class="n">exif_data</span><span class="p">;</span> +<a id="line-489" name="line-489"></a><span class="cp">#endif</span> +<a id="line-490" name="line-490"></a> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_format_size</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_get_bytes</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-492" name="line-492"></a> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">);</span> +<a id="line-494" name="line-494"></a> +<a id="line-495" name="line-495"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="p">}</span> +<a id="line-504" name="line-504"></a> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">mime_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-506" name="line-506"></a> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">mime_str</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="p">}</span> +<a id="line-512" name="line-512"></a> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">type_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_content_type_get_description</span><span class="w"> </span><span class="p">(</span><span class="n">mime_str</span><span class="p">);</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-515" name="line-515"></a> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">-1</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">tooltip_string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="s">"<b><big>%s</big></b></span><span class="se">\n</span><span class="s">"</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="s">"%i x %i %s</span><span class="se">\n</span><span class="s">"</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="s">"%s</span><span class="se">\n</span><span class="s">"</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">height</span><span class="p">,</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">ngettext</span><span class="w"> </span><span class="p">(</span><span class="s">"pixel"</span><span class="p">,</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="s">"pixels"</span><span class="p">,</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">height</span><span class="p">),</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">bytes</span><span class="p">,</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">type_str</span><span class="p">);</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">tooltip_string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="s">"<b><big>%s</big></b></span><span class="se">\n</span><span class="s">"</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="s">"%s</span><span class="se">\n</span><span class="s">"</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">bytes</span><span class="p">,</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">type_str</span><span class="p">);</span> +<a id="line-536" name="line-536"></a> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="p">}</span> +<a id="line-538" name="line-538"></a> +<a id="line-539" name="line-539"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">exif_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">ExifData</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">eom_image_get_exif_info</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-541" name="line-541"></a> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">extra_info</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">date</span><span class="p">;</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="cm">/* The EXIF standard says that the DATE_TIME tag is</span> +<a id="line-545" name="line-545"></a><span class="cm"> * 20 bytes long. A 32-byte buffer should be large enough. */</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">time_buffer</span><span class="p">[</span><span class="mi">32</span><span class="p">];</span> +<a id="line-547" name="line-547"></a> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">date</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_exif_util_format_date</span><span class="w"> </span><span class="p">(</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">eom_exif_data_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_ORIGINAL</span><span class="p">,</span><span class="w"> </span><span class="n">time_buffer</span><span class="p">,</span><span class="w"> </span><span class="mi">32</span><span class="p">));</span> +<a id="line-550" name="line-550"></a> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">date</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">extra_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"</span><span class="se">\n</span><span class="s">%s %s"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Taken on"</span><span class="p">),</span><span class="w"> </span><span class="n">date</span><span class="p">);</span> +<a id="line-553" name="line-553"></a> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">tooltip_string</span><span class="p">,</span><span class="w"> </span><span class="n">extra_info</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-555" name="line-555"></a> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">date</span><span class="p">);</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">extra_info</span><span class="p">);</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tooltip_string</span><span class="p">);</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">tooltip_string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="p">}</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">);</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="p">}</span> +<a id="line-564" name="line-564"></a><span class="cp">#endif</span> +<a id="line-565" name="line-565"></a> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">type_str</span><span class="p">);</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">tooltip_string</span><span class="p">;</span> +<a id="line-570" name="line-570"></a><span class="p">}</span> +<a id="line-571" name="line-571"></a> +<a id="line-572" name="line-572"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-573" name="line-573"></a><span class="nf">on_data_loaded_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-574" name="line-574"></a><span class="p">{</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">job</span><span class="o">-></span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">gtk_tooltip_trigger_tooltip_query</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="p">());</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="p">}</span> +<a id="line-578" name="line-578"></a><span class="p">}</span> +<a id="line-579" name="line-579"></a> +<a id="line-580" name="line-580"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-581" name="line-581"></a><span class="nf">thumbview_on_query_tooltip_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">keyboard_mode</span><span class="p">,</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">GtkTooltip</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip</span><span class="p">,</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-587" name="line-587"></a><span class="p">{</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip_string</span><span class="p">;</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">EomImageData</span><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-592" name="line-592"></a> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_icon_view_get_tooltip_context</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">keyboard_mode</span><span class="p">,</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="p">}</span> +<a id="line-598" name="line-598"></a> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_image_from_path</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-602" name="line-602"></a> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="p">}</span> +<a id="line-606" name="line-606"></a> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">eom_image_get_metadata_status</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_IMAGE_METADATA_NOT_READ</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_EXIF</span><span class="p">;</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="p">}</span> +<a id="line-611" name="line-611"></a> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_DIMENSION</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_DIMENSION</span><span class="p">;</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="p">}</span> +<a id="line-615" name="line-615"></a> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="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="p">{</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-618" name="line-618"></a> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_load_new</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_data_loaded_cb</span><span class="p">),</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">widget</span><span class="p">);</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="p">}</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">tooltip_string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbview_get_tooltip_string</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-631" name="line-631"></a> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tooltip_string</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="p">}</span> +<a id="line-635" name="line-635"></a> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">gtk_tooltip_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">tooltip</span><span class="p">,</span><span class="w"> </span><span class="n">tooltip_string</span><span class="p">);</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tooltip_string</span><span class="p">);</span> +<a id="line-638" name="line-638"></a> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-640" name="line-640"></a><span class="p">}</span> +<a id="line-641" name="line-641"></a> +<a id="line-642" name="line-642"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-643" name="line-643"></a><span class="nf">eom_thumb_view_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">)</span> +<a id="line-644" name="line-644"></a><span class="p">{</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-646" name="line-646"></a> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">visible_range_changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image_add_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image_removed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-650" name="line-650"></a><span class="p">}</span> +<a id="line-651" name="line-651"></a> +<a id="line-652" name="line-652"></a><span class="cm">/**</span> +<a id="line-653" name="line-653"></a><span class="cm"> * eom_thumb_view_new:</span> +<a id="line-654" name="line-654"></a><span class="cm"> *</span> +<a id="line-655" name="line-655"></a><span class="cm"> * Creates a new #EomThumbView object.</span> +<a id="line-656" name="line-656"></a><span class="cm"> *</span> +<a id="line-657" name="line-657"></a><span class="cm"> * Returns: a newly created #EomThumbView.</span> +<a id="line-658" name="line-658"></a><span class="cm"> **/</span> +<a id="line-659" name="line-659"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-660" name="line-660"></a><span class="nf">eom_thumb_view_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-661" name="line-661"></a><span class="p">{</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">;</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">thumbview</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">EOM_TYPE_THUMB_VIEW</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-665" name="line-665"></a> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-667" name="line-667"></a><span class="p">}</span> +<a id="line-668" name="line-668"></a> +<a id="line-669" name="line-669"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-670" name="line-670"></a><span class="nf">eom_thumb_view_update_columns</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-671" name="line-671"></a><span class="p">{</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">EomThumbViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-673" name="line-673"></a> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">));</span> +<a id="line-675" name="line-675"></a> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-677" name="line-677"></a> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">orientation</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">)</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">gtk_icon_view_set_columns</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">n_images</span><span class="p">);</span> +<a id="line-681" name="line-681"></a><span class="p">}</span> +<a id="line-682" name="line-682"></a> +<a id="line-683" name="line-683"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-684" name="line-684"></a><span class="nf">eom_thumb_view_row_inserted_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">tree_model</span><span class="p">,</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">,</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-688" name="line-688"></a><span class="p">{</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">EomThumbViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-690" name="line-690"></a> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">n_images</span><span class="o">++</span><span class="p">;</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">eom_thumb_view_update_columns</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-693" name="line-693"></a><span class="p">}</span> +<a id="line-694" name="line-694"></a> +<a id="line-695" name="line-695"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-696" name="line-696"></a><span class="nf">eom_thumb_view_row_deleted_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">tree_model</span><span class="p">,</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">)</span> +<a id="line-699" name="line-699"></a><span class="p">{</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">EomThumbViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">view</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-701" name="line-701"></a> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">n_images</span><span class="o">--</span><span class="p">;</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">eom_thumb_view_update_columns</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">);</span> +<a id="line-704" name="line-704"></a><span class="p">}</span> +<a id="line-705" name="line-705"></a> +<a id="line-706" name="line-706"></a><span class="cm">/**</span> +<a id="line-707" name="line-707"></a><span class="cm"> * eom_thumb_view_set_model:</span> +<a id="line-708" name="line-708"></a><span class="cm"> * @thumbview: A #EomThumbView.</span> +<a id="line-709" name="line-709"></a><span class="cm"> * @store: A #EomListStore.</span> +<a id="line-710" name="line-710"></a><span class="cm"> *</span> +<a id="line-711" name="line-711"></a><span class="cm"> * Sets the #EomListStore to be used with @thumbview. If an initial image</span> +<a id="line-712" name="line-712"></a><span class="cm"> * was set during @store creation, its thumbnail will be selected and visible.</span> +<a id="line-713" name="line-713"></a><span class="cm"> *</span> +<a id="line-714" name="line-714"></a><span class="cm"> **/</span> +<a id="line-715" name="line-715"></a><span class="kt">void</span> +<a id="line-716" name="line-716"></a><span class="nf">eom_thumb_view_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">)</span> +<a id="line-717" name="line-717"></a><span class="p">{</span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">index</span><span class="p">;</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">EomThumbViewPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">existing</span><span class="p">;</span> +<a id="line-721" name="line-721"></a> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">));</span> +<a id="line-724" name="line-724"></a> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-726" name="line-726"></a> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="n">existing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-728" name="line-728"></a> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">existing</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-730" name="line-730"></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">-></span><span class="n">image_add_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">existing</span><span class="p">,</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_add_id</span><span class="p">);</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="p">}</span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image_removed_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">existing</span><span class="p">,</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_removed_id</span><span class="p">);</span> +<a id="line-737" name="line-737"></a> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="p">}</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="p">}</span> +<a id="line-740" name="line-740"></a> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_add_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="s">"row-inserted"</span><span class="p">,</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_thumb_view_row_inserted_cb</span><span class="p">),</span> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_removed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="s">"row-deleted"</span><span class="p">,</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_thumb_view_row_deleted_cb</span><span class="p">),</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-747" name="line-747"></a> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">);</span> +<a id="line-749" name="line-749"></a> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_initial_pos</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">);</span> +<a id="line-751" name="line-751"></a> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">gtk_icon_view_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">));</span> +<a id="line-754" name="line-754"></a> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">eom_thumb_view_update_columns</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-756" name="line-756"></a> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">index</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">index</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">gtk_icon_view_select_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">gtk_icon_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">gtk_icon_view_scroll_to_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="p">}</span> +<a id="line-764" name="line-764"></a><span class="p">}</span> +<a id="line-765" name="line-765"></a> +<a id="line-766" name="line-766"></a><span class="cm">/**</span> +<a id="line-767" name="line-767"></a><span class="cm"> * eom_thumb_view_set_item_height:</span> +<a id="line-768" name="line-768"></a><span class="cm"> * @thumbview: A #EomThumbView.</span> +<a id="line-769" name="line-769"></a><span class="cm"> * @height: The desired height.</span> +<a id="line-770" name="line-770"></a><span class="cm"> *</span> +<a id="line-771" name="line-771"></a><span class="cm"> * Sets the height of each thumbnail in @thumbview.</span> +<a id="line-772" name="line-772"></a><span class="cm"> *</span> +<a id="line-773" name="line-773"></a><span class="cm"> **/</span> +<a id="line-774" name="line-774"></a><span class="kt">void</span> +<a id="line-775" name="line-775"></a><span class="nf">eom_thumb_view_set_item_height</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">)</span> +<a id="line-776" name="line-776"></a><span class="p">{</span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-778" name="line-778"></a> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf_cell</span><span class="p">,</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="s">"height"</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-782" name="line-782"></a><span class="p">}</span> +<a id="line-783" name="line-783"></a> +<a id="line-784" name="line-784"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-785" name="line-785"></a><span class="nf">eom_thumb_view_get_n_selected_helper</span><span class="w"> </span><span class="p">(</span><span class="n">GtkIconView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-788" name="line-788"></a><span class="p">{</span> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="cm">/* data is of type (guint *) */</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">guint</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="o">++</span><span class="p">;</span> +<a id="line-791" name="line-791"></a><span class="p">}</span> +<a id="line-792" name="line-792"></a> +<a id="line-793" name="line-793"></a><span class="cm">/**</span> +<a id="line-794" name="line-794"></a><span class="cm"> * eom_thumb_view_get_n_selected:</span> +<a id="line-795" name="line-795"></a><span class="cm"> * @thumbview: An #EomThumbView.</span> +<a id="line-796" name="line-796"></a><span class="cm"> *</span> +<a id="line-797" name="line-797"></a><span class="cm"> * Gets the number of images that are currently selected in @thumbview.</span> +<a id="line-798" name="line-798"></a><span class="cm"> *</span> +<a id="line-799" name="line-799"></a><span class="cm"> * Returns: the number of selected images in @thumbview.</span> +<a id="line-800" name="line-800"></a><span class="cm"> **/</span> +<a id="line-801" name="line-801"></a><span class="n">guint</span> +<a id="line-802" name="line-802"></a><span class="nf">eom_thumb_view_get_n_selected</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">)</span> +<a id="line-803" name="line-803"></a><span class="p">{</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">gtk_icon_view_selected_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">eom_thumb_view_get_n_selected_helper</span><span class="p">,</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">count</span><span class="p">));</span> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">count</span><span class="p">;</span> +<a id="line-809" name="line-809"></a><span class="p">}</span> +<a id="line-810" name="line-810"></a> +<a id="line-811" name="line-811"></a><span class="cm">/**</span> +<a id="line-812" name="line-812"></a><span class="cm"> * eom_thumb_view_get_image_from_path:</span> +<a id="line-813" name="line-813"></a><span class="cm"> * @thumbview: A #EomThumbView.</span> +<a id="line-814" name="line-814"></a><span class="cm"> * @path: A #GtkTreePath pointing to a #EomImage in the model for @thumbview.</span> +<a id="line-815" name="line-815"></a><span class="cm"> *</span> +<a id="line-816" name="line-816"></a><span class="cm"> * Gets the #EomImage stored in @thumbview's #EomListStore at the position indicated</span> +<a id="line-817" name="line-817"></a><span class="cm"> * by @path.</span> +<a id="line-818" name="line-818"></a><span class="cm"> *</span> +<a id="line-819" name="line-819"></a><span class="cm"> * Returns: (transfer full): A #EomImage.</span> +<a id="line-820" name="line-820"></a><span class="cm"> **/</span> +<a id="line-821" name="line-821"></a><span class="k">static</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span> +<a id="line-822" name="line-822"></a><span class="nf">eom_thumb_view_get_image_from_path</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">)</span> +<a id="line-823" name="line-823"></a><span class="p">{</span> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-827" name="line-827"></a> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">gtk_tree_model_get_iter</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-830" name="line-830"></a> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-834" name="line-834"></a> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-836" name="line-836"></a><span class="p">}</span> +<a id="line-837" name="line-837"></a> +<a id="line-838" name="line-838"></a><span class="cm">/**</span> +<a id="line-839" name="line-839"></a><span class="cm"> * eom_thumb_view_get_first_selected_image:</span> +<a id="line-840" name="line-840"></a><span class="cm"> * @thumbview: A #EomThumbView.</span> +<a id="line-841" name="line-841"></a><span class="cm"> *</span> +<a id="line-842" name="line-842"></a><span class="cm"> * Returns the first selected image. Note that the returned #EomImage</span> +<a id="line-843" name="line-843"></a><span class="cm"> * is not ensured to be really the first selected image in @thumbview, but</span> +<a id="line-844" name="line-844"></a><span class="cm"> * generally, it will be.</span> +<a id="line-845" name="line-845"></a><span class="cm"> *</span> +<a id="line-846" name="line-846"></a><span class="cm"> * Returns: (transfer full): A #EomImage.</span> +<a id="line-847" name="line-847"></a><span class="cm"> **/</span> +<a id="line-848" name="line-848"></a><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span> +<a id="line-849" name="line-849"></a><span class="nf">eom_thumb_view_get_first_selected_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">)</span> +<a id="line-850" name="line-850"></a><span class="p">{</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="cm">/* The returned list is not sorted! We need to find the</span> +<a id="line-852" name="line-852"></a><span class="cm"> smaller tree path value => tricky and expensive. Do we really need this?</span> +<a id="line-853" name="line-853"></a><span class="cm"> */</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_selected_items</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-857" name="line-857"></a> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="p">}</span> +<a id="line-861" name="line-861"></a> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-863" name="line-863"></a> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_image_from_path</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-865" name="line-865"></a> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="p">);</span> +<a id="line-867" name="line-867"></a> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-869" name="line-869"></a><span class="p">}</span> +<a id="line-870" name="line-870"></a> +<a id="line-871" name="line-871"></a><span class="cm">/**</span> +<a id="line-872" name="line-872"></a><span class="cm"> * eom_thumb_view_get_selected_images:</span> +<a id="line-873" name="line-873"></a><span class="cm"> * @thumbview: A #EomThumbView.</span> +<a id="line-874" name="line-874"></a><span class="cm"> *</span> +<a id="line-875" name="line-875"></a><span class="cm"> * Gets a list with the currently selected images. Note that a new reference is</span> +<a id="line-876" name="line-876"></a><span class="cm"> * hold for each image and the list must be freed with g_list_free().</span> +<a id="line-877" name="line-877"></a><span class="cm"> *</span> +<a id="line-878" name="line-878"></a><span class="cm"> * Returns: (element-type EomImage) (transfer full): A newly allocated list of #EomImage's.</span> +<a id="line-879" name="line-879"></a><span class="cm"> **/</span> +<a id="line-880" name="line-880"></a><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-881" name="line-881"></a><span class="nf">eom_thumb_view_get_selected_images</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">)</span> +<a id="line-882" name="line-882"></a><span class="p">{</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-885" name="line-885"></a> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-887" name="line-887"></a> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_selected_items</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-889" name="line-889"></a> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="p">;</span><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">item</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">eom_thumb_view_get_image_from_path</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">));</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="p">}</span> +<a id="line-895" name="line-895"></a> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">);</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span> +<a id="line-898" name="line-898"></a> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-900" name="line-900"></a><span class="p">}</span> +<a id="line-901" name="line-901"></a> +<a id="line-902" name="line-902"></a><span class="cm">/**</span> +<a id="line-903" name="line-903"></a><span class="cm"> * eom_thumb_view_set_current_image:</span> +<a id="line-904" name="line-904"></a><span class="cm"> * @thumbview: A #EomThumbView.</span> +<a id="line-905" name="line-905"></a><span class="cm"> * @image: The image to be selected.</span> +<a id="line-906" name="line-906"></a><span class="cm"> * @deselect_other: Whether to deselect currently selected images.</span> +<a id="line-907" name="line-907"></a><span class="cm"> *</span> +<a id="line-908" name="line-908"></a><span class="cm"> * Changes the status of a image, marking it as currently selected.</span> +<a id="line-909" name="line-909"></a><span class="cm"> * If @deselect_other is %TRUE, all other selected images will be</span> +<a id="line-910" name="line-910"></a><span class="cm"> * deselected.</span> +<a id="line-911" name="line-911"></a><span class="cm"> *</span> +<a id="line-912" name="line-912"></a><span class="cm"> **/</span> +<a id="line-913" name="line-913"></a><span class="kt">void</span> +<a id="line-914" name="line-914"></a><span class="nf">eom_thumb_view_set_current_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">deselect_other</span><span class="p">)</span> +<a id="line-916" name="line-916"></a><span class="p">{</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">;</span> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span> +<a id="line-920" name="line-920"></a> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">)));</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_pos_by_image</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">pos</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-924" name="line-924"></a> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="p">}</span> +<a id="line-928" name="line-928"></a> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">deselect_other</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="n">gtk_icon_view_unselect_all</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="p">}</span> +<a id="line-932" name="line-932"></a> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">gtk_icon_view_select_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">gtk_icon_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">gtk_icon_view_scroll_to_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-936" name="line-936"></a> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-938" name="line-938"></a><span class="p">}</span> +<a id="line-939" name="line-939"></a> +<a id="line-940" name="line-940"></a><span class="cm">/**</span> +<a id="line-941" name="line-941"></a><span class="cm"> * eom_thumb_view_select_single:</span> +<a id="line-942" name="line-942"></a><span class="cm"> * @thumbview: A #EomThumbView.</span> +<a id="line-943" name="line-943"></a><span class="cm"> * @change: A #EomThumbViewSelectionChange, describing the</span> +<a id="line-944" name="line-944"></a><span class="cm"> * desired selection change.</span> +<a id="line-945" name="line-945"></a><span class="cm"> *</span> +<a id="line-946" name="line-946"></a><span class="cm"> * Changes the current selection according to a single movement</span> +<a id="line-947" name="line-947"></a><span class="cm"> * described by #EomThumbViewSelectionChange. If there are no</span> +<a id="line-948" name="line-948"></a><span class="cm"> * thumbnails currently selected, one is selected according to the</span> +<a id="line-949" name="line-949"></a><span class="cm"> * natural selection according to the #EomThumbViewSelectionChange</span> +<a id="line-950" name="line-950"></a><span class="cm"> * used, p.g., when %EOM_THUMB_VIEW_SELECT_RIGHT is the selected change,</span> +<a id="line-951" name="line-951"></a><span class="cm"> * the first thumbnail will be selected.</span> +<a id="line-952" name="line-952"></a><span class="cm"> *</span> +<a id="line-953" name="line-953"></a><span class="cm"> **/</span> +<a id="line-954" name="line-954"></a><span class="kt">void</span> +<a id="line-955" name="line-955"></a><span class="nf">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">EomThumbViewSelectionChange</span><span class="w"> </span><span class="n">change</span><span class="p">)</span> +<a id="line-957" name="line-957"></a><span class="p">{</span> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-959" name="line-959"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_items</span><span class="p">;</span> +<a id="line-962" name="line-962"></a> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-964" name="line-964"></a> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-966" name="line-966"></a> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">n_items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">));</span> +<a id="line-968" name="line-968"></a> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_items</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="p">}</span> +<a id="line-972" name="line-972"></a> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_thumb_view_get_n_selected</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">change</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_CURRENT</span><span class="p">:</span> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_RIGHT</span><span class="p">:</span> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_FIRST</span><span class="p">:</span> +<a id="line-979" name="line-979"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_first</span><span class="w"> </span><span class="p">();</span> +<a id="line-980" name="line-980"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_LEFT</span><span class="p">:</span> +<a id="line-982" name="line-982"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_LAST</span><span class="p">:</span> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">n_items</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-984" name="line-984"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-985" name="line-985"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_RANDOM</span><span class="p">:</span> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">g_random_int_range</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">n_items</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-987" name="line-987"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-988" name="line-988"></a><span class="w"> </span><span class="p">}</span> +<a id="line-989" name="line-989"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_view_get_selected_items</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_copy</span><span class="w"> </span><span class="p">((</span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">list</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="p">);</span> +<a id="line-993" name="line-993"></a> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="n">gtk_icon_view_unselect_all</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-995" name="line-995"></a> +<a id="line-996" name="line-996"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">change</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-997" name="line-997"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_CURRENT</span><span class="p">:</span> +<a id="line-998" name="line-998"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-999" name="line-999"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_LEFT</span><span class="p">:</span> +<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_tree_path_prev</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">n_items</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_RIGHT</span><span class="p">:</span> +<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_path_get_indices</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">)</span><span class="w"> </span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">n_items</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_first</span><span class="w"> </span><span class="p">();</span> +<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="n">gtk_tree_path_next</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_FIRST</span><span class="p">:</span> +<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_first</span><span class="w"> </span><span class="p">();</span> +<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_LAST</span><span class="p">:</span> +<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">n_items</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_THUMB_VIEW_SELECT_RANDOM</span><span class="p">:</span> +<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">g_random_int_range</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">n_items</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1027" name="line-1027"></a> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">gtk_icon_view_select_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="n">gtk_icon_view_set_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="n">gtk_icon_view_scroll_to_path</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1032" name="line-1032"></a><span class="p">}</span> +<a id="line-1033" name="line-1033"></a> +<a id="line-1034" name="line-1034"></a><span class="cm">/**</span> +<a id="line-1035" name="line-1035"></a><span class="cm"> * eom_thumb_view_set_thumbnail_popup:</span> +<a id="line-1036" name="line-1036"></a><span class="cm"> * @thumbview: An #EomThumbView.</span> +<a id="line-1037" name="line-1037"></a><span class="cm"> * @menu: A #GtkMenu.</span> +<a id="line-1038" name="line-1038"></a><span class="cm"> *</span> +<a id="line-1039" name="line-1039"></a><span class="cm"> * Set the contextual menu to be used with the thumbnails in the</span> +<a id="line-1040" name="line-1040"></a><span class="cm"> * widget. This can be done only once.</span> +<a id="line-1041" name="line-1041"></a><span class="cm"> *</span> +<a id="line-1042" name="line-1042"></a><span class="cm"> **/</span> +<a id="line-1043" name="line-1043"></a><span class="kt">void</span> +<a id="line-1044" name="line-1044"></a><span class="nf">eom_thumb_view_set_thumbnail_popup</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="n">GtkMenu</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">)</span> +<a id="line-1046" name="line-1046"></a><span class="p">{</span> +<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1049" name="line-1049"></a> +<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span> +<a id="line-1051" name="line-1051"></a> +<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="n">gtk_menu_attach_to_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span> +<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1055" name="line-1055"></a> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="s">"button_press_event"</span><span class="p">,</span> +<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview_on_button_press_event_cb</span><span class="p">),</span> +<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1059" name="line-1059"></a><span class="p">}</span> +<a id="line-1060" name="line-1060"></a> +<a id="line-1061" name="line-1061"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1062" name="line-1062"></a><span class="nf">eom_thumb_view_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-1063" name="line-1063"></a><span class="p">{</span> +<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1065" name="line-1065"></a> +<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">thumbview</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu</span><span class="p">),</span> +<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkEvent</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-1068" name="line-1068"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/3.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/3.html new file mode 100644 index 0000000..998ae02 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/3.html @@ -0,0 +1,2295 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: jpegutils/transupp-6b.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> transupp-6b.c</p> +<a href="3.html#line-133"> variableScope 133</a><a href="3.html#line-182"> variableScope 182</a><a href="3.html#line-251"> variableScope 251</a><a href="3.html#line-298"> variableScope 298</a><a href="3.html#line-361"> variableScope 361</a><a href="3.html#line-425"> variableScope 425</a><a href="3.html#line-528"> variableScope 528</a><a href="3.html#line-692"> variableScope 692</a><a href="3.html#line-908"> variableScope 908</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span> +<span class="normal">789</span> +<span class="normal">790</span> +<span class="normal">791</span> +<span class="normal">792</span> +<span class="normal">793</span> +<span class="normal">794</span> +<span class="normal">795</span> +<span class="normal">796</span> +<span class="normal">797</span> +<span class="normal">798</span> +<span class="normal">799</span> +<span class="normal">800</span> +<span class="normal">801</span> +<span class="normal">802</span> +<span class="normal">803</span> +<span class="normal">804</span> +<span class="normal">805</span> +<span class="normal">806</span> +<span class="normal">807</span> +<span class="normal">808</span> +<span class="normal">809</span> +<span class="normal">810</span> +<span class="normal">811</span> +<span class="normal">812</span> +<span class="normal">813</span> +<span class="normal">814</span> +<span class="normal">815</span> +<span class="normal">816</span> +<span class="normal">817</span> +<span class="normal">818</span> +<span class="normal">819</span> +<span class="normal">820</span> +<span class="normal">821</span> +<span class="normal">822</span> +<span class="normal">823</span> +<span class="normal">824</span> +<span class="normal">825</span> +<span class="normal">826</span> +<span class="normal">827</span> +<span class="normal">828</span> +<span class="normal">829</span> +<span class="normal">830</span> +<span class="normal">831</span> +<span class="normal">832</span> +<span class="normal">833</span> +<span class="normal">834</span> +<span class="normal">835</span> +<span class="normal">836</span> +<span class="normal">837</span> +<span class="normal">838</span> +<span class="normal">839</span> +<span class="normal">840</span> +<span class="normal">841</span> +<span class="normal">842</span> +<span class="normal">843</span> +<span class="normal">844</span> +<span class="normal">845</span> +<span class="normal">846</span> +<span class="normal">847</span> +<span class="normal">848</span> +<span class="normal">849</span> +<span class="normal">850</span> +<span class="normal">851</span> +<span class="normal">852</span> +<span class="normal">853</span> +<span class="normal">854</span> +<span class="normal">855</span> +<span class="normal">856</span> +<span class="normal">857</span> +<span class="normal">858</span> +<span class="normal">859</span> +<span class="normal">860</span> +<span class="normal">861</span> +<span class="normal">862</span> +<span class="normal">863</span> +<span class="normal">864</span> +<span class="normal">865</span> +<span class="normal">866</span> +<span class="normal">867</span> +<span class="normal">868</span> +<span class="normal">869</span> +<span class="normal">870</span> +<span class="normal">871</span> +<span class="normal">872</span> +<span class="normal">873</span> +<span class="normal">874</span> +<span class="normal">875</span> +<span class="normal">876</span> +<span class="normal">877</span> +<span class="normal">878</span> +<span class="normal">879</span> +<span class="normal">880</span> +<span class="normal">881</span> +<span class="normal">882</span> +<span class="normal">883</span> +<span class="normal">884</span> +<span class="normal">885</span> +<span class="normal">886</span> +<span class="normal">887</span> +<span class="normal">888</span> +<span class="normal">889</span> +<span class="normal">890</span> +<span class="normal">891</span> +<span class="normal">892</span> +<span class="normal">893</span> +<span class="normal">894</span> +<span class="normal">895</span> +<span class="normal">896</span> +<span class="normal">897</span> +<span class="normal">898</span> +<span class="normal">899</span> +<span class="normal">900</span> +<span class="normal">901</span> +<span class="normal">902</span> +<span class="normal">903</span> +<span class="normal">904</span> +<span class="normal">905</span> +<span class="normal">906</span> +<span class="normal">907</span> +<span class="normal">908</span> +<span class="normal">909</span> +<span class="normal">910</span> +<span class="normal">911</span> +<span class="normal">912</span> +<span class="normal">913</span> +<span class="normal">914</span> +<span class="normal">915</span> +<span class="normal">916</span> +<span class="normal">917</span> +<span class="normal">918</span> +<span class="normal">919</span> +<span class="normal">920</span> +<span class="normal">921</span> +<span class="normal">922</span> +<span class="normal">923</span> +<span class="normal">924</span> +<span class="normal">925</span> +<span class="normal">926</span> +<span class="normal">927</span> +<span class="normal">928</span> +<span class="normal">929</span> +<span class="normal">930</span> +<span class="normal">931</span> +<span class="normal">932</span> +<span class="normal">933</span> +<span class="normal">934</span> +<span class="normal">935</span> +<span class="normal">936</span> +<span class="normal">937</span> +<span class="normal">938</span> +<span class="normal">939</span> +<span class="normal">940</span> +<span class="normal">941</span> +<span class="normal">942</span> +<span class="normal">943</span> +<span class="normal">944</span> +<span class="normal">945</span> +<span class="normal">946</span> +<span class="normal">947</span> +<span class="normal">948</span> +<span class="normal">949</span> +<span class="normal">950</span> +<span class="normal">951</span> +<span class="normal">952</span> +<span class="normal">953</span> +<span class="normal">954</span> +<span class="normal">955</span> +<span class="normal">956</span> +<span class="normal">957</span> +<span class="normal">958</span> +<span class="normal">959</span> +<span class="normal">960</span> +<span class="normal">961</span> +<span class="normal">962</span> +<span class="normal">963</span> +<span class="normal">964</span> +<span class="normal">965</span> +<span class="normal">966</span> +<span class="normal">967</span> +<span class="normal">968</span> +<span class="normal">969</span> +<span class="normal">970</span> +<span class="normal">971</span> +<span class="normal">972</span> +<span class="normal">973</span> +<span class="normal">974</span> +<span class="normal">975</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */</span> +<a id="line-2" name="line-2"></a> +<a id="line-3" name="line-3"></a><span class="cm">/*</span> +<a id="line-4" name="line-4"></a><span class="cm"> * GThumb</span> +<a id="line-5" name="line-5"></a><span class="cm"> *</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Copyright (C) 2001, 2002 The Free Software Foundation, Inc.</span> +<a id="line-7" name="line-7"></a><span class="cm"> *</span> +<a id="line-8" name="line-8"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-9" name="line-9"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-10" name="line-10"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-11" name="line-11"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-12" name="line-12"></a><span class="cm"> *</span> +<a id="line-13" name="line-13"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-14" name="line-14"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-15" name="line-15"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-16" name="line-16"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-17" name="line-17"></a><span class="cm"> *</span> +<a id="line-18" name="line-18"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-19" name="line-19"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-20" name="line-20"></a><span class="cm"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-21" name="line-21"></a><span class="cm"> */</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="cm">/* based upon file transupp.c from the libjpeg package, original copyright</span> +<a id="line-24" name="line-24"></a><span class="cm"> * note follows:</span> +<a id="line-25" name="line-25"></a><span class="cm">.*</span> +<a id="line-26" name="line-26"></a><span class="cm"> *</span> +<a id="line-27" name="line-27"></a><span class="cm"> * transupp.c</span> +<a id="line-28" name="line-28"></a><span class="cm"> *</span> +<a id="line-29" name="line-29"></a><span class="cm"> * Copyright (C) 1997, Thomas G. Lane.</span> +<a id="line-30" name="line-30"></a><span class="cm"> * This file is part of the Independent JPEG Group's software.</span> +<a id="line-31" name="line-31"></a><span class="cm"> * For conditions of distribution and use, see the accompanying README file.</span> +<a id="line-32" name="line-32"></a><span class="cm"> *</span> +<a id="line-33" name="line-33"></a><span class="cm"> * This file contains image transformation routines and other utility code</span> +<a id="line-34" name="line-34"></a><span class="cm"> * used by the jpegtran sample application. These are NOT part of the core</span> +<a id="line-35" name="line-35"></a><span class="cm"> * JPEG library. But we keep these routines separate from jpegtran.c to</span> +<a id="line-36" name="line-36"></a><span class="cm"> * ease the task of maintaining jpegtran-like programs that have other user</span> +<a id="line-37" name="line-37"></a><span class="cm"> * interfaces.</span> +<a id="line-38" name="line-38"></a><span class="cm"> */</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="cp">#ifdef HAVE_LIBJPEG</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="cp">#define SAVE_MARKERS_SUPPORTED 1</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span> +<a id="line-47" name="line-47"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><jpeglib.h></span> +<a id="line-48" name="line-48"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"transupp-6b.h"</span><span class="c1"> /* My own external interface */</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="cp">#ifndef MAX</span> +<a id="line-51" name="line-51"></a><span class="cp">#define MAX(a, b) (((a) > (b)) ? (a) : (b))</span> +<a id="line-52" name="line-52"></a><span class="cp">#endif</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">JERR_CONVERSION_NOTIMPL</span> +<a id="line-56" name="line-56"></a><span class="p">};</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="cp">#define ERREXIT(cinfo,code) \</span> +<a id="line-59" name="line-59"></a><span class="cp"> ((cinfo)->err->msg_code = (code), \</span> +<a id="line-60" name="line-60"></a><span class="cp"> (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="kt">long</span> +<a id="line-63" name="line-63"></a><span class="nf">jround_up</span><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">b</span><span class="p">)</span> +<a id="line-64" name="line-64"></a><span class="cm">/* Compute a rounded up to next multiple of b, ie, ceil(a/b)*b */</span> +<a id="line-65" name="line-65"></a><span class="cm">/* Assumes a >= 0, b > 0 */</span> +<a id="line-66" name="line-66"></a><span class="p">{</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mf">1L</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="n">b</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="p">}</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-72" name="line-72"></a><span class="nf">jcopy_block_row</span><span class="w"> </span><span class="p">(</span><span class="n">JBLOCKROW</span><span class="w"> </span><span class="n">input_row</span><span class="p">,</span><span class="w"> </span><span class="n">JBLOCKROW</span><span class="w"> </span><span class="n">output_row</span><span class="p">,</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">num_blocks</span><span class="p">)</span> +<a id="line-74" name="line-74"></a><span class="cm">/* Copy a row of coefficient blocks from one place to another. */</span> +<a id="line-75" name="line-75"></a><span class="p">{</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="k">register</span><span class="w"> </span><span class="n">JCOEFPTR</span><span class="w"> </span><span class="n">inptr</span><span class="p">,</span><span class="w"> </span><span class="n">outptr</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="k">register</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">count</span><span class="p">;</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">inptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">JCOEFPTR</span><span class="p">)</span><span class="w"> </span><span class="n">input_row</span><span class="p">;</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">outptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">JCOEFPTR</span><span class="p">)</span><span class="w"> </span><span class="n">output_row</span><span class="p">;</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">num_blocks</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE2</span><span class="p">;</span><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">count</span><span class="o">--</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="o">*</span><span class="n">outptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">inptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">}</span> +<a id="line-84" name="line-84"></a><span class="p">}</span> +<a id="line-85" name="line-85"></a> +<a id="line-86" name="line-86"></a><span class="cm">/*</span> +<a id="line-87" name="line-87"></a><span class="cm"> * Lossless image transformation routines. These routines work on DCT</span> +<a id="line-88" name="line-88"></a><span class="cm"> * coefficient arrays and thus do not require any lossy decompression</span> +<a id="line-89" name="line-89"></a><span class="cm"> * or recompression of the image.</span> +<a id="line-90" name="line-90"></a><span class="cm"> * Thanks to Guido Vollbeding for the initial design and code of this feature.</span> +<a id="line-91" name="line-91"></a><span class="cm"> *</span> +<a id="line-92" name="line-92"></a><span class="cm"> * Horizontal flipping is done in-place, using a single top-to-bottom</span> +<a id="line-93" name="line-93"></a><span class="cm"> * pass through the virtual source array. It will thus be much the</span> +<a id="line-94" name="line-94"></a><span class="cm"> * fastest option for images larger than main memory.</span> +<a id="line-95" name="line-95"></a><span class="cm"> *</span> +<a id="line-96" name="line-96"></a><span class="cm"> * The other routines require a set of destination virtual arrays, so they</span> +<a id="line-97" name="line-97"></a><span class="cm"> * need twice as much memory as jpegtran normally does. The destination</span> +<a id="line-98" name="line-98"></a><span class="cm"> * arrays are always written in normal scan order (top to bottom) because</span> +<a id="line-99" name="line-99"></a><span class="cm"> * the virtual array manager expects this. The source arrays will be scanned</span> +<a id="line-100" name="line-100"></a><span class="cm"> * in the corresponding order, which means multiple passes through the source</span> +<a id="line-101" name="line-101"></a><span class="cm"> * arrays for most of the transforms. That could result in much thrashing</span> +<a id="line-102" name="line-102"></a><span class="cm"> * if the image is larger than main memory.</span> +<a id="line-103" name="line-103"></a><span class="cm"> *</span> +<a id="line-104" name="line-104"></a><span class="cm"> * Some notes about the operating environment of the individual transform</span> +<a id="line-105" name="line-105"></a><span class="cm"> * routines:</span> +<a id="line-106" name="line-106"></a><span class="cm"> * 1. Both the source and destination virtual arrays are allocated from the</span> +<a id="line-107" name="line-107"></a><span class="cm"> * source JPEG object, and therefore should be manipulated by calling the</span> +<a id="line-108" name="line-108"></a><span class="cm"> * source's memory manager.</span> +<a id="line-109" name="line-109"></a><span class="cm"> * 2. The destination's component count should be used. It may be smaller</span> +<a id="line-110" name="line-110"></a><span class="cm"> * than the source's when forcing to grayscale.</span> +<a id="line-111" name="line-111"></a><span class="cm"> * 3. Likewise the destination's sampling factors should be used. When</span> +<a id="line-112" name="line-112"></a><span class="cm"> * forcing to grayscale the destination's sampling factors will be all 1,</span> +<a id="line-113" name="line-113"></a><span class="cm"> * and we may as well take that as the effective iMCU size.</span> +<a id="line-114" name="line-114"></a><span class="cm"> * 4. When "trim" is in effect, the destination's dimensions will be the</span> +<a id="line-115" name="line-115"></a><span class="cm"> * trimmed values but the source's will be untrimmed.</span> +<a id="line-116" name="line-116"></a><span class="cm"> * 5. All the routines assume that the source and destination buffers are</span> +<a id="line-117" name="line-117"></a><span class="cm"> * padded out to a full iMCU boundary. This is true, although for the</span> +<a id="line-118" name="line-118"></a><span class="cm"> * source buffer it is an undocumented property of jdcoefct.c.</span> +<a id="line-119" name="line-119"></a><span class="cm"> * Notes 2,3,4 boil down to this: generally we should use the destination's</span> +<a id="line-120" name="line-120"></a><span class="cm"> * dimensions and ignore the source's.</span> +<a id="line-121" name="line-121"></a><span class="cm"> */</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-124" name="line-124"></a><span class="nf">do_flip_h</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">)</span> +<a id="line-126" name="line-126"></a><span class="cm">/* Horizontal flip; done in-place, so no separate dest array is required */</span> +<a id="line-127" name="line-127"></a><span class="p">{</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">MCU_cols</span><span class="p">,</span><span class="w"> </span><span class="n">comp_width</span><span class="p">,</span><span class="w"> </span><span class="n">blk_x</span><span class="p">,</span><span class="w"> </span><span class="n">blk_y</span><span class="p">;</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">k</span><span class="p">,</span><span class="w"> </span><span class="n">offset_y</span><span class="p">;</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">JBLOCKARRAY</span><span class="w"> </span><span class="n">buffer</span><span class="p">;</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">JCOEFPTR</span><span class="w"> </span><span class="n">ptr1</span><span class="p">,</span><span class="w"> </span><span class="n">ptr2</span><span class="p">;</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">JCOEF</span><span class="w"> </span><span class="n">temp1</span><span class="p">,</span><span class="w"> </span><span class="n">temp2</span><span class="p">;</span> +<a id="line-133" name="line-133"></a><span class="hll"><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'compptr' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'compptr' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-134" name="line-134"></a> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="cm">/* Horizontal mirroring of DCT blocks is accomplished by swapping</span> +<a id="line-136" name="line-136"></a><span class="cm"> * pairs of blocks in-place. Within a DCT block, we perform horizontal</span> +<a id="line-137" name="line-137"></a><span class="cm"> * mirroring by changing the signs of odd-numbered columns.</span> +<a id="line-138" name="line-138"></a><span class="cm"> * Partial iMCUs at the right edge are left untouched.</span> +<a id="line-139" name="line-139"></a><span class="cm"> */</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">max_h_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">comp_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">blk_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">;</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">blk_y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">blk_y</span><span class="p">,</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">blk_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">blk_x</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_width</span><span class="p">;</span><span class="w"> </span><span class="n">blk_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">ptr1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">][</span><span class="n">blk_x</span><span class="p">];</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">ptr2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">][</span><span class="n">comp_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">blk_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* this unrolled loop doesn't need to know which row it's on... */</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">k</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">k</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE2</span><span class="p">;</span><span class="w"> </span><span class="n">k</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">temp1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">ptr1</span><span class="p">;</span><span class="w"> </span><span class="cm">/* swap even column */</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">temp2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">ptr2</span><span class="p">;</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="o">*</span><span class="n">ptr1</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temp2</span><span class="p">;</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="o">*</span><span class="n">ptr2</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temp1</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">temp1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">ptr1</span><span class="p">;</span><span class="w"> </span><span class="cm">/* swap odd column with sign change */</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">temp2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">ptr2</span><span class="p">;</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="o">*</span><span class="n">ptr1</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">temp2</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="o">*</span><span class="n">ptr2</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">temp1</span><span class="p">;</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="p">}</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="p">}</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">}</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="p">}</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-169" name="line-169"></a><span class="p">}</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-172" name="line-172"></a><span class="nf">do_flip_v</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">dst_coef_arrays</span><span class="p">)</span> +<a id="line-175" name="line-175"></a><span class="cm">/* Vertical flip */</span> +<a id="line-176" name="line-176"></a><span class="p">{</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">MCU_rows</span><span class="p">,</span><span class="w"> </span><span class="n">comp_height</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">;</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">offset_y</span><span class="p">;</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">JBLOCKARRAY</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">,</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">;</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">JBLOCKROW</span><span class="w"> </span><span class="n">src_row_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">dst_row_ptr</span><span class="p">;</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">JCOEFPTR</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">dst_ptr</span><span class="p">;</span> +<a id="line-182" name="line-182"></a><span class="hll"><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'compptr' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'compptr' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="cm">/* We output into a separate array because we can't touch different</span> +<a id="line-185" name="line-185"></a><span class="cm"> * rows of the source virtual array simultaneously. Otherwise, this</span> +<a id="line-186" name="line-186"></a><span class="cm"> * is a pretty straightforward analog of horizontal flip.</span> +<a id="line-187" name="line-187"></a><span class="cm"> * Within a DCT block, vertical mirroring is done by changing the signs</span> +<a id="line-188" name="line-188"></a><span class="cm"> * of odd-numbered rows.</span> +<a id="line-189" name="line-189"></a><span class="cm"> * Partial iMCUs at the bottom edge are copied verbatim.</span> +<a id="line-190" name="line-190"></a><span class="cm"> */</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">max_v_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">comp_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">;</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">dst_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">,</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="cm">/* Row is within the mirrorable area. */</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">comp_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="cm">/* Bottom-edge blocks will be copied verbatim. */</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">,</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="p">}</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="cm">/* Row is within the mirrorable area. */</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">dst_row_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">];</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">src_row_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">;</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">dst_blk_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_row_ptr</span><span class="p">[</span><span class="n">dst_blk_x</span><span class="p">];</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_row_ptr</span><span class="p">[</span><span class="n">dst_blk_x</span><span class="p">];</span> +<a id="line-222" name="line-222"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="cm">/* copy even row */</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="cm">/* copy odd row with sign change */</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="p">}</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="p">}</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="cm">/* Just copy row verbatim. */</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">jcopy_block_row</span><span class="p">(</span><span class="n">src_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">],</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">],</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="p">}</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="p">}</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">}</span> +<a id="line-239" name="line-239"></a><span class="p">}</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-242" name="line-242"></a><span class="nf">do_transpose</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">dst_coef_arrays</span><span class="p">)</span> +<a id="line-245" name="line-245"></a><span class="cm">/* Transpose source into destination */</span> +<a id="line-246" name="line-246"></a><span class="p">{</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">;</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">offset_x</span><span class="p">,</span><span class="w"> </span><span class="n">offset_y</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">JBLOCKARRAY</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">,</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">;</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">JCOEFPTR</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">dst_ptr</span><span class="p">;</span> +<a id="line-251" name="line-251"></a><span class="hll"><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'compptr' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'compptr' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-252" name="line-252"></a> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="cm">/* Transposing pixels within a block just requires transposing the</span> +<a id="line-254" name="line-254"></a><span class="cm"> * DCT coefficients.</span> +<a id="line-255" name="line-255"></a><span class="cm"> * Partial iMCUs at the edges require no special treatment; we simply</span> +<a id="line-256" name="line-256"></a><span class="cm"> * process all the available DCT blocks for every component.</span> +<a id="line-257" name="line-257"></a><span class="cm"> */</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">;</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">dst_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">,</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">;</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">offset_x</span><span class="p">][</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_y</span><span class="p">];</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">][</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_x</span><span class="p">];</span> +<a id="line-274" name="line-274"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">}</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="p">}</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="p">}</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="p">}</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="p">}</span> +<a id="line-282" name="line-282"></a><span class="p">}</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-285" name="line-285"></a><span class="nf">do_rot_90</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">dst_coef_arrays</span><span class="p">)</span> +<a id="line-288" name="line-288"></a><span class="cm">/* 90 degree rotation is equivalent to</span> +<a id="line-289" name="line-289"></a><span class="cm"> * 1. Transposing the image;</span> +<a id="line-290" name="line-290"></a><span class="cm"> * 2. Horizontal mirroring.</span> +<a id="line-291" name="line-291"></a><span class="cm"> * These two steps are merged into a single processing routine.</span> +<a id="line-292" name="line-292"></a><span class="cm"> */</span> +<a id="line-293" name="line-293"></a><span class="p">{</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">MCU_cols</span><span class="p">,</span><span class="w"> </span><span class="n">comp_width</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">;</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">offset_x</span><span class="p">,</span><span class="w"> </span><span class="n">offset_y</span><span class="p">;</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">JBLOCKARRAY</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">,</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">;</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">JCOEFPTR</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">dst_ptr</span><span class="p">;</span> +<a id="line-298" name="line-298"></a><span class="hll"><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'compptr' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'compptr' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="cm">/* Because of the horizontal mirror step, we can't process partial iMCUs</span> +<a id="line-301" name="line-301"></a><span class="cm"> * at the (output) right edge properly. They just get transposed and</span> +<a id="line-302" name="line-302"></a><span class="cm"> * not mirrored.</span> +<a id="line-303" name="line-303"></a><span class="cm"> */</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">max_h_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-305" name="line-305"></a> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">comp_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">;</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">dst_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">,</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">offset_x</span><span class="p">][</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_y</span><span class="p">];</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_width</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="cm">/* Block is within the mirrorable area. */</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">]</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="p">[</span><span class="n">comp_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">offset_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="p">}</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="cm">/* Edge blocks are transposed but not mirrored. */</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">][</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_x</span><span class="p">];</span> +<a id="line-336" name="line-336"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="p">}</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="p">}</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="p">}</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="p">}</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="p">}</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="p">}</span> +<a id="line-345" name="line-345"></a><span class="p">}</span> +<a id="line-346" name="line-346"></a> +<a id="line-347" name="line-347"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-348" name="line-348"></a><span class="nf">do_rot_270</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">dst_coef_arrays</span><span class="p">)</span> +<a id="line-351" name="line-351"></a><span class="cm">/* 270 degree rotation is equivalent to</span> +<a id="line-352" name="line-352"></a><span class="cm"> * 1. Horizontal mirroring;</span> +<a id="line-353" name="line-353"></a><span class="cm"> * 2. Transposing the image.</span> +<a id="line-354" name="line-354"></a><span class="cm"> * These two steps are merged into a single processing routine.</span> +<a id="line-355" name="line-355"></a><span class="cm"> */</span> +<a id="line-356" name="line-356"></a><span class="p">{</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">MCU_rows</span><span class="p">,</span><span class="w"> </span><span class="n">comp_height</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">;</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">offset_x</span><span class="p">,</span><span class="w"> </span><span class="n">offset_y</span><span class="p">;</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">JBLOCKARRAY</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">,</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">;</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">JCOEFPTR</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">dst_ptr</span><span class="p">;</span> +<a id="line-361" name="line-361"></a><span class="hll"><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'compptr' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'compptr' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-362" name="line-362"></a> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="cm">/* Because of the horizontal mirror step, we can't process partial iMCUs</span> +<a id="line-364" name="line-364"></a><span class="cm"> * at the (output) bottom edge properly. They just get transposed and</span> +<a id="line-365" name="line-365"></a><span class="cm"> * not mirrored.</span> +<a id="line-366" name="line-366"></a><span class="cm"> */</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">max_v_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-368" name="line-368"></a> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">comp_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">;</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">dst_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">,</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">;</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">][</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_x</span><span class="p">];</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">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="cm">/* Block is within the mirrorable area. */</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">offset_x</span><span class="p">]</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="p">[</span><span class="n">comp_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-389" name="line-389"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">;</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="p">}</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="p">}</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="cm">/* Edge blocks are transposed but not mirrored. */</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">offset_x</span><span class="p">][</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_y</span><span class="p">];</span> +<a id="line-399" name="line-399"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="p">}</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="p">}</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="p">}</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="p">}</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="p">}</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="p">}</span> +<a id="line-408" name="line-408"></a><span class="p">}</span> +<a id="line-409" name="line-409"></a> +<a id="line-410" name="line-410"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-411" name="line-411"></a><span class="nf">do_rot_180</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">dst_coef_arrays</span><span class="p">)</span> +<a id="line-414" name="line-414"></a><span class="cm">/* 180 degree rotation is equivalent to</span> +<a id="line-415" name="line-415"></a><span class="cm"> * 1. Vertical mirroring;</span> +<a id="line-416" name="line-416"></a><span class="cm"> * 2. Horizontal mirroring.</span> +<a id="line-417" name="line-417"></a><span class="cm"> * These two steps are merged into a single processing routine.</span> +<a id="line-418" name="line-418"></a><span class="cm"> */</span> +<a id="line-419" name="line-419"></a><span class="p">{</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">MCU_cols</span><span class="p">,</span><span class="w"> </span><span class="n">MCU_rows</span><span class="p">,</span><span class="w"> </span><span class="n">comp_width</span><span class="p">,</span><span class="w"> </span><span class="n">comp_height</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">;</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">offset_y</span><span class="p">;</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">JBLOCKARRAY</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">,</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">;</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">JBLOCKROW</span><span class="w"> </span><span class="n">src_row_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">dst_row_ptr</span><span class="p">;</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">JCOEFPTR</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">dst_ptr</span><span class="p">;</span> +<a id="line-425" name="line-425"></a><span class="hll"><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'compptr' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'compptr' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-426" name="line-426"></a> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">max_h_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">max_v_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-429" name="line-429"></a> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">comp_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">comp_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">;</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">dst_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">,</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="cm">/* Row is within the vertically mirrorable area. */</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">comp_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="cm">/* Bottom-edge rows are only mirrored horizontally. */</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">,</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="p">}</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="cm">/* Row is within the mirrorable area. */</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">dst_row_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">];</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">src_row_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="cm">/* Process the blocks that can be mirrored both ways. */</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_width</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_row_ptr</span><span class="p">[</span><span class="n">dst_blk_x</span><span class="p">];</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_row_ptr</span><span class="p">[</span><span class="n">comp_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-460" name="line-460"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="cm">/* For even row, negate every odd column. */</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="p">}</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="cm">/* For odd row, negate every even column. */</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">}</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="p">}</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="p">}</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="cm">/* Any remaining right-edge blocks are only mirrored vertically. */</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_row_ptr</span><span class="p">[</span><span class="n">dst_blk_x</span><span class="p">];</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_row_ptr</span><span class="p">[</span><span class="n">dst_blk_x</span><span class="p">];</span> +<a id="line-477" name="line-477"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="p">}</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="p">}</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="cm">/* Remaining rows are just mirrored horizontally. */</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">dst_row_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">];</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">src_row_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">];</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="cm">/* Process the blocks that can be mirrored. */</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_width</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_row_ptr</span><span class="p">[</span><span class="n">dst_blk_x</span><span class="p">];</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_row_ptr</span><span class="p">[</span><span class="n">comp_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-492" name="line-492"></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"><</span><span class="w"> </span><span class="n">DCTSIZE2</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="p">}</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="p">}</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="cm">/* Any remaining right-edge blocks are only copied. */</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_row_ptr</span><span class="p">[</span><span class="n">dst_blk_x</span><span class="p">];</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_row_ptr</span><span class="p">[</span><span class="n">dst_blk_x</span><span class="p">];</span> +<a id="line-501" name="line-501"></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"><</span><span class="w"> </span><span class="n">DCTSIZE2</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="o">*</span><span class="n">dst_ptr</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">src_ptr</span><span class="o">++</span><span class="p">;</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="p">}</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="p">}</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="p">}</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="p">}</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="p">}</span> +<a id="line-508" name="line-508"></a><span class="p">}</span> +<a id="line-509" name="line-509"></a> +<a id="line-510" name="line-510"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-511" name="line-511"></a><span class="nf">do_transverse</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">dst_coef_arrays</span><span class="p">)</span> +<a id="line-514" name="line-514"></a><span class="cm">/* Transverse transpose is equivalent to</span> +<a id="line-515" name="line-515"></a><span class="cm"> * 1. 180 degree rotation;</span> +<a id="line-516" name="line-516"></a><span class="cm"> * 2. Transposition;</span> +<a id="line-517" name="line-517"></a><span class="cm"> * or</span> +<a id="line-518" name="line-518"></a><span class="cm"> * 1. Horizontal mirroring;</span> +<a id="line-519" name="line-519"></a><span class="cm"> * 2. Transposition;</span> +<a id="line-520" name="line-520"></a><span class="cm"> * 3. Horizontal mirroring.</span> +<a id="line-521" name="line-521"></a><span class="cm"> * These steps are merged into a single processing routine.</span> +<a id="line-522" name="line-522"></a><span class="cm"> */</span> +<a id="line-523" name="line-523"></a><span class="p">{</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">MCU_cols</span><span class="p">,</span><span class="w"> </span><span class="n">MCU_rows</span><span class="p">,</span><span class="w"> </span><span class="n">comp_width</span><span class="p">,</span><span class="w"> </span><span class="n">comp_height</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">;</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">offset_x</span><span class="p">,</span><span class="w"> </span><span class="n">offset_y</span><span class="p">;</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">JBLOCKARRAY</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">,</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">;</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">JCOEFPTR</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">dst_ptr</span><span class="p">;</span> +<a id="line-528" name="line-528"></a><span class="hll"><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'compptr' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'compptr' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-529" name="line-529"></a> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">max_h_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">max_v_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-532" name="line-532"></a> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">comp_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">comp_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">;</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">dst_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="p">,</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_y</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">;</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">access_virt_barray</span><span class="p">)</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">],</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="p">,</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">offset_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span><span class="w"> </span><span class="n">offset_x</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">offset_x</span><span class="p">]</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="p">[</span><span class="n">comp_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_width</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="cm">/* Block is within the mirrorable area. */</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">]</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="p">[</span><span class="n">comp_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">offset_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">;</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="p">}</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">;</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="p">}</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="p">}</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="cm">/* Right-edge blocks are mirrored in y only */</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">][</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_x</span><span class="p">];</span> +<a id="line-572" name="line-572"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">;</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="p">}</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="p">}</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="p">}</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">src_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="p">[</span><span class="n">offset_x</span><span class="p">][</span><span class="n">dst_blk_y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_y</span><span class="p">];</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">comp_width</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="cm">/* Bottom-edge blocks are mirrored in x only */</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">]</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="p">[</span><span class="n">comp_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">offset_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-586" name="line-586"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="p">}</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="cm">/* At lower right corner, just transpose, no mirroring */</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst_buffer</span><span class="p">[</span><span class="n">offset_y</span><span class="p">][</span><span class="n">dst_blk_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">offset_x</span><span class="p">];</span> +<a id="line-596" name="line-596"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">dst_ptr</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_ptr</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="p">}</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="p">}</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="p">}</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="p">}</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="p">}</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="p">}</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="p">}</span> +<a id="line-606" name="line-606"></a><span class="p">}</span> +<a id="line-607" name="line-607"></a> +<a id="line-608" name="line-608"></a><span class="cm">/* Request any required workspace.</span> +<a id="line-609" name="line-609"></a><span class="cm"> *</span> +<a id="line-610" name="line-610"></a><span class="cm"> * We allocate the workspace virtual arrays from the source decompression</span> +<a id="line-611" name="line-611"></a><span class="cm"> * object, so that all the arrays (both the original data and the workspace)</span> +<a id="line-612" name="line-612"></a><span class="cm"> * will be taken into account while making memory management decisions.</span> +<a id="line-613" name="line-613"></a><span class="cm"> * Hence, this routine must be called after jpeg_read_header (which reads</span> +<a id="line-614" name="line-614"></a><span class="cm"> * the image dimensions) and before jpeg_read_coefficients (which realizes</span> +<a id="line-615" name="line-615"></a><span class="cm"> * the source's virtual arrays).</span> +<a id="line-616" name="line-616"></a><span class="cm"> */</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="kt">void</span> +<a id="line-619" name="line-619"></a><span class="nf">jtransform_request_workspace</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span> +<a id="line-621" name="line-621"></a><span class="p">{</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">coef_arrays</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-625" name="line-625"></a> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">force_grayscale</span><span class="w"> </span><span class="o">&&</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">srcinfo</span><span class="o">-></span><span class="n">jpeg_color_space</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">JCS_YCbCr</span><span class="w"> </span><span class="o">&&</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">srcinfo</span><span class="o">-></span><span class="n">num_components</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="cm">/* We'll only process the first component */</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">num_components</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="cm">/* Process all the components */</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">num_components</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">srcinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="p">}</span> +<a id="line-635" name="line-635"></a> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">transform</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_NONE</span><span class="p">:</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_FLIP_H</span><span class="p">:</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="cm">/* Don't need a workspace array */</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_FLIP_V</span><span class="p">:</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_180</span><span class="p">:</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="cm">/* Need workspace arrays having same dimensions as source image.</span> +<a id="line-644" name="line-644"></a><span class="cm"> * Note that we allocate arrays padded out to the next iMCU boundary,</span> +<a id="line-645" name="line-645"></a><span class="cm"> * so that transform routines need not worry about missing edge blocks.</span> +<a id="line-646" name="line-646"></a><span class="cm"> */</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">coef_arrays</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="p">)</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">alloc_small</span><span class="p">)</span><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPOOL_IMAGE</span><span class="p">,</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">jvirt_barray_ptr</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">num_components</span><span class="p">);</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">srcinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">request_virt_barray</span><span class="p">)</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPOOL_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">jround_up</span><span class="p">((</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">,</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">),</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">jround_up</span><span class="p">((</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">,</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">),</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">);</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="p">}</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_TRANSPOSE</span><span class="p">:</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_TRANSVERSE</span><span class="p">:</span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_90</span><span class="p">:</span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_270</span><span class="p">:</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="cm">/* Need workspace arrays having transposed dimensions.</span> +<a id="line-666" name="line-666"></a><span class="cm"> * Note that we allocate arrays padded out to the next iMCU boundary,</span> +<a id="line-667" name="line-667"></a><span class="cm"> * so that transform routines need not worry about missing edge blocks.</span> +<a id="line-668" name="line-668"></a><span class="cm"> */</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">coef_arrays</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="p">)</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">alloc_small</span><span class="p">)</span><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPOOL_IMAGE</span><span class="p">,</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">jvirt_barray_ptr</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">num_components</span><span class="p">);</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">srcinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">coef_arrays</span><span class="p">[</span><span class="n">ci</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">srcinfo</span><span class="o">-></span><span class="n">mem</span><span class="o">-></span><span class="n">request_virt_barray</span><span class="p">)</span> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="p">((</span><span class="n">j_common_ptr</span><span class="p">)</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPOOL_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">jround_up</span><span class="p">((</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">height_in_blocks</span><span class="p">,</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">),</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">jround_up</span><span class="p">((</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">width_in_blocks</span><span class="p">,</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">),</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="p">(</span><span class="n">JDIMENSION</span><span class="p">)</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">);</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="p">}</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="p">}</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">workspace_coef_arrays</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">coef_arrays</span><span class="p">;</span> +<a id="line-685" name="line-685"></a><span class="p">}</span> +<a id="line-686" name="line-686"></a> +<a id="line-687" name="line-687"></a><span class="cm">/* Transpose destination image parameters */</span> +<a id="line-688" name="line-688"></a> +<a id="line-689" name="line-689"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-690" name="line-690"></a><span class="nf">transpose_critical_parameters</span><span class="w"> </span><span class="p">(</span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">)</span> +<a id="line-691" name="line-691"></a><span class="p">{</span> +<a id="line-692" name="line-692"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">tblno</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">itemp</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'itemp' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'itemp' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">jpeg_component_info</span><span class="w"> </span><span class="o">*</span><span class="n">compptr</span><span class="p">;</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">JQUANT_TBL</span><span class="w"> </span><span class="o">*</span><span class="n">qtblptr</span><span class="p">;</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">dtemp</span><span class="p">;</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">UINT16</span><span class="w"> </span><span class="n">qtemp</span><span class="p">;</span> +<a id="line-697" name="line-697"></a> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="cm">/* Transpose basic image dimensions */</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">dtemp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_width</span><span class="p">;</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_height</span><span class="p">;</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dtemp</span><span class="p">;</span> +<a id="line-702" name="line-702"></a> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="cm">/* Transpose sampling factors */</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">compptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ci</span><span class="p">;</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">itemp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="p">;</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">h_samp_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="p">;</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">compptr</span><span class="o">-></span><span class="n">v_samp_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">itemp</span><span class="p">;</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="p">}</span> +<a id="line-710" name="line-710"></a> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="cm">/* Transpose quantization tables */</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">tblno</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">tblno</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">NUM_QUANT_TBLS</span><span class="p">;</span><span class="w"> </span><span class="n">tblno</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="n">qtblptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">quant_tbl_ptrs</span><span class="p">[</span><span class="n">tblno</span><span class="p">];</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">qtblptr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-715" name="line-715"></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"><</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">i</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">qtemp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">qtblptr</span><span class="o">-></span><span class="n">quantval</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">j</span><span class="p">];</span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">qtblptr</span><span class="o">-></span><span class="n">quantval</span><span class="p">[</span><span class="n">i</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</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">qtblptr</span><span class="o">-></span><span class="n">quantval</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">];</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">qtblptr</span><span class="o">-></span><span class="n">quantval</span><span class="p">[</span><span class="n">j</span><span class="o">*</span><span class="n">DCTSIZE</span><span class="o">+</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">qtemp</span><span class="p">;</span> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="p">}</span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="p">}</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="p">}</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="p">}</span> +<a id="line-724" name="line-724"></a><span class="p">}</span> +<a id="line-725" name="line-725"></a> +<a id="line-726" name="line-726"></a><span class="cm">/* Trim off any partial iMCUs on the indicated destination edge */</span> +<a id="line-727" name="line-727"></a> +<a id="line-728" name="line-728"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-729" name="line-729"></a><span class="nf">trim_right_edge</span><span class="w"> </span><span class="p">(</span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">)</span> +<a id="line-730" name="line-730"></a><span class="p">{</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">max_h_samp_factor</span><span class="p">;</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">MCU_cols</span><span class="p">;</span> +<a id="line-733" name="line-733"></a> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="cm">/* We have to compute max_h_samp_factor ourselves,</span> +<a id="line-735" name="line-735"></a><span class="cm"> * because it hasn't been set yet in the destination</span> +<a id="line-736" name="line-736"></a><span class="cm"> * (and we don't want to use the source's value).</span> +<a id="line-737" name="line-737"></a><span class="cm"> */</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">max_h_samp_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">h_samp_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="p">[</span><span class="n">ci</span><span class="p">].</span><span class="n">h_samp_factor</span><span class="p">;</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">max_h_samp_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="p">(</span><span class="n">max_h_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">h_samp_factor</span><span class="p">);</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="p">}</span> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">max_h_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="cm">/* can't trim to 0 pixels */</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_cols</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">max_h_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-746" name="line-746"></a><span class="p">}</span> +<a id="line-747" name="line-747"></a> +<a id="line-748" name="line-748"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-749" name="line-749"></a><span class="nf">trim_bottom_edge</span><span class="w"> </span><span class="p">(</span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">)</span> +<a id="line-750" name="line-750"></a><span class="p">{</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ci</span><span class="p">,</span><span class="w"> </span><span class="n">max_v_samp_factor</span><span class="p">;</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">MCU_rows</span><span class="p">;</span> +<a id="line-753" name="line-753"></a> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="cm">/* We have to compute max_v_samp_factor ourselves,</span> +<a id="line-755" name="line-755"></a><span class="cm"> * because it hasn't been set yet in the destination</span> +<a id="line-756" name="line-756"></a><span class="cm"> * (and we don't want to use the source's value).</span> +<a id="line-757" name="line-757"></a><span class="cm"> */</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">max_v_samp_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ci</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">ci</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="n">ci</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">v_samp_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="p">[</span><span class="n">ci</span><span class="p">].</span><span class="n">v_samp_factor</span><span class="p">;</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">max_v_samp_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="p">(</span><span class="n">max_v_samp_factor</span><span class="p">,</span><span class="w"> </span><span class="n">v_samp_factor</span><span class="p">);</span> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="p">}</span> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">max_v_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="cm">/* can't trim to 0 pixels */</span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">image_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MCU_rows</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">max_v_samp_factor</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">DCTSIZE</span><span class="p">);</span> +<a id="line-766" name="line-766"></a><span class="p">}</span> +<a id="line-767" name="line-767"></a> +<a id="line-768" name="line-768"></a><span class="cm">/* Adjust output image parameters as needed.</span> +<a id="line-769" name="line-769"></a><span class="cm"> *</span> +<a id="line-770" name="line-770"></a><span class="cm"> * This must be called after jpeg_copy_critical_parameters()</span> +<a id="line-771" name="line-771"></a><span class="cm"> * and before jpeg_write_coefficients().</span> +<a id="line-772" name="line-772"></a><span class="cm"> *</span> +<a id="line-773" name="line-773"></a><span class="cm"> * The return value is the set of virtual coefficient arrays to be written</span> +<a id="line-774" name="line-774"></a><span class="cm"> * (either the ones allocated by jtransform_request_workspace, or the</span> +<a id="line-775" name="line-775"></a><span class="cm"> * original source data arrays). The caller will need to pass this value</span> +<a id="line-776" name="line-776"></a><span class="cm"> * to jpeg_write_coefficients().</span> +<a id="line-777" name="line-777"></a><span class="cm"> */</span> +<a id="line-778" name="line-778"></a> +<a id="line-779" name="line-779"></a><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span> +<a id="line-780" name="line-780"></a><span class="nf">jtransform_adjust_parameters</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span> +<a id="line-784" name="line-784"></a><span class="p">{</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="cm">/* If force-to-grayscale is requested, adjust destination parameters */</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">force_grayscale</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="cm">/* We use jpeg_set_colorspace to make sure subsidiary settings get fixed</span> +<a id="line-788" name="line-788"></a><span class="cm"> * properly. Among other things, the target h_samp_factor & v_samp_factor</span> +<a id="line-789" name="line-789"></a><span class="cm"> * will get set to 1, which typically won't match the source.</span> +<a id="line-790" name="line-790"></a><span class="cm"> * In fact we do this even if the source is already grayscale; that</span> +<a id="line-791" name="line-791"></a><span class="cm"> * provides an easy way of coercing a grayscale JPEG with funny sampling</span> +<a id="line-792" name="line-792"></a><span class="cm"> * factors to the customary 1,1. (Some decoders fail on other factors.)</span> +<a id="line-793" name="line-793"></a><span class="cm"> */</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">jpeg_color_space</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">JCS_YCbCr</span><span class="w"> </span><span class="o">&&</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">jpeg_color_space</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">JCS_GRAYSCALE</span><span class="w"> </span><span class="o">&&</span> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">num_components</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="cm">/* We have to preserve the source's quantization table number. */</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">sv_quant_tbl_no</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="n">quant_tbl_no</span><span class="p">;</span> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">jpeg_set_colorspace</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JCS_GRAYSCALE</span><span class="p">);</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">dstinfo</span><span class="o">-></span><span class="n">comp_info</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="n">quant_tbl_no</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sv_quant_tbl_no</span><span class="p">;</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="cm">/* Sorry, can't do it */</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">ERREXIT</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JERR_CONVERSION_NOTIMPL</span><span class="p">);</span> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="p">}</span> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="p">}</span> +<a id="line-807" name="line-807"></a> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="cm">/* Correct the destination's image dimensions etc if necessary */</span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">transform</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_NONE</span><span class="p">:</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="cm">/* Nothing to do */</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_FLIP_H</span><span class="p">:</span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">trim</span><span class="p">)</span> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">trim_right_edge</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_FLIP_V</span><span class="p">:</span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">trim</span><span class="p">)</span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">trim_bottom_edge</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_TRANSPOSE</span><span class="p">:</span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="n">transpose_critical_parameters</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="cm">/* transpose does NOT have to trim anything */</span> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_TRANSVERSE</span><span class="p">:</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">transpose_critical_parameters</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">trim</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">trim_right_edge</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">trim_bottom_edge</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="p">}</span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_90</span><span class="p">:</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">transpose_critical_parameters</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">trim</span><span class="p">)</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">trim_right_edge</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_180</span><span class="p">:</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">trim</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">trim_right_edge</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">trim_bottom_edge</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="p">}</span> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_270</span><span class="p">:</span> +<a id="line-844" name="line-844"></a><span class="w"> </span><span class="n">transpose_critical_parameters</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">trim</span><span class="p">)</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">trim_bottom_edge</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">);</span> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="p">}</span> +<a id="line-849" name="line-849"></a> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="cm">/* Return the appropriate output data set */</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">workspace_coef_arrays</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">workspace_coef_arrays</span><span class="p">;</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">;</span> +<a id="line-854" name="line-854"></a><span class="p">}</span> +<a id="line-855" name="line-855"></a> +<a id="line-856" name="line-856"></a><span class="cm">/* Execute the actual transformation, if any.</span> +<a id="line-857" name="line-857"></a><span class="cm"> *</span> +<a id="line-858" name="line-858"></a><span class="cm"> * This must be called *after* jpeg_write_coefficients, because it depends</span> +<a id="line-859" name="line-859"></a><span class="cm"> * on jpeg_write_coefficients to have computed subsidiary values such as</span> +<a id="line-860" name="line-860"></a><span class="cm"> * the per-component width and height fields in the destination object.</span> +<a id="line-861" name="line-861"></a><span class="cm"> *</span> +<a id="line-862" name="line-862"></a><span class="cm"> * Note that some transformations will modify the source data arrays!</span> +<a id="line-863" name="line-863"></a><span class="cm"> */</span> +<a id="line-864" name="line-864"></a> +<a id="line-865" name="line-865"></a><span class="kt">void</span> +<a id="line-866" name="line-866"></a><span class="nf">jtransform_execute_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span> +<a id="line-870" name="line-870"></a><span class="p">{</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">dst_coef_arrays</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-></span><span class="n">workspace_coef_arrays</span><span class="p">;</span> +<a id="line-872" name="line-872"></a> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-></span><span class="n">transform</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_NONE</span><span class="p">:</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_FLIP_H</span><span class="p">:</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">do_flip_h</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">);</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_FLIP_V</span><span class="p">:</span> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">do_flip_v</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">);</span> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_TRANSPOSE</span><span class="p">:</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">do_transpose</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">);</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_TRANSVERSE</span><span class="p">:</span> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="n">do_transverse</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">);</span> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_90</span><span class="p">:</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">do_rot_90</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">);</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_180</span><span class="p">:</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">do_rot_180</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">);</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">JXFORM_ROT_270</span><span class="p">:</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">do_rot_270</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">src_coef_arrays</span><span class="p">,</span><span class="w"> </span><span class="n">dst_coef_arrays</span><span class="p">);</span> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="p">}</span> +<a id="line-898" name="line-898"></a><span class="p">}</span> +<a id="line-899" name="line-899"></a> +<a id="line-900" name="line-900"></a><span class="cm">/* Setup decompression object to save desired markers in memory.</span> +<a id="line-901" name="line-901"></a><span class="cm"> * This must be called before jpeg_read_header() to have the desired effect.</span> +<a id="line-902" name="line-902"></a><span class="cm"> */</span> +<a id="line-903" name="line-903"></a> +<a id="line-904" name="line-904"></a><span class="kt">void</span> +<a id="line-905" name="line-905"></a><span class="nf">jcopy_markers_setup</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JCOPY_OPTION</span><span class="w"> </span><span class="n">option</span><span class="p">)</span> +<a id="line-906" name="line-906"></a><span class="p">{</span> +<a id="line-907" name="line-907"></a><span class="cp">#ifdef SAVE_MARKERS_SUPPORTED</span> +<a id="line-908" name="line-908"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">m</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'm' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'm' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-909" name="line-909"></a> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="cm">/* Save comments except under NONE option */</span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">option</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">JCOPYOPT_NONE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">jpeg_save_markers</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPEG_COM</span><span class="p">,</span><span class="w"> </span><span class="mh">0xFFFF</span><span class="p">);</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="p">}</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="cm">/* Save all types of APPn markers iff ALL option */</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">option</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">JCOPYOPT_ALL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">m</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">m</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span><span class="w"> </span><span class="n">m</span><span class="o">++</span><span class="p">)</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">jpeg_save_markers</span><span class="p">(</span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JPEG_APP0</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">m</span><span class="p">,</span><span class="w"> </span><span class="mh">0xFFFF</span><span class="p">);</span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="p">}</span> +<a id="line-919" name="line-919"></a><span class="cp">#endif </span><span class="cm">/* SAVE_MARKERS_SUPPORTED */</span> +<a id="line-920" name="line-920"></a><span class="p">}</span> +<a id="line-921" name="line-921"></a> +<a id="line-922" name="line-922"></a><span class="cm">/* Copy markers saved in the given source object to the destination object.</span> +<a id="line-923" name="line-923"></a><span class="cm"> * This should be called just after jpeg_start_compress() or</span> +<a id="line-924" name="line-924"></a><span class="cm"> * jpeg_write_coefficients().</span> +<a id="line-925" name="line-925"></a><span class="cm"> * Note that those routines will have written the SOI, and also the</span> +<a id="line-926" name="line-926"></a><span class="cm"> * JFIF APP0 or Adobe APP14 markers if selected.</span> +<a id="line-927" name="line-927"></a><span class="cm"> */</span> +<a id="line-928" name="line-928"></a> +<a id="line-929" name="line-929"></a><span class="kt">void</span> +<a id="line-930" name="line-930"></a><span class="nf">jcopy_markers_execute</span><span class="w"> </span><span class="p">(</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">JCOPY_OPTION</span><span class="w"> </span><span class="n">option</span><span class="p">)</span> +<a id="line-932" name="line-932"></a><span class="p">{</span> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">jpeg_saved_marker_ptr</span><span class="w"> </span><span class="n">marker</span><span class="p">;</span> +<a id="line-934" name="line-934"></a> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="cm">/* In the current implementation, we don't actually need to examine the</span> +<a id="line-936" name="line-936"></a><span class="cm"> * option flag here; we just copy everything that got saved.</span> +<a id="line-937" name="line-937"></a><span class="cm"> * But to avoid confusion, we do not output JFIF and Adobe APP14 markers</span> +<a id="line-938" name="line-938"></a><span class="cm"> * if the encoder library already wrote one.</span> +<a id="line-939" name="line-939"></a><span class="cm"> */</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">marker</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">srcinfo</span><span class="o">-></span><span class="n">marker_list</span><span class="p">;</span><span class="w"> </span><span class="n">marker</span><span class="w"> </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">marker</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">write_JFIF_header</span><span class="w"> </span><span class="o">&&</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">marker</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">JPEG_APP0</span><span class="w"> </span><span class="o">&&</span> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">data_length</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">5</span><span class="w"> </span><span class="o">&&</span> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x4A</span><span class="w"> </span><span class="o">&&</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x46</span><span class="w"> </span><span class="o">&&</span> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">2</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x49</span><span class="w"> </span><span class="o">&&</span> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">3</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x46</span><span class="w"> </span><span class="o">&&</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</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="mi">0</span><span class="p">)</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span><span class="w"> </span><span class="cm">/* reject duplicate JFIF */</span> +<a id="line-950" name="line-950"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dstinfo</span><span class="o">-></span><span class="n">write_Adobe_marker</span><span class="w"> </span><span class="o">&&</span> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">marker</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">JPEG_APP0</span><span class="o">+</span><span class="mi">14</span><span class="w"> </span><span class="o">&&</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">data_length</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">5</span><span class="w"> </span><span class="o">&&</span> +<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x41</span><span class="w"> </span><span class="o">&&</span> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x64</span><span class="w"> </span><span class="o">&&</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">2</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x6F</span><span class="w"> </span><span class="o">&&</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="mi">3</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x62</span><span class="w"> </span><span class="o">&&</span> +<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">GETJOCTET</span><span class="p">(</span><span class="n">marker</span><span class="o">-></span><span class="n">data</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="mh">0x65</span><span class="p">)</span> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span><span class="w"> </span><span class="cm">/* reject duplicate Adobe */</span> +<a id="line-959" name="line-959"></a> +<a id="line-960" name="line-960"></a><span class="cp">#ifdef NEED_FAR_POINTERS</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="cm">/* We could use jpeg_write_marker if the data weren't FAR... */</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="p">{</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">jpeg_write_m_header</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">marker</span><span class="p">,</span><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">data_length</span><span class="p">);</span> +<a id="line-965" name="line-965"></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"><</span><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">data_length</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="n">jpeg_write_m_byte</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="p">}</span> +<a id="line-968" name="line-968"></a><span class="cp">#else</span> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">jpeg_write_marker</span><span class="p">(</span><span class="n">dstinfo</span><span class="p">,</span><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">marker</span><span class="p">,</span> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">marker</span><span class="o">-></span><span class="n">data_length</span><span class="p">);</span> +<a id="line-971" name="line-971"></a><span class="cp">#endif</span> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="p">}</span> +<a id="line-973" name="line-973"></a><span class="p">}</span> +<a id="line-974" name="line-974"></a> +<a id="line-975" name="line-975"></a><span class="cp">#endif </span><span class="cm">/* HAVE_LIBJPEG */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/30.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/30.html new file mode 100644 index 0000000..fefdb2e --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/30.html @@ -0,0 +1,1129 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-transform.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-transform.c</p> +<a href="30.html#line-50"> unknownMacro 50</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of MATE -- Affine Transformations</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2003-2009 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Portions based on code from libart_lgpl by Raph Levien.</span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-8" name="line-8"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-9" name="line-9"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-10" name="line-10"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-15" name="line-15"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software Foundation,</span> +<a id="line-19" name="line-19"></a><span class="cm"> * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-20" name="line-20"></a><span class="cm"> */</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-24" name="line-24"></a><span class="cp">#endif</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"><time.h></span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><cairo/cairo.h></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">"eom-transform.h"</span> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-jobs.h"</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="cm">/* The number of progress updates per transformation */</span> +<a id="line-36" name="line-36"></a><span class="cp">#define EOM_TRANSFORM_N_PROG_UPDATES 20</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomTransformPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="n">affine</span><span class="p">;</span> +<a id="line-40" name="line-40"></a><span class="p">};</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">;</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-45" name="line-45"></a><span class="p">}</span><span class="w"> </span><span class="n">EomPoint</span><span class="p">;</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="cm">/* Convert degrees into radians */</span> +<a id="line-48" name="line-48"></a><span class="cp">#define EOM_DEG_TO_RAD(degree) ((degree) * (G_PI/180.0))</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransform</span><span class="p">,</span><span class="w"> </span><span class="n">eom_transform</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-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> +<a id="line-53" name="line-53"></a><span class="n">eom_transform_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">)</span> +<a id="line-54" name="line-54"></a><span class="p">{</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">);</span> +<a id="line-56" name="line-56"></a><span class="p">}</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-59" name="line-59"></a><span class="n">eom_transform_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransformClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-60" name="line-60"></a><span class="p">{</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="p">}</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="cm">/**</span> +<a id="line-65" name="line-65"></a><span class="cm"> * eom_transform_apply:</span> +<a id="line-66" name="line-66"></a><span class="cm"> * @trans: a #EomTransform</span> +<a id="line-67" name="line-67"></a><span class="cm"> * @pixbuf: a #GdkPixbuf</span> +<a id="line-68" name="line-68"></a><span class="cm"> * @job: a #EomJob</span> +<a id="line-69" name="line-69"></a><span class="cm"> *</span> +<a id="line-70" name="line-70"></a><span class="cm"> * Applies the transformation in @trans to @pixbuf, setting its progress in @job.</span> +<a id="line-71" name="line-71"></a><span class="cm"> *</span> +<a id="line-72" name="line-72"></a><span class="cm"> * Returns: (transfer full): A new #GdkPixbuf with the transformation applied.</span> +<a id="line-73" name="line-73"></a><span class="cm"> **/</span> +<a id="line-74" name="line-74"></a><span class="n">GdkPixbuf</span><span class="o">*</span> +<a id="line-75" name="line-75"></a><span class="n">eom_transform_apply</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">)</span> +<a id="line-76" name="line-76"></a><span class="p">{</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">EomPoint</span><span class="w"> </span><span class="n">dest_top_left</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">EomPoint</span><span class="w"> </span><span class="n">dest_bottom_right</span><span class="p">;</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">EomPoint</span><span class="w"> </span><span class="n">vertices</span><span class="p">[</span><span class="mi">4</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">}</span><span class="w"> </span><span class="p">};</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">r_det</span><span class="p">;</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">inverted</span><span class="w"> </span><span class="p">[</span><span class="mi">6</span><span class="p">];</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">EomPoint</span><span class="w"> </span><span class="n">dest</span><span class="p">;</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_width</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_height</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_rowstride</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_n_channels</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">src_buffer</span><span class="p">;</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest_pixbuf</span><span class="p">;</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="p">;</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_rowstride</span><span class="p">;</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_n_channels</span><span class="p">;</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">dest_buffer</span><span class="p">;</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">src_pos</span><span class="p">;</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">dest_pos</span><span class="p">;</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="p">,</span><span class="w"> </span><span class="n">sx</span><span class="p">,</span><span class="w"> </span><span class="n">sy</span><span class="p">;</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-101" name="line-101"></a> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">progress_delta</span><span class="p">;</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">src_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">src_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">src_rowstride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_rowstride</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">src_n_channels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_n_channels</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_pixels</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="cm">/* find out the dimension of the destination pixbuf */</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">100000</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">100000</span><span class="p">;</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">dest_bottom_right</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-100000</span><span class="p">;</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">dest_bottom_right</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-100000</span><span class="p">;</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">dest</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vertices</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">x</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">src_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">dest</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vertices</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">y</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">src_height</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">cairo_matrix_transform_point</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">,</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="o">&</span><span class="n">dest</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">dest</span><span class="p">.</span><span class="n">y</span><span class="p">);</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">.</span><span class="n">x</span><span class="p">);</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">.</span><span class="n">y</span><span class="p">);</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">dest_bottom_right</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">dest_bottom_right</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">.</span><span class="n">x</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">dest_bottom_right</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">dest_bottom_right</span><span class="p">.</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">.</span><span class="n">y</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="p">}</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="cm">/* create the resulting pixbuf */</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">dest_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">abs</span><span class="w"> </span><span class="p">((</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">dest_bottom_right</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">));</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">dest_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">abs</span><span class="w"> </span><span class="p">((</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">dest_bottom_right</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">));</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">dest_pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_has_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">),</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_bits_per_sample</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">),</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">dest_rowstride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_rowstride</span><span class="w"> </span><span class="p">(</span><span class="n">dest_pixbuf</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">dest_n_channels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_n_channels</span><span class="w"> </span><span class="p">(</span><span class="n">dest_pixbuf</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">dest_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_pixels</span><span class="w"> </span><span class="p">(</span><span class="n">dest_pixbuf</span><span class="p">);</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="cm">/* invert the matrix so that we can compute the source pixel</span> +<a id="line-148" name="line-148"></a><span class="cm"> from the target pixel and convert the values to integer</span> +<a id="line-149" name="line-149"></a><span class="cm"> ones (faster!) FIXME: Maybe we can do some more</span> +<a id="line-150" name="line-150"></a><span class="cm"> improvements by using special mmx/3dnow features if</span> +<a id="line-151" name="line-151"></a><span class="cm"> available.</span> +<a id="line-152" name="line-152"></a><span class="cm"> */</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">r_det</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">xx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">yy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">yx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">xy</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">yy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">r_det</span><span class="p">;</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">inverted</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="o">-</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">yx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">r_det</span><span class="p">;</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">inverted</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="o">-</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">xy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">r_det</span><span class="p">;</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">xx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">r_det</span><span class="p">;</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">inverted</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="o">-</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">x0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">y0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">inverted</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="o">-</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">x0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">.</span><span class="n">y0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">3</span><span class="p">];</span> +<a id="line-160" name="line-160"></a> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">progress_delta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">EOM_TRANSFORM_N_PROG_UPDATES</span><span class="p">);</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="cm">/*</span> +<a id="line-164" name="line-164"></a><span class="cm"> * for every destination pixel (dx,dy) compute the source pixel (sx, sy)</span> +<a id="line-165" name="line-165"></a><span class="cm"> * and copy the color values</span> +<a id="line-166" name="line-166"></a><span class="cm"> */</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">y</span><span class="p">;</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dest_height</span><span class="p">;</span><span class="w"> </span><span class="n">y</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dest_top_left</span><span class="p">.</span><span class="n">x</span><span class="p">;</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">dest_width</span><span class="p">;</span><span class="w"> </span><span class="n">x</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">dx</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-169" name="line-169"></a> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">sx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">sy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">inverted</span><span class="p">[</span><span class="mi">5</span><span class="p">];</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sx</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">sx</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">src_width</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">sy</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">sy</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">src_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">src_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_buffer</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">sy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">src_rowstride</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">sx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">src_n_channels</span><span class="p">;</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">dest_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dest_buffer</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">dest_rowstride</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">dest_n_channels</span><span class="p">;</span> +<a id="line-176" name="line-176"></a> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="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"><</span><span class="w"> </span><span class="n">src_n_channels</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">dest_pos</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">src_pos</span><span class="p">[</span><span class="n">i</span><span class="p">];</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="p">}</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">}</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="p">}</span> +<a id="line-182" name="line-182"></a> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</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">y</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="n">progress_delta</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">progress</span><span class="p">;</span> +<a id="line-185" name="line-185"></a> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">progress</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="w"> </span><span class="n">dest_height</span><span class="p">;</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">eom_job_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">progress</span><span class="p">);</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="p">}</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="p">}</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">eom_job_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="p">}</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">dest_pixbuf</span><span class="p">;</span> +<a id="line-199" name="line-199"></a><span class="p">}</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-202" name="line-202"></a><span class="n">_eom_cairo_matrix_copy</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">)</span> +<a id="line-203" name="line-203"></a><span class="p">{</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">cairo_matrix_init</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">xx</span><span class="p">,</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">yx</span><span class="p">,</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">xy</span><span class="p">,</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">yy</span><span class="p">,</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">y0</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="p">}</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="cp">#define DOUBLE_EQUAL_MAX_DIFF 1e-6</span> +<a id="line-208" name="line-208"></a><span class="cp">#define DOUBLE_EQUAL(a,b) (fabs (a - b) < DOUBLE_EQUAL_MAX_DIFF)</span> +<a id="line-209" name="line-209"></a><span class="cm">/* art_affine_equal modified to work with cairo_matrix_t */</span> +<a id="line-210" name="line-210"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-211" name="line-211"></a><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">)</span> +<a id="line-212" name="line-212"></a><span class="p">{</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="o">-></span><span class="n">xx</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="o">-></span><span class="n">xx</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="o">-></span><span class="n">yx</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="o">-></span><span class="n">yx</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="o">-></span><span class="n">xy</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="o">-></span><span class="n">xy</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="o">-></span><span class="n">yy</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="o">-></span><span class="n">yy</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="o">-></span><span class="n">x0</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="o">-></span><span class="n">x0</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">DOUBLE_EQUAL</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="o">-></span><span class="n">y0</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="o">-></span><span class="n">y0</span><span class="p">)</span><span class="w"> </span><span class="p">);</span> +<a id="line-216" name="line-216"></a><span class="p">}</span> +<a id="line-217" name="line-217"></a> +<a id="line-218" name="line-218"></a><span class="cm">/* art_affine_flip modified to work with cairo_matrix_t */</span> +<a id="line-219" name="line-219"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-220" name="line-220"></a><span class="n">_eom_cairo_matrix_flip</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="o">*</span><span class="n">dst</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">horiz</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">vert</span><span class="p">)</span> +<a id="line-221" name="line-221"></a><span class="p">{</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">dst</span><span class="o">-></span><span class="n">xx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">horiz</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">-</span><span class="n">src</span><span class="o">-></span><span class="n">xx</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">xx</span><span class="p">;</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">dst</span><span class="o">-></span><span class="n">yx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">horiz</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">-</span><span class="n">src</span><span class="o">-></span><span class="n">yx</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">yx</span><span class="p">;</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">dst</span><span class="o">-></span><span class="n">xy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vert</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">-</span><span class="n">src</span><span class="o">-></span><span class="n">xy</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">xy</span><span class="p">;</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">dst</span><span class="o">-></span><span class="n">yy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vert</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">-</span><span class="n">src</span><span class="o">-></span><span class="n">yy</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">yy</span><span class="p">;</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">dst</span><span class="o">-></span><span class="n">x0</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">horiz</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">-</span><span class="n">src</span><span class="o">-></span><span class="n">x0</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">x0</span><span class="p">;</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">dst</span><span class="o">-></span><span class="n">y0</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vert</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">-</span><span class="n">src</span><span class="o">-></span><span class="n">y0</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">src</span><span class="o">-></span><span class="n">y0</span><span class="p">;</span> +<a id="line-228" name="line-228"></a><span class="p">}</span> +<a id="line-229" name="line-229"></a> +<a id="line-230" name="line-230"></a><span class="cm">/**</span> +<a id="line-231" name="line-231"></a><span class="cm"> * eom_transform_reverse:</span> +<a id="line-232" name="line-232"></a><span class="cm"> * @trans: a #EomTransform</span> +<a id="line-233" name="line-233"></a><span class="cm"> *</span> +<a id="line-234" name="line-234"></a><span class="cm"> * Creates the reverse transformation of @trans</span> +<a id="line-235" name="line-235"></a><span class="cm"> *</span> +<a id="line-236" name="line-236"></a><span class="cm"> * Returns: (transfer full): a new transformation</span> +<a id="line-237" name="line-237"></a><span class="cm"> **/</span> +<a id="line-238" name="line-238"></a><span class="n">EomTransform</span><span class="o">*</span> +<a id="line-239" name="line-239"></a><span class="n">eom_transform_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">)</span> +<a id="line-240" name="line-240"></a><span class="p">{</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">reverse</span><span class="p">;</span> +<a id="line-242" name="line-242"></a> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-244" name="line-244"></a> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">reverse</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_TRANSFORM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-246" name="line-246"></a> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">_eom_cairo_matrix_copy</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">reverse</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">);</span> +<a id="line-248" name="line-248"></a> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_matrix_invert</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">reverse</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">CAIRO_STATUS_SUCCESS</span><span class="p">,</span><span class="w"> </span><span class="n">reverse</span><span class="p">);</span> +<a id="line-250" name="line-250"></a> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">reverse</span><span class="p">;</span> +<a id="line-252" name="line-252"></a><span class="p">}</span> +<a id="line-253" name="line-253"></a> +<a id="line-254" name="line-254"></a><span class="cm">/**</span> +<a id="line-255" name="line-255"></a><span class="cm"> * eom_transform_compose:</span> +<a id="line-256" name="line-256"></a><span class="cm"> * @trans: a #EomTransform</span> +<a id="line-257" name="line-257"></a><span class="cm"> * @compose: another #EomTransform</span> +<a id="line-258" name="line-258"></a><span class="cm"> *</span> +<a id="line-259" name="line-259"></a><span class="cm"> *</span> +<a id="line-260" name="line-260"></a><span class="cm"> *</span> +<a id="line-261" name="line-261"></a><span class="cm"> * Returns: (transfer full): a new transform</span> +<a id="line-262" name="line-262"></a><span class="cm"> **/</span> +<a id="line-263" name="line-263"></a><span class="n">EomTransform</span><span class="o">*</span> +<a id="line-264" name="line-264"></a><span class="n">eom_transform_compose</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">compose</span><span class="p">)</span> +<a id="line-265" name="line-265"></a><span class="p">{</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">composition</span><span class="p">;</span> +<a id="line-267" name="line-267"></a> +<a id="line-268" name="line-268"></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">EOM_IS_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-269" name="line-269"></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">EOM_IS_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">compose</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">composition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_TRANSFORM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-272" name="line-272"></a> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">cairo_matrix_multiply</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">composition</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">,</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">,</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="o">&</span><span class="n">compose</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">);</span> +<a id="line-276" name="line-276"></a> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">composition</span><span class="p">;</span> +<a id="line-278" name="line-278"></a><span class="p">}</span> +<a id="line-279" name="line-279"></a> +<a id="line-280" name="line-280"></a><span class="n">gboolean</span> +<a id="line-281" name="line-281"></a><span class="n">eom_transform_is_identity</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">)</span> +<a id="line-282" name="line-282"></a><span class="p">{</span> +<a id="line-283" name="line-283"></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">cairo_matrix_t</span><span class="w"> </span><span class="n">identity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-284" name="line-284"></a> +<a id="line-285" name="line-285"></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">EOM_IS_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">identity</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">);</span> +<a id="line-288" name="line-288"></a><span class="p">}</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="n">EomTransform</span><span class="o">*</span> +<a id="line-291" name="line-291"></a><span class="n">eom_transform_identity_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-292" name="line-292"></a><span class="p">{</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">;</span> +<a id="line-294" name="line-294"></a> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_TRANSFORM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-296" name="line-296"></a> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">cairo_matrix_init_identity</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">);</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">trans</span><span class="p">;</span> +<a id="line-300" name="line-300"></a><span class="p">}</span> +<a id="line-301" name="line-301"></a> +<a id="line-302" name="line-302"></a><span class="n">EomTransform</span><span class="o">*</span> +<a id="line-303" name="line-303"></a><span class="n">eom_transform_rotate_new</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">degree</span><span class="p">)</span> +<a id="line-304" name="line-304"></a><span class="p">{</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">;</span> +<a id="line-306" name="line-306"></a> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_TRANSFORM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-308" name="line-308"></a> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">cairo_matrix_init_rotate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_DEG_TO_RAD</span><span class="p">(</span><span class="n">degree</span><span class="p">));</span> +<a id="line-310" name="line-310"></a> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">trans</span><span class="p">;</span> +<a id="line-312" name="line-312"></a><span class="p">}</span> +<a id="line-313" name="line-313"></a> +<a id="line-314" name="line-314"></a><span class="n">EomTransform</span><span class="o">*</span> +<a id="line-315" name="line-315"></a><span class="n">eom_transform_flip_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransformType</span><span class="w"> </span><span class="n">type</span><span class="p">)</span> +<a id="line-316" name="line-316"></a><span class="p">{</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">;</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">horiz</span><span class="p">,</span><span class="w"> </span><span class="n">vert</span><span class="p">;</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_TRANSFORM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-321" name="line-321"></a> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">cairo_matrix_init_identity</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">);</span> +<a id="line-323" name="line-323"></a> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">horiz</span><span class="w"> </span><span class="o">=</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">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">);</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">vert</span><span class="w"> </span><span class="o">=</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">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">);</span> +<a id="line-326" name="line-326"></a> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">_eom_cairo_matrix_flip</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">,</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">,</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">horiz</span><span class="p">,</span><span class="w"> </span><span class="n">vert</span><span class="p">);</span> +<a id="line-330" name="line-330"></a> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">trans</span><span class="p">;</span> +<a id="line-332" name="line-332"></a><span class="p">}</span> +<a id="line-333" name="line-333"></a> +<a id="line-334" name="line-334"></a><span class="n">EomTransform</span><span class="o">*</span> +<a id="line-335" name="line-335"></a><span class="n">eom_transform_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransformType</span><span class="w"> </span><span class="n">type</span><span class="p">)</span> +<a id="line-336" name="line-336"></a><span class="p">{</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">temp1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">temp2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_NONE</span><span class="p">:</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_identity_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">:</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_flip_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">);</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_180</span><span class="p">:</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_rotate_new</span><span class="w"> </span><span class="p">(</span><span class="mi">180</span><span class="p">);</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">:</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_flip_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">);</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_TRANSPOSE</span><span class="p">:</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">temp1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_rotate_new</span><span class="w"> </span><span class="p">(</span><span class="mi">90</span><span class="p">);</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">temp2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_flip_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">);</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_compose</span><span class="w"> </span><span class="p">(</span><span class="n">temp1</span><span class="p">,</span><span class="w"> </span><span class="n">temp2</span><span class="p">);</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">temp1</span><span class="p">);</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">temp2</span><span class="p">);</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_90</span><span class="p">:</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_rotate_new</span><span class="w"> </span><span class="p">(</span><span class="mi">90</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_TRANSVERSE</span><span class="p">:</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">temp1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_rotate_new</span><span class="w"> </span><span class="p">(</span><span class="mi">90</span><span class="p">);</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">temp2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_flip_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_compose</span><span class="w"> </span><span class="p">(</span><span class="n">temp1</span><span class="p">,</span><span class="w"> </span><span class="n">temp2</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">temp1</span><span class="p">);</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">temp2</span><span class="p">);</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_TRANSFORM_ROT_270</span><span class="p">:</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_rotate_new</span><span class="w"> </span><span class="p">(</span><span class="mi">270</span><span class="p">);</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_transform_identity_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="p">}</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">trans</span><span class="p">;</span> +<a id="line-379" name="line-379"></a><span class="p">}</span> +<a id="line-380" name="line-380"></a> +<a id="line-381" name="line-381"></a><span class="n">EomTransformType</span> +<a id="line-382" name="line-382"></a><span class="n">eom_transform_get_transform_type</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">)</span> +<a id="line-383" name="line-383"></a><span class="p">{</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="n">a1</span><span class="p">,</span><span class="w"> </span><span class="n">a2</span><span class="p">;</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">EomTransformPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></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">EOM_IS_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">),</span><span class="w"> </span><span class="n">EOM_TRANSFORM_NONE</span><span class="p">);</span> +<a id="line-388" name="line-388"></a> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-390" name="line-390"></a> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">cairo_matrix_init_rotate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_DEG_TO_RAD</span><span class="p">(</span><span class="mi">90</span><span class="p">));</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_TRANSFORM_ROT_90</span><span class="p">;</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="p">}</span> +<a id="line-395" name="line-395"></a> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">cairo_matrix_init_rotate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_DEG_TO_RAD</span><span class="p">(</span><span class="mi">180</span><span class="p">));</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_TRANSFORM_ROT_180</span><span class="p">;</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="p">}</span> +<a id="line-400" name="line-400"></a> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">cairo_matrix_init_rotate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_DEG_TO_RAD</span><span class="p">(</span><span class="mi">270</span><span class="p">));</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_TRANSFORM_ROT_270</span><span class="p">;</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="p">}</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">cairo_matrix_init_identity</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">);</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">_eom_cairo_matrix_flip</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">;</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="p">}</span> +<a id="line-411" name="line-411"></a> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">cairo_matrix_init_identity</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">);</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">_eom_cairo_matrix_flip</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">;</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="p">}</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">cairo_matrix_init_rotate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">a1</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_DEG_TO_RAD</span><span class="p">(</span><span class="mi">90</span><span class="p">));</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">cairo_matrix_init_identity</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">a2</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">_eom_cairo_matrix_flip</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">a2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">a2</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">cairo_matrix_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">a1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">a2</span><span class="p">);</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_TRANSFORM_TRANSPOSE</span><span class="p">;</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="p">}</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="cm">/* A transversion is a 180° rotation followed by a transposition */</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="cm">/* Reuse the transposition from the previous step for this. */</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">cairo_matrix_init_rotate</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">a1</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_DEG_TO_RAD</span><span class="p">(</span><span class="mi">180</span><span class="p">));</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">cairo_matrix_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">a2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">a1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">affine</span><span class="p">);</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_eom_cairo_matrix_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">a2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_TRANSFORM_TRANSVERSE</span><span class="p">;</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="p">}</span> +<a id="line-433" name="line-433"></a> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_TRANSFORM_NONE</span><span class="p">;</span> +<a id="line-435" name="line-435"></a><span class="p">}</span> +<a id="line-436" name="line-436"></a> +<a id="line-437" name="line-437"></a><span class="n">gboolean</span> +<a id="line-438" name="line-438"></a><span class="n">eom_transform_get_affine</span><span class="w"> </span><span class="p">(</span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_matrix_t</span><span class="w"> </span><span class="o">*</span><span class="n">affine</span><span class="p">)</span> +<a id="line-439" name="line-439"></a><span class="p">{</span> +<a id="line-440" name="line-440"></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">EOM_IS_TRANSFORM</span><span class="w"> </span><span class="p">(</span><span class="n">trans</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-441" name="line-441"></a> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">_eom_cairo_matrix_copy</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">trans</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">affine</span><span class="p">,</span><span class="w"> </span><span class="n">affine</span><span class="p">);</span> +<a id="line-443" name="line-443"></a> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-445" name="line-445"></a><span class="p">}</span> +<a id="line-446" name="line-446"></a> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/31.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/31.html new file mode 100644 index 0000000..b02571c --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/31.html @@ -0,0 +1,2197 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-uri-converter.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-uri-converter.c</p> +<a href="31.html#line-53"> unknownMacro 53</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span> +<span class="normal">789</span> +<span class="normal">790</span> +<span class="normal">791</span> +<span class="normal">792</span> +<span class="normal">793</span> +<span class="normal">794</span> +<span class="normal">795</span> +<span class="normal">796</span> +<span class="normal">797</span> +<span class="normal">798</span> +<span class="normal">799</span> +<span class="normal">800</span> +<span class="normal">801</span> +<span class="normal">802</span> +<span class="normal">803</span> +<span class="normal">804</span> +<span class="normal">805</span> +<span class="normal">806</span> +<span class="normal">807</span> +<span class="normal">808</span> +<span class="normal">809</span> +<span class="normal">810</span> +<span class="normal">811</span> +<span class="normal">812</span> +<span class="normal">813</span> +<span class="normal">814</span> +<span class="normal">815</span> +<span class="normal">816</span> +<span class="normal">817</span> +<span class="normal">818</span> +<span class="normal">819</span> +<span class="normal">820</span> +<span class="normal">821</span> +<span class="normal">822</span> +<span class="normal">823</span> +<span class="normal">824</span> +<span class="normal">825</span> +<span class="normal">826</span> +<span class="normal">827</span> +<span class="normal">828</span> +<span class="normal">829</span> +<span class="normal">830</span> +<span class="normal">831</span> +<span class="normal">832</span> +<span class="normal">833</span> +<span class="normal">834</span> +<span class="normal">835</span> +<span class="normal">836</span> +<span class="normal">837</span> +<span class="normal">838</span> +<span class="normal">839</span> +<span class="normal">840</span> +<span class="normal">841</span> +<span class="normal">842</span> +<span class="normal">843</span> +<span class="normal">844</span> +<span class="normal">845</span> +<span class="normal">846</span> +<span class="normal">847</span> +<span class="normal">848</span> +<span class="normal">849</span> +<span class="normal">850</span> +<span class="normal">851</span> +<span class="normal">852</span> +<span class="normal">853</span> +<span class="normal">854</span> +<span class="normal">855</span> +<span class="normal">856</span> +<span class="normal">857</span> +<span class="normal">858</span> +<span class="normal">859</span> +<span class="normal">860</span> +<span class="normal">861</span> +<span class="normal">862</span> +<span class="normal">863</span> +<span class="normal">864</span> +<span class="normal">865</span> +<span class="normal">866</span> +<span class="normal">867</span> +<span class="normal">868</span> +<span class="normal">869</span> +<span class="normal">870</span> +<span class="normal">871</span> +<span class="normal">872</span> +<span class="normal">873</span> +<span class="normal">874</span> +<span class="normal">875</span> +<span class="normal">876</span> +<span class="normal">877</span> +<span class="normal">878</span> +<span class="normal">879</span> +<span class="normal">880</span> +<span class="normal">881</span> +<span class="normal">882</span> +<span class="normal">883</span> +<span class="normal">884</span> +<span class="normal">885</span> +<span class="normal">886</span> +<span class="normal">887</span> +<span class="normal">888</span> +<span class="normal">889</span> +<span class="normal">890</span> +<span class="normal">891</span> +<span class="normal">892</span> +<span class="normal">893</span> +<span class="normal">894</span> +<span class="normal">895</span> +<span class="normal">896</span> +<span class="normal">897</span> +<span class="normal">898</span> +<span class="normal">899</span> +<span class="normal">900</span> +<span class="normal">901</span> +<span class="normal">902</span> +<span class="normal">903</span> +<span class="normal">904</span> +<span class="normal">905</span> +<span class="normal">906</span> +<span class="normal">907</span> +<span class="normal">908</span> +<span class="normal">909</span> +<span class="normal">910</span> +<span class="normal">911</span> +<span class="normal">912</span> +<span class="normal">913</span> +<span class="normal">914</span> +<span class="normal">915</span> +<span class="normal">916</span> +<span class="normal">917</span> +<span class="normal">918</span> +<span class="normal">919</span> +<span class="normal">920</span> +<span class="normal">921</span> +<span class="normal">922</span> +<span class="normal">923</span> +<span class="normal">924</span> +<span class="normal">925</span> +<span class="normal">926</span> +<span class="normal">927</span> +<span class="normal">928</span> +<span class="normal">929</span> +<span class="normal">930</span> +<span class="normal">931</span> +<span class="normal">932</span> +<span class="normal">933</span> +<span class="normal">934</span> +<span class="normal">935</span> +<span class="normal">936</span> +<span class="normal">937</span> +<span class="normal">938</span> +<span class="normal">939</span> +<span class="normal">940</span> +<span class="normal">941</span> +<span class="normal">942</span> +<span class="normal">943</span> +<span class="normal">944</span> +<span class="normal">945</span> +<span class="normal">946</span> +<span class="normal">947</span> +<span class="normal">948</span> +<span class="normal">949</span> +<span class="normal">950</span> +<span class="normal">951</span> +<span class="normal">952</span> +<span class="normal">953</span> +<span class="normal">954</span> +<span class="normal">955</span> +<span class="normal">956</span> +<span class="normal">957</span> +<span class="normal">958</span> +<span class="normal">959</span> +<span class="normal">960</span> +<span class="normal">961</span> +<span class="normal">962</span> +<span class="normal">963</span> +<span class="normal">964</span> +<span class="normal">965</span> +<span class="normal">966</span> +<span class="normal">967</span> +<span class="normal">968</span> +<span class="normal">969</span> +<span class="normal">970</span> +<span class="normal">971</span> +<span class="normal">972</span> +<span class="normal">973</span> +<span class="normal">974</span> +<span class="normal">975</span> +<span class="normal">976</span> +<span class="normal">977</span> +<span class="normal">978</span> +<span class="normal">979</span> +<span class="normal">980</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-2" name="line-2"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-3" name="line-3"></a><span class="cp">#endif</span> +<a id="line-4" name="line-4"></a> +<a id="line-5" name="line-5"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span> +<a id="line-6" name="line-6"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-7" name="line-7"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-8" name="line-8"></a> +<a id="line-9" name="line-9"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-uri-converter.h"</span> +<a id="line-10" name="line-10"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-pixbuf-util.h"</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-13" name="line-13"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-14" name="line-14"></a><span class="w"> </span><span class="n">PROP_CONVERT_SPACES</span><span class="p">,</span> +<a id="line-15" name="line-15"></a><span class="w"> </span><span class="n">PROP_SPACE_CHARACTER</span><span class="p">,</span> +<a id="line-16" name="line-16"></a><span class="w"> </span><span class="n">PROP_COUNTER_START</span><span class="p">,</span> +<a id="line-17" name="line-17"></a><span class="w"> </span><span class="n">PROP_COUNTER_N_DIGITS</span><span class="p">,</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="n">PROP_N_IMAGES</span> +<a id="line-19" name="line-19"></a><span class="p">};</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="n">EomUCType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="k">union</span><span class="w"> </span><span class="p">{</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">;</span><span class="w"> </span><span class="cm">/* if type == EOM_UC_STRING */</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">counter</span><span class="p">;</span><span class="w"> </span><span class="cm">/* if type == EOM_UC_COUNTER */</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="p">}</span><span class="w"> </span><span class="n">EomUCToken</span><span class="p">;</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomURIConverterPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">base_file</span><span class="p">;</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">token_list</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">suffix</span><span class="p">;</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">img_format</span><span class="p">;</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">requires_exif</span><span class="p">;</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="cm">/* options */</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">convert_spaces</span><span class="p">;</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">space_character</span><span class="p">;</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">counter_start</span><span class="p">;</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">counter_n_digits</span><span class="p">;</span> +<a id="line-41" name="line-41"></a><span class="p">};</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_uri_converter_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_uri_converter_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">);</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="p">,</span><span class="w"> </span><span class="n">eom_uri_converter</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-56" name="line-56"></a><span class="n">free_token</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-57" name="line-57"></a><span class="p">{</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">EomUCToken</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">EomUCToken</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_UC_STRING</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">string</span><span class="p">);</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="p">}</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">EomUCToken</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">);</span> +<a id="line-65" name="line-65"></a><span class="p">}</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-68" name="line-68"></a><span class="n">eom_uri_converter_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-69" name="line-69"></a><span class="p">{</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">instance</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">instance</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">base_file</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">base_file</span><span class="p">);</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">base_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">}</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">token_list</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">token_list</span><span class="p">,</span><span class="w"> </span><span class="n">free_token</span><span class="p">);</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">token_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">}</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">suffix</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-86" name="line-86"></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">-></span><span class="n">suffix</span><span class="p">);</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">suffix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="p">}</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_uri_converter_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-91" name="line-91"></a><span class="p">}</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-94" name="line-94"></a><span class="n">eom_uri_converter_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">)</span> +<a id="line-95" name="line-95"></a><span class="p">{</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">conv</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_uri_converter_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">);</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">convert_spaces</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">space_character</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'_'</span><span class="p">;</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">requires_exif</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-105" name="line-105"></a><span class="p">}</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-108" name="line-108"></a><span class="n">eom_uri_converter_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverterClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-109" name="line-109"></a><span class="p">{</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_uri_converter_dispose</span><span class="p">;</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="cm">/* GObjectClass */</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_uri_converter_set_property</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_uri_converter_get_property</span><span class="p">;</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="cm">/* Properties */</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">object_class</span><span class="p">,</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">PROP_CONVERT_SPACES</span><span class="p">,</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">"convert-spaces"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">object_class</span><span class="p">,</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">PROP_SPACE_CHARACTER</span><span class="p">,</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">g_param_spec_char</span><span class="w"> </span><span class="p">(</span><span class="s">"space-character"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="sc">' '</span><span class="p">,</span><span class="w"> </span><span class="sc">'~'</span><span class="p">,</span><span class="w"> </span><span class="sc">'_'</span><span class="p">,</span><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">object_class</span><span class="p">,</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">PROP_COUNTER_START</span><span class="p">,</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">g_param_spec_ulong</span><span class="w"> </span><span class="p">(</span><span class="s">"counter-start"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">G_MAXULONG</span><span class="p">,</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">object_class</span><span class="p">,</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">PROP_COUNTER_N_DIGITS</span><span class="p">,</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">g_param_spec_uint</span><span class="w"> </span><span class="p">(</span><span class="s">"counter-n-digits"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">G_MAXUINT</span><span class="p">,</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-148" name="line-148"></a> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">object_class</span><span class="p">,</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">PROP_N_IMAGES</span><span class="p">,</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">g_param_spec_uint</span><span class="w"> </span><span class="p">(</span><span class="s">"n-images"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">G_MAXUINT</span><span class="p">,</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">G_PARAM_WRITABLE</span><span class="p">));</span> +<a id="line-157" name="line-157"></a><span class="p">}</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="n">GQuark</span> +<a id="line-160" name="line-160"></a><span class="n">eom_uc_error_quark</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-161" name="line-161"></a><span class="p">{</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GQuark</span><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">q</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_quark_from_static_string</span><span class="w"> </span><span class="p">(</span><span class="s">"eom-uri-converter-error-quark"</span><span class="p">);</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">q</span><span class="p">;</span> +<a id="line-167" name="line-167"></a><span class="p">}</span> +<a id="line-168" name="line-168"></a> +<a id="line-169" name="line-169"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-170" name="line-170"></a><span class="n">eom_uri_converter_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-174" name="line-174"></a><span class="p">{</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">;</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-177" name="line-177"></a> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-179" name="line-179"></a> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">conv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-181" name="line-181"></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">conv</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-182" name="line-182"></a> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="p">{</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CONVERT_SPACES</span><span class="p">:</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">convert_spaces</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SPACE_CHARACTER</span><span class="p">:</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">space_character</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_schar</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COUNTER_START</span><span class="p">:</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="p">{</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">new_n_digits</span><span class="p">;</span> +<a id="line-196" name="line-196"></a> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_ulong</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">new_n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ceil</span><span class="w"> </span><span class="p">(</span><span class="n">log10</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">counter_start</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="p">(</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_n_digits</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">));</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_n_digits</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_n_digits</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ceil</span><span class="w"> </span><span class="p">(</span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">log10</span><span class="w"> </span><span class="p">(</span><span class="n">G_MAXULONG</span><span class="p">),</span><span class="w"> </span><span class="n">new_n_digits</span><span class="p">));</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="p">}</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">}</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COUNTER_N_DIGITS</span><span class="p">:</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ceil</span><span class="w"> </span><span class="p">(</span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">log10</span><span class="w"> </span><span class="p">(</span><span class="n">G_MAXULONG</span><span class="p">),</span><span class="w"> </span><span class="n">g_value_get_uint</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)));</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_N_IMAGES</span><span class="p">:</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ceil</span><span class="w"> </span><span class="p">(</span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">log10</span><span class="w"> </span><span class="p">(</span><span class="n">G_MAXULONG</span><span class="p">),</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">log10</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">counter_start</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">g_value_get_uint</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">))));</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-215" name="line-215"></a> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="p">}</span> +<a id="line-219" name="line-219"></a><span class="p">}</span> +<a id="line-220" name="line-220"></a> +<a id="line-221" name="line-221"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-222" name="line-222"></a><span class="n">eom_uri_converter_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-226" name="line-226"></a><span class="p">{</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">;</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-229" name="line-229"></a> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-231" name="line-231"></a> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">conv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-233" name="line-233"></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">conv</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="p">{</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CONVERT_SPACES</span><span class="p">:</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">convert_spaces</span><span class="p">);</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SPACE_CHARACTER</span><span class="p">:</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">g_value_set_schar</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">space_character</span><span class="p">);</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-244" name="line-244"></a> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COUNTER_START</span><span class="p">:</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">g_value_set_ulong</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_start</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-248" name="line-248"></a> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COUNTER_N_DIGITS</span><span class="p">:</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">g_value_set_uint</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_n_digits</span><span class="p">);</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-252" name="line-252"></a> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">}</span> +<a id="line-256" name="line-256"></a><span class="p">}</span> +<a id="line-257" name="line-257"></a> +<a id="line-258" name="line-258"></a><span class="cm">/* parser states */</span> +<a id="line-259" name="line-259"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">PARSER_NONE</span><span class="p">,</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">PARSER_STRING</span><span class="p">,</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">PARSER_TOKEN</span> +<a id="line-263" name="line-263"></a><span class="p">};</span> +<a id="line-264" name="line-264"></a> +<a id="line-265" name="line-265"></a><span class="k">static</span><span class="w"> </span><span class="n">EomUCToken</span><span class="o">*</span> +<a id="line-266" name="line-266"></a><span class="nf">create_token_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">substr_start</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">substr_len</span><span class="p">)</span> +<a id="line-267" name="line-267"></a><span class="p">{</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">start_byte</span><span class="p">;</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">end_byte</span><span class="p">;</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_bytes</span><span class="p">;</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">EomUCToken</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="p">;</span> +<a id="line-272" name="line-272"></a> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">substr_len</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">start_byte</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_offset_to_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">substr_start</span><span class="p">);</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">end_byte</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_offset_to_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">substr_start</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">substr_len</span><span class="p">);</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="cm">/* FIXME: is this right? */</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">n_bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">end_byte</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">start_byte</span><span class="p">;</span> +<a id="line-281" name="line-281"></a> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">token</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">EomUCToken</span><span class="p">);</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_UC_STRING</span><span class="p">;</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="p">,</span><span class="w"> </span><span class="n">n_bytes</span><span class="p">);</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_strncpy</span><span class="w"> </span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">start_byte</span><span class="p">,</span><span class="w"> </span><span class="n">substr_len</span><span class="p">);</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-288" name="line-288"></a><span class="p">}</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="k">static</span><span class="w"> </span><span class="n">EomUCToken</span><span class="o">*</span> +<a id="line-291" name="line-291"></a><span class="nf">create_token_counter</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">start_counter</span><span class="p">)</span> +<a id="line-292" name="line-292"></a><span class="p">{</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">EomUCToken</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="p">;</span> +<a id="line-294" name="line-294"></a> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">token</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">EomUCToken</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_UC_COUNTER</span><span class="p">;</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">counter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-300" name="line-300"></a><span class="p">}</span> +<a id="line-301" name="line-301"></a> +<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="n">EomUCToken</span><span class="o">*</span> +<a id="line-303" name="line-303"></a><span class="nf">create_token_other</span><span class="w"> </span><span class="p">(</span><span class="n">EomUCType</span><span class="w"> </span><span class="n">type</span><span class="p">)</span> +<a id="line-304" name="line-304"></a><span class="p">{</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">EomUCToken</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="p">;</span> +<a id="line-306" name="line-306"></a> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">token</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">EomUCToken</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type</span><span class="p">;</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-311" name="line-311"></a><span class="p">}</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="k">static</span><span class="w"> </span><span class="n">GList</span><span class="o">*</span> +<a id="line-314" name="line-314"></a><span class="nf">eom_uri_converter_parse_string</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">)</span> +<a id="line-315" name="line-315"></a><span class="p">{</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">PARSER_NONE</span><span class="p">;</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">substr_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">EomUCToken</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="p">;</span> +<a id="line-326" name="line-326"></a> +<a id="line-327" name="line-327"></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">EOM_IS_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-328" name="line-328"></a> +<a id="line-329" name="line-329"></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">conv</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-330" name="line-330"></a> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-332" name="line-332"></a> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-335" name="line-335"></a> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_strlen</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">string</span><span class="p">;</span> +<a id="line-338" name="line-338"></a> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">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"><</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-342" name="line-342"></a> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_NONE</span><span class="p">:</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'%'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">PARSER_TOKEN</span><span class="p">;</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">substr_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">PARSER_STRING</span><span class="p">;</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">}</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-354" name="line-354"></a> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_STRING</span><span class="p">:</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'%'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">start</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_token_string</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">substr_len</span><span class="p">);</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="p">}</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">PARSER_TOKEN</span><span class="p">;</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">substr_len</span><span class="o">++</span><span class="p">;</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="p">}</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-367" name="line-367"></a> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_TOKEN</span><span class="p">:</span><span class="w"> </span><span class="p">{</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">EomUCType</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">EOM_UC_END</span><span class="p">;</span> +<a id="line-370" name="line-370"></a> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'f'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_UC_FILENAME</span><span class="p">;</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="p">}</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'n'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_UC_COUNTER</span><span class="p">;</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_token_counter</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">counter_start</span><span class="p">);</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="p">}</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'c'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-379" name="line-379"></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">EOM_UC_COMMENT</span><span class="p">;</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="p">}</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'d'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-382" name="line-382"></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">EOM_UC_DATE</span><span class="p">;</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="p">}</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'t'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_UC_TIME</span><span class="p">;</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="p">}</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'a'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-388" name="line-388"></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">EOM_UC_DAY</span><span class="p">;</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="p">}</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'m'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-391" name="line-391"></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">EOM_UC_MONTH</span><span class="p">;</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="p">}</span> +<a id="line-393" name="line-393"></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">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'y'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-394" name="line-394"></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">EOM_UC_YEAR</span><span class="p">;</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="p">}</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'h'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-397" name="line-397"></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">EOM_UC_HOUR</span><span class="p">;</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="p">}</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'i'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-400" name="line-400"></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">EOM_UC_MINUTE</span><span class="p">;</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="p">}</span> +<a id="line-402" name="line-402"></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">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'s'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-403" name="line-403"></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">EOM_UC_SECOND</span><span class="p">;</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="p">}</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="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">EOM_UC_END</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_token_other</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">requires_exif</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="p">}</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">PARSER_NONE</span><span class="p">;</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="p">}</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="p">}</span> +<a id="line-416" name="line-416"></a> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">token</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">);</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">}</span> +<a id="line-420" name="line-420"></a> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_next_char</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">}</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PARSER_TOKEN</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="cm">/* add remaining chars as string token */</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">create_token_string</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">substr_len</span><span class="p">));</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="p">}</span> +<a id="line-428" name="line-428"></a> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-430" name="line-430"></a><span class="p">}</span> +<a id="line-431" name="line-431"></a> +<a id="line-432" name="line-432"></a><span class="kt">void</span> +<a id="line-433" name="line-433"></a><span class="nf">eom_uri_converter_print_list</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">)</span> +<a id="line-434" name="line-434"></a><span class="p">{</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-437" name="line-437"></a> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">));</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></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">conv</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-441" name="line-441"></a> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">token_list</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">EomUCToken</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="p">;</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-445" name="line-445"></a> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">EomUCToken</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-447" name="line-447"></a> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_STRING</span><span class="p">:</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"string [%s]"</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">string</span><span class="p">);</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_FILENAME</span><span class="p">:</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"filename"</span><span class="p">;</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_COUNTER</span><span class="p">:</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"counter [%lu]"</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">counter</span><span class="p">);</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_COMMENT</span><span class="p">:</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"comment"</span><span class="p">;</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_DATE</span><span class="p">:</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"date"</span><span class="p">;</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_TIME</span><span class="p">:</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"time"</span><span class="p">;</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_DAY</span><span class="p">:</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"day"</span><span class="p">;</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_MONTH</span><span class="p">:</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"month"</span><span class="p">;</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_YEAR</span><span class="p">:</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"year"</span><span class="p">;</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_HOUR</span><span class="p">:</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"hour"</span><span class="p">;</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_MINUTE</span><span class="p">:</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"minute"</span><span class="p">;</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_SECOND</span><span class="p">:</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"second"</span><span class="p">;</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"unknown"</span><span class="p">;</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="p">}</span> +<a id="line-489" name="line-489"></a> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">"- %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">str</span><span class="p">);</span> +<a id="line-491" name="line-491"></a> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_UC_STRING</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_UC_COUNTER</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="p">}</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="p">}</span> +<a id="line-496" name="line-496"></a><span class="p">}</span> +<a id="line-497" name="line-497"></a> +<a id="line-498" name="line-498"></a><span class="n">EomURIConverter</span><span class="o">*</span> +<a id="line-499" name="line-499"></a><span class="nf">eom_uri_converter_new</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">base_file</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">img_format</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format_str</span><span class="p">)</span> +<a id="line-500" name="line-500"></a><span class="p">{</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">;</span> +<a id="line-502" name="line-502"></a> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">format_str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-504" name="line-504"></a> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">conv</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">EOM_TYPE_URI_CONVERTER</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-506" name="line-506"></a> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base_file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">conv</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">base_file</span><span class="p">);</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="p">}</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">conv</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="p">}</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">conv</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">img_format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img_format</span><span class="p">;</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">conv</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">token_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_uri_converter_parse_string</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">,</span><span class="w"> </span><span class="n">format_str</span><span class="p">);</span> +<a id="line-515" name="line-515"></a> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">conv</span><span class="p">;</span> +<a id="line-517" name="line-517"></a><span class="p">}</span> +<a id="line-518" name="line-518"></a> +<a id="line-519" name="line-519"></a><span class="k">static</span><span class="w"> </span><span class="n">GFile</span><span class="o">*</span> +<a id="line-520" name="line-520"></a><span class="nf">get_file_directory</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-521" name="line-521"></a><span class="p">{</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-524" name="line-524"></a> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-527" name="line-527"></a> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">conv</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-529" name="line-529"></a> +<a id="line-530" name="line-530"></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">-></span><span class="n">base_file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-531" name="line-531"></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_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">base_file</span><span class="p">);</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="p">}</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">img_file</span><span class="p">;</span> +<a id="line-535" name="line-535"></a> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">img_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-538" name="line-538"></a> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="p">);</span> +<a id="line-540" name="line-540"></a> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="p">);</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="p">}</span> +<a id="line-543" name="line-543"></a> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">file</span><span class="p">;</span> +<a id="line-545" name="line-545"></a><span class="p">}</span> +<a id="line-546" name="line-546"></a> +<a id="line-547" name="line-547"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-548" name="line-548"></a><span class="nf">split_filename</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">suffix</span><span class="p">)</span> +<a id="line-549" name="line-549"></a><span class="p">{</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">basename</span><span class="p">;</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">suffix_start</span><span class="p">;</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-553" name="line-553"></a> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="o">*</span><span class="n">suffix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-556" name="line-556"></a> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="cm">/* get unescaped string */</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">basename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="cm">/* FIXME: does this work for all locales? */</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">suffix_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_strrchr</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="sc">'.'</span><span class="p">);</span> +<a id="line-562" name="line-562"></a> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">suffix_start</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* no suffix found */</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">);</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="p">}</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">suffix_start</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">basename</span><span class="p">);</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strndup</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">);</span> +<a id="line-569" name="line-569"></a> +<a id="line-570" name="line-570"></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">basename</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="o">*</span><span class="n">suffix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strndup</span><span class="w"> </span><span class="p">(</span><span class="n">suffix_start</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">);</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="p">}</span> +<a id="line-573" name="line-573"></a> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">);</span> +<a id="line-575" name="line-575"></a><span class="p">}</span> +<a id="line-576" name="line-576"></a> +<a id="line-577" name="line-577"></a><span class="k">static</span><span class="w"> </span><span class="n">GString</span><span class="o">*</span> +<a id="line-578" name="line-578"></a><span class="nf">append_filename</span><span class="w"> </span><span class="p">(</span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-579" name="line-579"></a><span class="p">{</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="cm">/* appends the name of the original file without</span> +<a id="line-581" name="line-581"></a><span class="cm"> filetype suffix */</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">img_file</span><span class="p">;</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">suffix</span><span class="p">;</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-586" name="line-586"></a> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">img_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">split_filename</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">suffix</span><span class="p">);</span> +<a id="line-589" name="line-589"></a> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-591" name="line-591"></a> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">suffix</span><span class="p">);</span> +<a id="line-594" name="line-594"></a> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="p">);</span> +<a id="line-596" name="line-596"></a> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-598" name="line-598"></a><span class="p">}</span> +<a id="line-599" name="line-599"></a> +<a id="line-600" name="line-600"></a><span class="k">static</span><span class="w"> </span><span class="n">GString</span><span class="o">*</span> +<a id="line-601" name="line-601"></a><span class="nf">append_counter</span><span class="w"> </span><span class="p">(</span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">counter</span><span class="p">,</span><span class="w"> </span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">)</span> +<a id="line-602" name="line-602"></a><span class="p">{</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-604" name="line-604"></a> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">conv</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-606" name="line-606"></a> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"%.*lu"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_n_digits</span><span class="p">,</span><span class="w"> </span><span class="n">counter</span><span class="p">);</span> +<a id="line-608" name="line-608"></a> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">str</span><span class="p">;</span> +<a id="line-610" name="line-610"></a><span class="p">}</span> +<a id="line-611" name="line-611"></a> +<a id="line-612" name="line-612"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-613" name="line-613"></a><span class="nf">build_absolute_file</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="cm">/* input */</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">**</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">**</span><span class="n">format</span><span class="p">)</span><span class="w"> </span><span class="cm">/* output */</span> +<a id="line-615" name="line-615"></a><span class="p">{</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">dir_file</span><span class="p">;</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-618" name="line-618"></a> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-622" name="line-622"></a> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">));</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-627" name="line-627"></a> +<a id="line-628" name="line-628"></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">conv</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-629" name="line-629"></a> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">dir_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_file_directory</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">dir_file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-632" name="line-632"></a> +<a id="line-633" name="line-633"></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">-></span><span class="n">img_format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="cm">/* use same file type/suffix */</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">old_suffix</span><span class="p">;</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">img_file</span><span class="p">;</span> +<a id="line-638" name="line-638"></a> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">img_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">split_filename</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">old_suffix</span><span class="p">);</span> +<a id="line-641" name="line-641"></a> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">old_suffix</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-643" name="line-643"></a> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="sc">'.'</span><span class="p">);</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">old_suffix</span><span class="p">);</span> +<a id="line-646" name="line-646"></a> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_pixbuf_get_format_by_suffix</span><span class="w"> </span><span class="p">(</span><span class="n">old_suffix</span><span class="p">);</span> +<a id="line-649" name="line-649"></a> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="p">);</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-652" name="line-652"></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">-></span><span class="n">suffix</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">suffix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_pixbuf_get_common_suffix</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">img_format</span><span class="p">);</span> +<a id="line-654" name="line-654"></a> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="sc">'.'</span><span class="p">);</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">suffix</span><span class="p">);</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">img_format</span><span class="p">;</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="p">}</span> +<a id="line-661" name="line-661"></a> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">dir_file</span><span class="p">,</span><span class="w"> </span><span class="n">str</span><span class="o">-></span><span class="n">str</span><span class="p">);</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dir_file</span><span class="p">);</span> +<a id="line-665" name="line-665"></a><span class="p">}</span> +<a id="line-666" name="line-666"></a> +<a id="line-667" name="line-667"></a><span class="k">static</span><span class="w"> </span><span class="n">GString</span><span class="o">*</span> +<a id="line-668" name="line-668"></a><span class="nf">replace_remove_chars</span><span class="w"> </span><span class="p">(</span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">convert_spaces</span><span class="p">,</span><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">space_char</span><span class="p">)</span> +<a id="line-669" name="line-669"></a><span class="p">{</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-675" name="line-675"></a> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-677" name="line-677"></a> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-680" name="line-680"></a> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-682" name="line-682"></a> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_strlen</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">str</span><span class="o">-></span><span class="n">str</span><span class="p">;</span> +<a id="line-685" name="line-685"></a> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="k">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"><</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_next_char</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span> +<a id="line-688" name="line-688"></a> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'/'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="p">}</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_unichar_isspace</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">convert_spaces</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">space_char</span><span class="p">);</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="p">}</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">);</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="p">}</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="p">}</span> +<a id="line-699" name="line-699"></a> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="cm">/* ensure maximum length of 250 characters */</span> +<a id="line-701" name="line-701"></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">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="o">-></span><span class="n">len</span><span class="p">,</span><span class="w"> </span><span class="mi">250</span><span class="p">);</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_truncate</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">);</span> +<a id="line-703" name="line-703"></a> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-705" name="line-705"></a><span class="p">}</span> +<a id="line-706" name="line-706"></a> +<a id="line-707" name="line-707"></a><span class="cm">/*</span> +<a id="line-708" name="line-708"></a><span class="cm"> * This function converts the uri of the EomImage object, according to the</span> +<a id="line-709" name="line-709"></a><span class="cm"> * EomUCToken list. The absolute uri (converted filename appended to base uri)</span> +<a id="line-710" name="line-710"></a><span class="cm"> * is returned in uri and the image format will be in the format pointer.</span> +<a id="line-711" name="line-711"></a><span class="cm"> */</span> +<a id="line-712" name="line-712"></a><span class="n">gboolean</span> +<a id="line-713" name="line-713"></a><span class="nf">eom_uri_converter_do</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">conv</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">**</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">**</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-715" name="line-715"></a><span class="p">{</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">EomURIConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">repl_str</span><span class="p">;</span> +<a id="line-720" name="line-720"></a> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-722" name="line-722"></a> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">conv</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-724" name="line-724"></a> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-728" name="line-728"></a> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-730" name="line-730"></a> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">token_list</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">EomUCToken</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">EomUCToken</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-733" name="line-733"></a> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_STRING</span><span class="p">:</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">string</span><span class="p">);</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-738" name="line-738"></a> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_FILENAME</span><span class="p">:</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_filename</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-742" name="line-742"></a> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_UC_COUNTER</span><span class="p">:</span><span class="w"> </span><span class="p">{</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">counter</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_start</span><span class="p">)</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">counter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">counter_start</span><span class="p">;</span> +<a id="line-746" name="line-746"></a> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_counter</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">data</span><span class="p">.</span><span class="n">counter</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">conv</span><span class="p">);</span> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="p">}</span> +<a id="line-750" name="line-750"></a><span class="cp">#if 0</span> +<a id="line-751" name="line-751"></a><span class="c"> case EOM_UC_COMMENT:</span> +<a id="line-752" name="line-752"></a><span class="c"> str = g_string_append_printf ();</span> +<a id="line-753" name="line-753"></a><span class="c"> str = "comment";</span> +<a id="line-754" name="line-754"></a><span class="c"> break;</span> +<a id="line-755" name="line-755"></a><span class="c"> case EOM_UC_DATE:</span> +<a id="line-756" name="line-756"></a><span class="c"> str = "date";</span> +<a id="line-757" name="line-757"></a><span class="c"> break;</span> +<a id="line-758" name="line-758"></a><span class="c"> case EOM_UC_TIME:</span> +<a id="line-759" name="line-759"></a><span class="c"> str = "time";</span> +<a id="line-760" name="line-760"></a><span class="c"> break;</span> +<a id="line-761" name="line-761"></a><span class="c"> case EOM_UC_DAY:</span> +<a id="line-762" name="line-762"></a><span class="c"> str = "day";</span> +<a id="line-763" name="line-763"></a><span class="c"> break;</span> +<a id="line-764" name="line-764"></a><span class="c"> case EOM_UC_MONTH:</span> +<a id="line-765" name="line-765"></a><span class="c"> str = "month";</span> +<a id="line-766" name="line-766"></a><span class="c"> break;</span> +<a id="line-767" name="line-767"></a><span class="c"> case EOM_UC_YEAR:</span> +<a id="line-768" name="line-768"></a><span class="c"> str = "year";</span> +<a id="line-769" name="line-769"></a><span class="c"> break;</span> +<a id="line-770" name="line-770"></a><span class="c"> case EOM_UC_HOUR:</span> +<a id="line-771" name="line-771"></a><span class="c"> str = "hour";</span> +<a id="line-772" name="line-772"></a><span class="c"> break;</span> +<a id="line-773" name="line-773"></a><span class="c"> case EOM_UC_MINUTE:</span> +<a id="line-774" name="line-774"></a><span class="c"> str = "minute";</span> +<a id="line-775" name="line-775"></a><span class="c"> break;</span> +<a id="line-776" name="line-776"></a><span class="c"> case EOM_UC_SECOND:</span> +<a id="line-777" name="line-777"></a><span class="c"> str = "second";</span> +<a id="line-778" name="line-778"></a><span class="c"> break;</span> +<a id="line-779" name="line-779"></a><span class="cp">#endif</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="cm">/* skip all others */</span> +<a id="line-782" name="line-782"></a> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="p">}</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="p">}</span> +<a id="line-786" name="line-786"></a> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">repl_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">replace_remove_chars</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">convert_spaces</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">space_character</span><span class="p">);</span> +<a id="line-788" name="line-788"></a> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">repl_str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">repl_str</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">build_absolute_file</span><span class="w"> </span><span class="p">(</span><span class="n">conv</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">repl_str</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="p">}</span> +<a id="line-792" name="line-792"></a> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">repl_str</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-795" name="line-795"></a> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-797" name="line-797"></a><span class="p">}</span> +<a id="line-798" name="line-798"></a> +<a id="line-799" name="line-799"></a><span class="kt">char</span><span class="o">*</span> +<a id="line-800" name="line-800"></a><span class="nf">eom_uri_converter_preview</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">format_str</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">counter</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_images</span><span class="p">,</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">convert_spaces</span><span class="p">,</span><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">space_char</span><span class="p">)</span> +<a id="line-803" name="line-803"></a><span class="p">{</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">repl_str</span><span class="p">;</span> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_digits</span><span class="p">;</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">token_next</span><span class="p">;</span> +<a id="line-813" name="line-813"></a> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">format_str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-815" name="line-815"></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">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-816" name="line-816"></a> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</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="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-818" name="line-818"></a> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ceil</span><span class="w"> </span><span class="p">(</span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">log10</span><span class="w"> </span><span class="p">(</span><span class="n">G_MAXULONG</span><span class="p">),</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">log10</span><span class="w"> </span><span class="p">(</span><span class="n">counter</span><span class="p">),</span><span class="w"> </span><span class="n">log10</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="p">))));</span> +<a id="line-820" name="line-820"></a> +<a id="line-821" name="line-821"></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_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">format_str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-823" name="line-823"></a> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_strlen</span><span class="w"> </span><span class="p">(</span><span class="n">format_str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">format_str</span><span class="p">;</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">token_next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-827" name="line-827"></a> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-829" name="line-829"></a> +<a id="line-830" name="line-830"></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"><</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_next_char</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span> +<a id="line-832" name="line-832"></a> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">token_next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'f'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_filename</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">img</span><span class="p">);</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="p">}</span> +<a id="line-837" name="line-837"></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">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'n'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"%.*lu"</span><span class="p">,</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">n_digits</span><span class="w"> </span><span class="p">,</span><span class="n">counter</span><span class="p">);</span> +<a id="line-840" name="line-840"></a> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="p">}</span> +<a id="line-842" name="line-842"></a><span class="cp">#if 0</span><span class="c"> /* ignore the rest for now */</span> +<a id="line-843" name="line-843"></a><span class="c"> else if (c == 'c') {</span> +<a id="line-844" name="line-844"></a><span class="c"> type = EOM_UC_COMMENT;</span> +<a id="line-845" name="line-845"></a><span class="c"> }</span> +<a id="line-846" name="line-846"></a><span class="c"> else if (c == 'd') {</span> +<a id="line-847" name="line-847"></a><span class="c"> type = EOM_UC_DATE;</span> +<a id="line-848" name="line-848"></a><span class="c"> }</span> +<a id="line-849" name="line-849"></a><span class="c"> else if (c == 't') {</span> +<a id="line-850" name="line-850"></a><span class="c"> type = EOM_UC_TIME;</span> +<a id="line-851" name="line-851"></a><span class="c"> }</span> +<a id="line-852" name="line-852"></a><span class="c"> else if (c == 'a') {</span> +<a id="line-853" name="line-853"></a><span class="c"> type = EOM_UC_DAY;</span> +<a id="line-854" name="line-854"></a><span class="c"> }</span> +<a id="line-855" name="line-855"></a><span class="c"> else if (c == 'm') {</span> +<a id="line-856" name="line-856"></a><span class="c"> type = EOM_UC_MONTH;</span> +<a id="line-857" name="line-857"></a><span class="c"> }</span> +<a id="line-858" name="line-858"></a><span class="c"> else if (c == 'y') {</span> +<a id="line-859" name="line-859"></a><span class="c"> type = EOM_UC_YEAR;</span> +<a id="line-860" name="line-860"></a><span class="c"> }</span> +<a id="line-861" name="line-861"></a><span class="c"> else if (c == 'h') {</span> +<a id="line-862" name="line-862"></a><span class="c"> type = EOM_UC_HOUR;</span> +<a id="line-863" name="line-863"></a><span class="c"> }</span> +<a id="line-864" name="line-864"></a><span class="c"> else if (c == 'i') {</span> +<a id="line-865" name="line-865"></a><span class="c"> type = EOM_UC_MINUTE;</span> +<a id="line-866" name="line-866"></a><span class="c"> }</span> +<a id="line-867" name="line-867"></a><span class="c"> else if (c == 's') {</span> +<a id="line-868" name="line-868"></a><span class="c"> type = EOM_UC_SECOND;</span> +<a id="line-869" name="line-869"></a><span class="c"> }</span> +<a id="line-870" name="line-870"></a><span class="cp">#endif</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">token_next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="p">}</span> +<a id="line-873" name="line-873"></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">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'%'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">token_next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="p">}</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">);</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="p">}</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="p">}</span> +<a id="line-880" name="line-880"></a> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="n">repl_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">replace_remove_chars</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">convert_spaces</span><span class="p">,</span><span class="w"> </span><span class="n">space_char</span><span class="p">);</span> +<a id="line-883" name="line-883"></a> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">repl_str</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="cm">/* use same file type/suffix */</span> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">old_suffix</span><span class="p">;</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">img_file</span><span class="p">;</span> +<a id="line-890" name="line-890"></a> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">img_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">split_filename</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">old_suffix</span><span class="p">);</span> +<a id="line-893" name="line-893"></a> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">old_suffix</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-895" name="line-895"></a> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="w"> </span><span class="p">(</span><span class="n">repl_str</span><span class="p">,</span><span class="w"> </span><span class="sc">'.'</span><span class="p">);</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">repl_str</span><span class="p">,</span><span class="w"> </span><span class="n">old_suffix</span><span class="p">);</span> +<a id="line-898" name="line-898"></a> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">old_suffix</span><span class="p">);</span> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">img_file</span><span class="p">);</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="p">}</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">suffix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_pixbuf_get_common_suffix</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">);</span> +<a id="line-905" name="line-905"></a> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="w"> </span><span class="p">(</span><span class="n">repl_str</span><span class="p">,</span><span class="w"> </span><span class="sc">'.'</span><span class="p">);</span> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">repl_str</span><span class="p">,</span><span class="w"> </span><span class="n">suffix</span><span class="p">);</span> +<a id="line-908" name="line-908"></a> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">suffix</span><span class="p">);</span> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="p">}</span> +<a id="line-911" name="line-911"></a> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">repl_str</span><span class="o">-></span><span class="n">str</span><span class="p">;</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="p">}</span> +<a id="line-914" name="line-914"></a> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">repl_str</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-917" name="line-917"></a> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">filename</span><span class="p">;</span> +<a id="line-919" name="line-919"></a><span class="p">}</span> +<a id="line-920" name="line-920"></a> +<a id="line-921" name="line-921"></a><span class="n">gboolean</span> +<a id="line-922" name="line-922"></a><span class="nf">eom_uri_converter_requires_exif</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-923" name="line-923"></a><span class="p">{</span> +<a id="line-924" name="line-924"></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">EOM_IS_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-925" name="line-925"></a> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">requires_exif</span><span class="p">;</span> +<a id="line-927" name="line-927"></a><span class="p">}</span> +<a id="line-928" name="line-928"></a> +<a id="line-929" name="line-929"></a><span class="cm">/**</span> +<a id="line-930" name="line-930"></a><span class="cm"> * eom_uri_converter_check:</span> +<a id="line-931" name="line-931"></a><span class="cm"> * @converter: a #EomURIConverter</span> +<a id="line-932" name="line-932"></a><span class="cm"> * @img_list: (element-type GFile): a #Gfile list</span> +<a id="line-933" name="line-933"></a><span class="cm"> * @error: a #GError location to store the error occurring, or NULL to ignore</span> +<a id="line-934" name="line-934"></a><span class="cm"> */</span> +<a id="line-935" name="line-935"></a> +<a id="line-936" name="line-936"></a><span class="n">gboolean</span> +<a id="line-937" name="line-937"></a><span class="nf">eom_uri_converter_check</span><span class="w"> </span><span class="p">(</span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">img_list</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-938" name="line-938"></a><span class="p">{</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">all_different</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-942" name="line-942"></a> +<a id="line-943" name="line-943"></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">EOM_IS_URI_CONVERTER</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-944" name="line-944"></a> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="cm">/* convert all image uris */</span> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img_list</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">conv_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-950" name="line-950"></a> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_uri_converter_do</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">),</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="o">&</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">conv_error</span><span class="p">);</span> +<a id="line-953" name="line-953"></a> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">);</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="p">}</span> +<a id="line-957" name="line-957"></a><span class="w"> </span><span class="p">}</span> +<a id="line-958" name="line-958"></a> +<a id="line-959" name="line-959"></a><span class="w"> </span><span class="cm">/* check for all different uris */</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_list</span><span class="p">;</span><span class="w"> </span><span class="n">it</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">all_different</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-963" name="line-963"></a> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-965" name="line-965"></a> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">;</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">all_different</span><span class="p">;</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">all_different</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">g_file_equal</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">p</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-968" name="line-968"></a><span class="w"> </span><span class="p">}</span> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="p">}</span> +<a id="line-970" name="line-970"></a> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">all_different</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_UC_ERROR</span><span class="p">,</span> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">EOM_UC_ERROR_EQUAL_FILENAMES</span><span class="p">,</span> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"At least two file names are equal."</span><span class="p">));</span> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="p">}</span> +<a id="line-976" name="line-976"></a> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">);</span> +<a id="line-978" name="line-978"></a> +<a id="line-979" name="line-979"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">all_different</span><span class="p">;</span> +<a id="line-980" name="line-980"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/32.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/32.html new file mode 100644 index 0000000..6614b2c --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/32.html @@ -0,0 +1,1229 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-util.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-util.c</p> +<a href="32.html#line-84"> variableScope 84</a><a href="32.html#line-208"> variableScope 208</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - General Utilities</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on code by:</span> +<a id="line-8" name="line-8"></a><span class="cm"> * - Jens Finke <[email protected]></span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-11" name="line-11"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-12" name="line-12"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-13" name="line-13"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-14" name="line-14"></a><span class="cm"> *</span> +<a id="line-15" name="line-15"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-16" name="line-16"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-17" name="line-17"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-18" name="line-18"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-19" name="line-19"></a><span class="cm"> *</span> +<a id="line-20" name="line-20"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-21" name="line-21"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-22" name="line-22"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-23" name="line-23"></a><span class="cm"> */</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-27" name="line-27"></a><span class="cp">#endif</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"><sys/time.h></span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><time.h></span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><errno.h></span> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gprintf.h></span> +<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gstdio.h></span> +<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span> +<a id="line-42" name="line-42"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="kt">void</span> +<a id="line-45" name="line-45"></a><span class="nf">eom_util_show_help</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">section</span><span class="p">,</span><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">)</span> +<a id="line-46" name="line-46"></a><span class="p">{</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">section</span><span class="p">)</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"help:eom/%s"</span><span class="p">,</span><span class="w"> </span><span class="n">section</span><span class="p">);</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gtk_show_uri_on_window</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="p">((</span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"help:eom"</span><span class="p">),</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">gtk_get_current_event_time</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_message_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">,</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">GTK_MESSAGE_ERROR</span><span class="p">,</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">GTK_BUTTONS_OK</span><span class="p">,</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Could not display help for Eye of MATE"</span><span class="p">));</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gtk_message_dialog_format_secondary_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MESSAGE_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">g_signal_connect_swapped</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_destroy</span><span class="p">),</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="p">}</span> +<a id="line-77" name="line-77"></a><span class="p">}</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-80" name="line-80"></a><span class="nf">eom_util_make_valid_utf8</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">)</span> +<a id="line-81" name="line-81"></a><span class="p">{</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">remainder</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">invalid</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">remaining_bytes</span><span class="p">,</span><span class="w"> </span><span class="n">valid_bytes</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'valid_bytes' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'valid_bytes' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-85" name="line-85"></a> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">remainder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">str</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">remaining_bytes</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">str</span><span class="p">);</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">remaining_bytes</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">remainder</span><span class="p">,</span><span class="w"> </span><span class="n">remaining_bytes</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">invalid</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="p">}</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">valid_bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">invalid</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">remainder</span><span class="p">;</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_sized_new</span><span class="w"> </span><span class="p">(</span><span class="n">remaining_bytes</span><span class="p">);</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">}</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">g_string_append_len</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">remainder</span><span class="p">,</span><span class="w"> </span><span class="n">valid_bytes</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="sc">'?'</span><span class="p">);</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">remaining_bytes</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">valid_bytes</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">remainder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">invalid</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="p">}</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="p">}</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">remainder</span><span class="p">);</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">" (invalid Unicode)"</span><span class="p">));</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-118" name="line-118"></a><span class="p">}</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="n">GSList</span><span class="o">*</span> +<a id="line-121" name="line-121"></a><span class="nf">eom_util_parse_uri_string_list_to_file_list</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">uri_list</span><span class="p">)</span> +<a id="line-122" name="line-122"></a><span class="p">{</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">GSList</span><span class="o">*</span><span class="w"> </span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">uris</span><span class="p">;</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">uris</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_uri_list_extract_uris</span><span class="w"> </span><span class="p">(</span><span class="n">uri_list</span><span class="p">);</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_append</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="p">}</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">);</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">file_list</span><span class="p">;</span> +<a id="line-137" name="line-137"></a><span class="p">}</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="n">GSList</span><span class="o">*</span> +<a id="line-140" name="line-140"></a><span class="nf">eom_util_string_list_to_file_list</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">string_list</span><span class="p">)</span> +<a id="line-141" name="line-141"></a><span class="p">{</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-144" name="line-144"></a> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">string_list</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri_str</span><span class="p">;</span> +<a id="line-147" name="line-147"></a> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">uri_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">,</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">uri_str</span><span class="p">));</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="p">}</span> +<a id="line-153" name="line-153"></a> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_slist_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="p">}</span> +<a id="line-156" name="line-156"></a> +<a id="line-157" name="line-157"></a><span class="n">GSList</span><span class="o">*</span> +<a id="line-158" name="line-158"></a><span class="nf">eom_util_strings_to_file_list</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">strings</span><span class="p">)</span> +<a id="line-159" name="line-159"></a><span class="p">{</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></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">strings</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">,</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">strings</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">}</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_slist_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="p">}</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="n">GSList</span><span class="o">*</span> +<a id="line-172" name="line-172"></a><span class="nf">eom_util_string_array_to_list</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">files</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">create_uri</span><span class="p">)</span> +<a id="line-173" name="line-173"></a><span class="p">{</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-176" name="line-176"></a> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="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">files</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">create_uri</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_commandline_arg</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="p">}</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">));</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="p">}</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_slist_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="p">}</span> +<a id="line-201" name="line-201"></a> +<a id="line-202" name="line-202"></a><span class="n">gchar</span><span class="w"> </span><span class="o">**</span> +<a id="line-203" name="line-203"></a><span class="nf">eom_util_string_array_make_absolute</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">files</span><span class="p">)</span> +<a id="line-204" name="line-204"></a><span class="p">{</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">size</span><span class="p">;</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">abs_files</span><span class="p">;</span> +<a id="line-208" name="line-208"></a><span class="hll"><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'file' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'file' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="p">);</span> +<a id="line-214" name="line-214"></a> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="cm">/* Ensure new list is NULL-terminated */</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">abs_files</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="o">+</span><span class="mi">1</span><span class="p">);</span> +<a id="line-217" name="line-217"></a> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="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"><</span><span class="w"> </span><span class="n">size</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_commandline_arg</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">abs_files</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-221" name="line-221"></a> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">}</span> +<a id="line-224" name="line-224"></a> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">abs_files</span><span class="p">;</span> +<a id="line-226" name="line-226"></a><span class="p">}</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></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">dot_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-229" name="line-229"></a> +<a id="line-230" name="line-230"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-231" name="line-231"></a><span class="nf">ensure_dir_exists</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">)</span> +<a id="line-232" name="line-232"></a><span class="p">{</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_IS_DIR</span><span class="p">))</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-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">g_mkdir_with_parents</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="mo">0700</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-238" name="line-238"></a> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">errno</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EEXIST</span><span class="p">)</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_IS_DIR</span><span class="p">);</span> +<a id="line-241" name="line-241"></a> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Failed to create directory %s: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="n">strerror</span><span class="w"> </span><span class="p">(</span><span class="n">errno</span><span class="p">));</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-244" name="line-244"></a><span class="p">}</span> +<a id="line-245" name="line-245"></a> +<a id="line-246" name="line-246"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-247" name="line-247"></a><span class="nf">eom_util_dot_dir</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-248" name="line-248"></a><span class="p">{</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dot_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">exists</span><span class="p">;</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">dot_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="p">(</span><span class="n">g_get_user_config_dir</span><span class="p">(),</span><span class="w"> </span><span class="s">"mate"</span><span class="p">,</span><span class="w"> </span><span class="s">"eom"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-253" name="line-253"></a> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">exists</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ensure_dir_exists</span><span class="w"> </span><span class="p">(</span><span class="n">dot_dir</span><span class="p">);</span> +<a id="line-255" name="line-255"></a> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">exists</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">printed_warning</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></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">printed_warning</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"EOM could not save some of your preferences in its settings directory due to a file with the same name (%s) blocking its creation. Please remove that file, or move it away."</span><span class="p">,</span><span class="w"> </span><span class="n">dot_dir</span><span class="p">);</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">printed_warning</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="p">}</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">dot_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="p">}</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="p">}</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">dot_dir</span><span class="p">;</span> +<a id="line-269" name="line-269"></a><span class="p">}</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="cm">/* Based on eel_filename_strip_extension() */</span> +<a id="line-272" name="line-272"></a> +<a id="line-273" name="line-273"></a><span class="cm">/**</span> +<a id="line-274" name="line-274"></a><span class="cm"> * eom_util_filename_get_extension:</span> +<a id="line-275" name="line-275"></a><span class="cm"> * @filename: a filename</span> +<a id="line-276" name="line-276"></a><span class="cm"> *</span> +<a id="line-277" name="line-277"></a><span class="cm"> * Returns a reasonably good guess of the file extension of @filename.</span> +<a id="line-278" name="line-278"></a><span class="cm"> *</span> +<a id="line-279" name="line-279"></a><span class="cm"> * Returns: a newly allocated string with the file extension of @filename.</span> +<a id="line-280" name="line-280"></a><span class="cm"> **/</span> +<a id="line-281" name="line-281"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-282" name="line-282"></a><span class="nf">eom_util_filename_get_extension</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">filename</span><span class="p">)</span> +<a id="line-283" name="line-283"></a><span class="p">{</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">begin</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">begin2</span><span class="p">;</span> +<a id="line-285" name="line-285"></a> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">}</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">begin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strrchr</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="sc">'.'</span><span class="p">);</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">begin</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">begin</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">begin</span><span class="p">,</span><span class="w"> </span><span class="s">".gz"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">begin</span><span class="p">,</span><span class="w"> </span><span class="s">".bz2"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">begin</span><span class="p">,</span><span class="w"> </span><span class="s">".sit"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">begin</span><span class="p">,</span><span class="w"> </span><span class="s">".Z"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">begin2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">begin</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">begin2</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">&&</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="o">*</span><span class="n">begin2</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'.'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">begin2</span><span class="o">--</span><span class="p">;</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="p">}</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">begin2</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">begin</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">begin2</span><span class="p">;</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="p">}</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="p">}</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">begin</span><span class="w"> </span><span class="o">++</span><span class="p">;</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="p">}</span> +<a id="line-310" name="line-310"></a> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">begin</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="p">}</span> +<a id="line-313" name="line-313"></a> +<a id="line-314" name="line-314"></a><span class="cm">/**</span> +<a id="line-315" name="line-315"></a><span class="cm"> * eom_util_file_is_persistent:</span> +<a id="line-316" name="line-316"></a><span class="cm"> * @file: a #GFile</span> +<a id="line-317" name="line-317"></a><span class="cm"> *</span> +<a id="line-318" name="line-318"></a><span class="cm"> * Checks whether @file is a non-removable local mount.</span> +<a id="line-319" name="line-319"></a><span class="cm"> *</span> +<a id="line-320" name="line-320"></a><span class="cm"> * Returns: %TRUE if @file is in a non-removable mount,</span> +<a id="line-321" name="line-321"></a><span class="cm"> * %FALSE otherwise or when it is remote.</span> +<a id="line-322" name="line-322"></a><span class="cm"> **/</span> +<a id="line-323" name="line-323"></a><span class="n">gboolean</span> +<a id="line-324" name="line-324"></a><span class="nf">eom_util_file_is_persistent</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span> +<a id="line-325" name="line-325"></a><span class="p">{</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">GMount</span><span class="w"> </span><span class="o">*</span><span class="n">mount</span><span class="p">;</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_is_native</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">))</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">FALSE</span><span class="p">;</span> +<a id="line-330" name="line-330"></a> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">mount</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_find_enclosing_mount</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mount</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_mount_can_unmount</span><span class="w"> </span><span class="p">(</span><span class="n">mount</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="p">}</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="p">}</span> +<a id="line-337" name="line-337"></a> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-339" name="line-339"></a><span class="p">}</span> +<a id="line-340" name="line-340"></a> +<a id="line-341" name="line-341"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-342" name="line-342"></a><span class="nf">_eom_util_show_file_in_filemanager_fallback</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">toplevel</span><span class="p">)</span> +<a id="line-343" name="line-343"></a><span class="p">{</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_get_current_event_time</span><span class="w"> </span><span class="p">();</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_query_file_type</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_DIRECTORY</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="cm">/* If input file is not a directory we must open it's</span> +<a id="line-352" name="line-352"></a><span class="cm"> folder/parent to avoid opening the file itself */</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">parent_file</span><span class="p">;</span> +<a id="line-354" name="line-354"></a> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">parent_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">))</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">parent_file</span><span class="p">);</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="p">}</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">gtk_show_uri_on_window</span><span class="w"> </span><span class="p">(</span><span class="n">toplevel</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Couldn't show containing folder </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s">: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="p">}</span> +<a id="line-366" name="line-366"></a> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span> +<a id="line-368" name="line-368"></a><span class="p">}</span> +<a id="line-369" name="line-369"></a> +<a id="line-370" name="line-370"></a><span class="kt">void</span> +<a id="line-371" name="line-371"></a><span class="nf">eom_util_show_file_in_filemanager</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">toplevel</span><span class="p">)</span> +<a id="line-372" name="line-372"></a><span class="p">{</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">proxy</span><span class="p">;</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">done</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-375" name="line-375"></a> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">proxy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_new_for_bus_sync</span><span class="w"> </span><span class="p">(</span><span class="n">G_BUS_TYPE_SESSION</span><span class="p">,</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS</span><span class="w"> </span><span class="o">|</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES</span><span class="p">,</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"org.freedesktop.FileManager1"</span><span class="p">,</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="s">"/org/freedesktop/FileManager1"</span><span class="p">,</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="s">"org.freedesktop.FileManager1"</span><span class="p">,</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-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">proxy</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">params</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">GVariantBuilder</span><span class="w"> </span><span class="n">builder</span><span class="p">;</span> +<a id="line-391" name="line-391"></a> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_variant_builder_init</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">builder</span><span class="p">,</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">"as"</span><span class="p">));</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">g_variant_builder_add</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"s"</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">);</span> +<a id="line-395" name="line-395"></a> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="cm">/* This seems to be the expected format, as other values</span> +<a id="line-397" name="line-397"></a><span class="cm"> cause the filemanager window not to get focus. */</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">startup_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"_TIME%u"</span><span class="p">,</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">gtk_get_current_event_time</span><span class="p">());</span> +<a id="line-400" name="line-400"></a> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="cm">/* params is floating! */</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">params</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">"(ass)"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">startup_id</span><span class="p">);</span> +<a id="line-403" name="line-403"></a> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">startup_id</span><span class="p">);</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">g_variant_builder_clear</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">builder</span><span class="p">);</span> +<a id="line-406" name="line-406"></a> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="cm">/* Floating params-GVariant is consumed here */</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="s">"ShowItems"</span><span class="p">,</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">params</span><span class="p">,</span><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-411" name="line-411"></a> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="cm">/* Receiving a non-NULL result counts as a successful call. */</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">done</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="p">}</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="p">}</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="cm">/* Fallback to gtk_show_uri() if launch over DBus is not possible */</span> +<a id="line-423" name="line-423"></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">done</span><span class="p">)</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">_eom_util_show_file_in_filemanager_fallback</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">toplevel</span><span class="p">);</span> +<a id="line-425" name="line-425"></a><span class="p">}</span> +<a id="line-426" name="line-426"></a> +<a id="line-427" name="line-427"></a><span class="n">gboolean</span> +<a id="line-428" name="line-428"></a><span class="nf">eom_notebook_scroll_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">GdkEventScroll</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-430" name="line-430"></a> +<a id="line-431" name="line-431"></a><span class="p">{</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">GtkNotebook</span><span class="w"> </span><span class="o">*</span><span class="n">notebook</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_NOTEBOOK</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">event_widget</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">action_widget</span><span class="p">;</span> +<a id="line-434" name="line-434"></a> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_notebook_get_nth_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_notebook_get_current_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">));</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">child</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-438" name="line-438"></a> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">event_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_get_event_widget</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="cm">/* Ignore scroll events from the content of the page */</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event_widget</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">event_widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">gtk_widget_is_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">event_widget</span><span class="p">,</span><span class="w"> </span><span class="n">child</span><span class="p">))</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-444" name="line-444"></a> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="cm">/* And also from the action widgets */</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">action_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_notebook_get_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_PACK_START</span><span class="p">);</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event_widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">action_widget</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">action_widget</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">gtk_widget_is_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">event_widget</span><span class="p">,</span><span class="w"> </span><span class="n">action_widget</span><span class="p">)))</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-449" name="line-449"></a> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">action_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_notebook_get_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_PACK_END</span><span class="p">);</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">event_widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">action_widget</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">action_widget</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">gtk_widget_is_ancestor</span><span class="w"> </span><span class="p">(</span><span class="n">event_widget</span><span class="p">,</span><span class="w"> </span><span class="n">action_widget</span><span class="p">)))</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-453" name="line-453"></a> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">direction</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_RIGHT</span><span class="p">:</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_DOWN</span><span class="p">:</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">gtk_notebook_next_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">);</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_LEFT</span><span class="p">:</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_UP</span><span class="p">:</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">gtk_notebook_prev_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">);</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_SCROLL_SMOOTH</span><span class="p">:</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_notebook_get_tab_pos</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_POS_LEFT</span><span class="p">:</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_POS_RIGHT</span><span class="p">:</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">delta_y</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">gtk_notebook_next_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">);</span> +<a id="line-469" name="line-469"></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">event</span><span class="o">-></span><span class="n">delta_y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">gtk_notebook_prev_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">);</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_POS_TOP</span><span class="p">:</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_POS_BOTTOM</span><span class="p">:</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">delta_x</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">gtk_notebook_next_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">);</span> +<a id="line-476" name="line-476"></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">event</span><span class="o">-></span><span class="n">delta_x</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">gtk_notebook_prev_page</span><span class="w"> </span><span class="p">(</span><span class="n">notebook</span><span class="p">);</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="p">}</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="p">}</span> +<a id="line-482" name="line-482"></a> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-484" name="line-484"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/33.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/33.html new file mode 100644 index 0000000..207caf6 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/33.html @@ -0,0 +1,11767 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-window.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-window.c</p> +<a href="33.html#line-2216"> variableScope 2216</a><a href="33.html#line-2384"> variableScope 2384</a><a href="33.html#line-3262"> variableScope 3262</a><a href="33.html#line-3263"> variableScope 3263</a><a href="33.html#line-3265"> variableScope 3265</a><a href="33.html#line-3294"> variableScope 3294</a><a href="33.html#line-3455"> variableScope 3455</a><a href="33.html#line-3457"> variableScope 3457</a><a href="33.html#line-4168"> variableScope 4168</a><a href="33.html#line-4169"> variableScope 4169</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span> +<span class="normal">1125</span> +<span class="normal">1126</span> +<span class="normal">1127</span> +<span class="normal">1128</span> +<span class="normal">1129</span> +<span class="normal">1130</span> +<span class="normal">1131</span> +<span class="normal">1132</span> +<span class="normal">1133</span> +<span class="normal">1134</span> +<span class="normal">1135</span> +<span class="normal">1136</span> +<span class="normal">1137</span> +<span class="normal">1138</span> +<span class="normal">1139</span> +<span class="normal">1140</span> +<span class="normal">1141</span> +<span class="normal">1142</span> +<span class="normal">1143</span> +<span class="normal">1144</span> +<span class="normal">1145</span> +<span class="normal">1146</span> +<span class="normal">1147</span> +<span class="normal">1148</span> +<span class="normal">1149</span> +<span class="normal">1150</span> +<span class="normal">1151</span> +<span class="normal">1152</span> +<span class="normal">1153</span> +<span class="normal">1154</span> +<span class="normal">1155</span> +<span class="normal">1156</span> +<span class="normal">1157</span> +<span class="normal">1158</span> +<span class="normal">1159</span> +<span class="normal">1160</span> +<span class="normal">1161</span> +<span class="normal">1162</span> +<span class="normal">1163</span> +<span class="normal">1164</span> +<span class="normal">1165</span> +<span class="normal">1166</span> +<span class="normal">1167</span> +<span class="normal">1168</span> +<span class="normal">1169</span> +<span class="normal">1170</span> +<span class="normal">1171</span> +<span class="normal">1172</span> +<span class="normal">1173</span> +<span class="normal">1174</span> +<span class="normal">1175</span> +<span class="normal">1176</span> +<span class="normal">1177</span> +<span class="normal">1178</span> +<span class="normal">1179</span> +<span class="normal">1180</span> +<span class="normal">1181</span> +<span class="normal">1182</span> +<span class="normal">1183</span> +<span class="normal">1184</span> +<span class="normal">1185</span> +<span class="normal">1186</span> +<span class="normal">1187</span> +<span class="normal">1188</span> +<span class="normal">1189</span> +<span class="normal">1190</span> +<span class="normal">1191</span> +<span class="normal">1192</span> +<span class="normal">1193</span> +<span class="normal">1194</span> +<span class="normal">1195</span> +<span class="normal">1196</span> +<span class="normal">1197</span> +<span class="normal">1198</span> +<span class="normal">1199</span> +<span class="normal">1200</span> +<span class="normal">1201</span> +<span class="normal">1202</span> +<span class="normal">1203</span> +<span class="normal">1204</span> +<span class="normal">1205</span> +<span class="normal">1206</span> +<span class="normal">1207</span> +<span class="normal">1208</span> +<span class="normal">1209</span> +<span class="normal">1210</span> +<span class="normal">1211</span> +<span class="normal">1212</span> +<span class="normal">1213</span> +<span class="normal">1214</span> +<span class="normal">1215</span> +<span class="normal">1216</span> +<span class="normal">1217</span> +<span class="normal">1218</span> +<span class="normal">1219</span> +<span class="normal">1220</span> +<span class="normal">1221</span> +<span class="normal">1222</span> +<span class="normal">1223</span> +<span class="normal">1224</span> +<span class="normal">1225</span> +<span class="normal">1226</span> +<span class="normal">1227</span> +<span class="normal">1228</span> +<span class="normal">1229</span> +<span class="normal">1230</span> +<span class="normal">1231</span> +<span class="normal">1232</span> +<span class="normal">1233</span> +<span class="normal">1234</span> +<span class="normal">1235</span> +<span class="normal">1236</span> +<span class="normal">1237</span> +<span class="normal">1238</span> +<span class="normal">1239</span> +<span class="normal">1240</span> +<span class="normal">1241</span> +<span class="normal">1242</span> +<span class="normal">1243</span> +<span class="normal">1244</span> +<span class="normal">1245</span> +<span class="normal">1246</span> +<span class="normal">1247</span> +<span class="normal">1248</span> +<span class="normal">1249</span> +<span class="normal">1250</span> +<span class="normal">1251</span> +<span class="normal">1252</span> +<span class="normal">1253</span> +<span class="normal">1254</span> +<span class="normal">1255</span> +<span class="normal">1256</span> +<span class="normal">1257</span> +<span class="normal">1258</span> +<span class="normal">1259</span> +<span class="normal">1260</span> +<span class="normal">1261</span> +<span class="normal">1262</span> +<span class="normal">1263</span> +<span class="normal">1264</span> +<span class="normal">1265</span> +<span class="normal">1266</span> +<span class="normal">1267</span> +<span class="normal">1268</span> +<span class="normal">1269</span> +<span class="normal">1270</span> +<span class="normal">1271</span> +<span class="normal">1272</span> +<span class="normal">1273</span> +<span class="normal">1274</span> +<span class="normal">1275</span> +<span class="normal">1276</span> +<span class="normal">1277</span> +<span class="normal">1278</span> +<span class="normal">1279</span> +<span class="normal">1280</span> +<span class="normal">1281</span> +<span class="normal">1282</span> +<span class="normal">1283</span> +<span class="normal">1284</span> +<span class="normal">1285</span> +<span class="normal">1286</span> +<span class="normal">1287</span> +<span class="normal">1288</span> +<span class="normal">1289</span> +<span class="normal">1290</span> +<span class="normal">1291</span> +<span class="normal">1292</span> +<span class="normal">1293</span> +<span class="normal">1294</span> +<span class="normal">1295</span> +<span class="normal">1296</span> +<span class="normal">1297</span> +<span class="normal">1298</span> +<span class="normal">1299</span> +<span class="normal">1300</span> +<span class="normal">1301</span> +<span class="normal">1302</span> +<span class="normal">1303</span> +<span class="normal">1304</span> +<span class="normal">1305</span> +<span class="normal">1306</span> +<span class="normal">1307</span> +<span class="normal">1308</span> +<span class="normal">1309</span> +<span class="normal">1310</span> +<span class="normal">1311</span> +<span class="normal">1312</span> +<span class="normal">1313</span> +<span class="normal">1314</span> +<span class="normal">1315</span> +<span class="normal">1316</span> +<span class="normal">1317</span> +<span class="normal">1318</span> +<span class="normal">1319</span> +<span class="normal">1320</span> +<span class="normal">1321</span> +<span class="normal">1322</span> +<span class="normal">1323</span> +<span class="normal">1324</span> +<span class="normal">1325</span> +<span class="normal">1326</span> +<span class="normal">1327</span> +<span class="normal">1328</span> +<span class="normal">1329</span> +<span class="normal">1330</span> +<span class="normal">1331</span> +<span class="normal">1332</span> +<span class="normal">1333</span> +<span class="normal">1334</span> +<span class="normal">1335</span> +<span class="normal">1336</span> +<span class="normal">1337</span> +<span class="normal">1338</span> +<span class="normal">1339</span> +<span class="normal">1340</span> +<span class="normal">1341</span> +<span class="normal">1342</span> +<span class="normal">1343</span> +<span class="normal">1344</span> +<span class="normal">1345</span> +<span class="normal">1346</span> +<span class="normal">1347</span> +<span class="normal">1348</span> +<span class="normal">1349</span> +<span class="normal">1350</span> +<span class="normal">1351</span> +<span class="normal">1352</span> +<span class="normal">1353</span> +<span class="normal">1354</span> +<span class="normal">1355</span> +<span class="normal">1356</span> +<span class="normal">1357</span> +<span class="normal">1358</span> +<span class="normal">1359</span> +<span class="normal">1360</span> +<span class="normal">1361</span> +<span class="normal">1362</span> +<span class="normal">1363</span> +<span class="normal">1364</span> +<span class="normal">1365</span> +<span class="normal">1366</span> +<span class="normal">1367</span> +<span class="normal">1368</span> +<span class="normal">1369</span> +<span class="normal">1370</span> +<span class="normal">1371</span> +<span class="normal">1372</span> +<span class="normal">1373</span> +<span class="normal">1374</span> +<span class="normal">1375</span> +<span class="normal">1376</span> +<span class="normal">1377</span> +<span class="normal">1378</span> +<span class="normal">1379</span> +<span class="normal">1380</span> +<span class="normal">1381</span> +<span class="normal">1382</span> +<span class="normal">1383</span> +<span class="normal">1384</span> +<span class="normal">1385</span> +<span class="normal">1386</span> +<span class="normal">1387</span> +<span class="normal">1388</span> +<span class="normal">1389</span> +<span class="normal">1390</span> +<span class="normal">1391</span> +<span class="normal">1392</span> +<span class="normal">1393</span> +<span class="normal">1394</span> +<span class="normal">1395</span> +<span class="normal">1396</span> +<span class="normal">1397</span> +<span class="normal">1398</span> +<span class="normal">1399</span> +<span class="normal">1400</span> +<span class="normal">1401</span> +<span class="normal">1402</span> +<span class="normal">1403</span> +<span class="normal">1404</span> +<span class="normal">1405</span> +<span class="normal">1406</span> +<span class="normal">1407</span> +<span class="normal">1408</span> +<span class="normal">1409</span> +<span class="normal">1410</span> +<span class="normal">1411</span> +<span class="normal">1412</span> +<span class="normal">1413</span> +<span class="normal">1414</span> +<span class="normal">1415</span> +<span class="normal">1416</span> +<span class="normal">1417</span> +<span class="normal">1418</span> +<span class="normal">1419</span> +<span class="normal">1420</span> +<span class="normal">1421</span> +<span class="normal">1422</span> +<span class="normal">1423</span> +<span class="normal">1424</span> +<span class="normal">1425</span> +<span class="normal">1426</span> +<span class="normal">1427</span> +<span class="normal">1428</span> +<span class="normal">1429</span> +<span class="normal">1430</span> +<span class="normal">1431</span> +<span class="normal">1432</span> +<span class="normal">1433</span> +<span class="normal">1434</span> +<span class="normal">1435</span> +<span class="normal">1436</span> +<span class="normal">1437</span> +<span class="normal">1438</span> +<span class="normal">1439</span> +<span class="normal">1440</span> +<span class="normal">1441</span> +<span class="normal">1442</span> +<span class="normal">1443</span> +<span class="normal">1444</span> +<span class="normal">1445</span> +<span class="normal">1446</span> +<span class="normal">1447</span> +<span class="normal">1448</span> +<span class="normal">1449</span> +<span class="normal">1450</span> +<span class="normal">1451</span> +<span class="normal">1452</span> +<span class="normal">1453</span> +<span class="normal">1454</span> +<span class="normal">1455</span> +<span class="normal">1456</span> +<span class="normal">1457</span> +<span class="normal">1458</span> +<span class="normal">1459</span> +<span class="normal">1460</span> +<span class="normal">1461</span> +<span class="normal">1462</span> +<span class="normal">1463</span> +<span class="normal">1464</span> +<span class="normal">1465</span> +<span class="normal">1466</span> +<span class="normal">1467</span> +<span class="normal">1468</span> +<span class="normal">1469</span> +<span class="normal">1470</span> +<span class="normal">1471</span> +<span class="normal">1472</span> +<span class="normal">1473</span> +<span class="normal">1474</span> +<span class="normal">1475</span> +<span class="normal">1476</span> +<span class="normal">1477</span> +<span class="normal">1478</span> +<span class="normal">1479</span> +<span class="normal">1480</span> +<span class="normal">1481</span> +<span class="normal">1482</span> +<span class="normal">1483</span> +<span class="normal">1484</span> +<span class="normal">1485</span> +<span class="normal">1486</span> +<span class="normal">1487</span> +<span class="normal">1488</span> +<span class="normal">1489</span> +<span class="normal">1490</span> +<span class="normal">1491</span> +<span class="normal">1492</span> +<span class="normal">1493</span> +<span class="normal">1494</span> +<span class="normal">1495</span> +<span class="normal">1496</span> +<span class="normal">1497</span> +<span class="normal">1498</span> +<span class="normal">1499</span> +<span class="normal">1500</span> +<span class="normal">1501</span> +<span class="normal">1502</span> +<span class="normal">1503</span> +<span class="normal">1504</span> +<span class="normal">1505</span> +<span class="normal">1506</span> +<span class="normal">1507</span> +<span class="normal">1508</span> +<span class="normal">1509</span> +<span class="normal">1510</span> +<span class="normal">1511</span> +<span class="normal">1512</span> +<span class="normal">1513</span> +<span class="normal">1514</span> +<span class="normal">1515</span> +<span class="normal">1516</span> +<span class="normal">1517</span> +<span class="normal">1518</span> +<span class="normal">1519</span> +<span class="normal">1520</span> +<span class="normal">1521</span> +<span class="normal">1522</span> +<span class="normal">1523</span> +<span class="normal">1524</span> +<span class="normal">1525</span> +<span class="normal">1526</span> +<span class="normal">1527</span> +<span class="normal">1528</span> +<span class="normal">1529</span> +<span class="normal">1530</span> +<span class="normal">1531</span> +<span class="normal">1532</span> +<span class="normal">1533</span> +<span class="normal">1534</span> +<span class="normal">1535</span> +<span class="normal">1536</span> +<span class="normal">1537</span> +<span class="normal">1538</span> +<span class="normal">1539</span> +<span class="normal">1540</span> +<span class="normal">1541</span> +<span class="normal">1542</span> +<span class="normal">1543</span> +<span class="normal">1544</span> +<span class="normal">1545</span> +<span class="normal">1546</span> +<span class="normal">1547</span> +<span class="normal">1548</span> +<span class="normal">1549</span> +<span class="normal">1550</span> +<span class="normal">1551</span> +<span class="normal">1552</span> +<span class="normal">1553</span> +<span class="normal">1554</span> +<span class="normal">1555</span> +<span class="normal">1556</span> +<span class="normal">1557</span> +<span class="normal">1558</span> +<span class="normal">1559</span> +<span class="normal">1560</span> +<span class="normal">1561</span> +<span class="normal">1562</span> +<span class="normal">1563</span> +<span class="normal">1564</span> +<span class="normal">1565</span> +<span class="normal">1566</span> +<span class="normal">1567</span> +<span class="normal">1568</span> +<span class="normal">1569</span> +<span class="normal">1570</span> +<span class="normal">1571</span> +<span class="normal">1572</span> +<span class="normal">1573</span> +<span class="normal">1574</span> +<span class="normal">1575</span> +<span class="normal">1576</span> +<span class="normal">1577</span> +<span class="normal">1578</span> +<span class="normal">1579</span> +<span class="normal">1580</span> +<span class="normal">1581</span> +<span class="normal">1582</span> +<span class="normal">1583</span> +<span class="normal">1584</span> +<span class="normal">1585</span> +<span class="normal">1586</span> +<span class="normal">1587</span> +<span class="normal">1588</span> +<span class="normal">1589</span> +<span class="normal">1590</span> +<span class="normal">1591</span> +<span class="normal">1592</span> +<span class="normal">1593</span> +<span class="normal">1594</span> +<span class="normal">1595</span> +<span class="normal">1596</span> +<span class="normal">1597</span> +<span class="normal">1598</span> +<span class="normal">1599</span> +<span class="normal">1600</span> +<span class="normal">1601</span> +<span class="normal">1602</span> +<span class="normal">1603</span> +<span class="normal">1604</span> +<span class="normal">1605</span> +<span class="normal">1606</span> +<span class="normal">1607</span> +<span class="normal">1608</span> +<span class="normal">1609</span> +<span class="normal">1610</span> +<span class="normal">1611</span> +<span class="normal">1612</span> +<span class="normal">1613</span> +<span class="normal">1614</span> +<span class="normal">1615</span> +<span class="normal">1616</span> +<span class="normal">1617</span> +<span class="normal">1618</span> +<span class="normal">1619</span> +<span class="normal">1620</span> +<span class="normal">1621</span> +<span class="normal">1622</span> +<span class="normal">1623</span> +<span class="normal">1624</span> +<span class="normal">1625</span> +<span class="normal">1626</span> +<span class="normal">1627</span> +<span class="normal">1628</span> +<span class="normal">1629</span> +<span class="normal">1630</span> +<span class="normal">1631</span> +<span class="normal">1632</span> +<span class="normal">1633</span> +<span class="normal">1634</span> +<span class="normal">1635</span> +<span class="normal">1636</span> +<span class="normal">1637</span> +<span class="normal">1638</span> +<span class="normal">1639</span> +<span class="normal">1640</span> +<span class="normal">1641</span> +<span class="normal">1642</span> +<span class="normal">1643</span> +<span class="normal">1644</span> +<span class="normal">1645</span> +<span class="normal">1646</span> +<span class="normal">1647</span> +<span class="normal">1648</span> +<span class="normal">1649</span> +<span class="normal">1650</span> +<span class="normal">1651</span> +<span class="normal">1652</span> +<span class="normal">1653</span> +<span class="normal">1654</span> +<span class="normal">1655</span> +<span class="normal">1656</span> +<span class="normal">1657</span> +<span class="normal">1658</span> +<span class="normal">1659</span> +<span class="normal">1660</span> +<span class="normal">1661</span> +<span class="normal">1662</span> +<span class="normal">1663</span> +<span class="normal">1664</span> +<span class="normal">1665</span> +<span class="normal">1666</span> +<span class="normal">1667</span> +<span class="normal">1668</span> +<span class="normal">1669</span> +<span class="normal">1670</span> +<span class="normal">1671</span> +<span class="normal">1672</span> +<span class="normal">1673</span> +<span class="normal">1674</span> +<span class="normal">1675</span> +<span class="normal">1676</span> +<span class="normal">1677</span> +<span class="normal">1678</span> +<span class="normal">1679</span> +<span class="normal">1680</span> +<span class="normal">1681</span> +<span class="normal">1682</span> +<span class="normal">1683</span> +<span class="normal">1684</span> +<span class="normal">1685</span> +<span class="normal">1686</span> +<span class="normal">1687</span> +<span class="normal">1688</span> +<span class="normal">1689</span> +<span class="normal">1690</span> +<span class="normal">1691</span> +<span class="normal">1692</span> +<span class="normal">1693</span> +<span class="normal">1694</span> +<span class="normal">1695</span> +<span class="normal">1696</span> +<span class="normal">1697</span> +<span class="normal">1698</span> +<span class="normal">1699</span> +<span class="normal">1700</span> +<span class="normal">1701</span> +<span class="normal">1702</span> +<span class="normal">1703</span> +<span class="normal">1704</span> +<span class="normal">1705</span> +<span class="normal">1706</span> +<span class="normal">1707</span> +<span class="normal">1708</span> +<span class="normal">1709</span> +<span class="normal">1710</span> +<span class="normal">1711</span> +<span class="normal">1712</span> +<span class="normal">1713</span> +<span class="normal">1714</span> +<span class="normal">1715</span> +<span class="normal">1716</span> +<span class="normal">1717</span> +<span class="normal">1718</span> +<span class="normal">1719</span> +<span class="normal">1720</span> +<span class="normal">1721</span> +<span class="normal">1722</span> +<span class="normal">1723</span> +<span class="normal">1724</span> +<span class="normal">1725</span> +<span class="normal">1726</span> +<span class="normal">1727</span> +<span class="normal">1728</span> +<span class="normal">1729</span> +<span class="normal">1730</span> +<span class="normal">1731</span> +<span class="normal">1732</span> +<span class="normal">1733</span> +<span class="normal">1734</span> +<span class="normal">1735</span> +<span class="normal">1736</span> +<span class="normal">1737</span> +<span class="normal">1738</span> +<span class="normal">1739</span> +<span class="normal">1740</span> +<span class="normal">1741</span> +<span class="normal">1742</span> +<span class="normal">1743</span> +<span class="normal">1744</span> +<span class="normal">1745</span> +<span class="normal">1746</span> +<span class="normal">1747</span> +<span class="normal">1748</span> +<span class="normal">1749</span> +<span class="normal">1750</span> +<span class="normal">1751</span> +<span class="normal">1752</span> +<span class="normal">1753</span> +<span class="normal">1754</span> +<span class="normal">1755</span> +<span class="normal">1756</span> +<span class="normal">1757</span> +<span class="normal">1758</span> +<span class="normal">1759</span> +<span class="normal">1760</span> +<span class="normal">1761</span> +<span class="normal">1762</span> +<span class="normal">1763</span> +<span class="normal">1764</span> +<span class="normal">1765</span> +<span class="normal">1766</span> +<span class="normal">1767</span> +<span class="normal">1768</span> +<span class="normal">1769</span> +<span class="normal">1770</span> +<span class="normal">1771</span> +<span class="normal">1772</span> +<span class="normal">1773</span> +<span class="normal">1774</span> +<span class="normal">1775</span> +<span class="normal">1776</span> +<span class="normal">1777</span> +<span class="normal">1778</span> +<span class="normal">1779</span> +<span class="normal">1780</span> +<span class="normal">1781</span> +<span class="normal">1782</span> +<span class="normal">1783</span> +<span class="normal">1784</span> +<span class="normal">1785</span> +<span class="normal">1786</span> +<span class="normal">1787</span> +<span class="normal">1788</span> +<span class="normal">1789</span> +<span class="normal">1790</span> +<span class="normal">1791</span> +<span class="normal">1792</span> +<span class="normal">1793</span> +<span class="normal">1794</span> +<span class="normal">1795</span> +<span class="normal">1796</span> +<span class="normal">1797</span> +<span class="normal">1798</span> +<span class="normal">1799</span> +<span class="normal">1800</span> +<span class="normal">1801</span> +<span class="normal">1802</span> +<span class="normal">1803</span> +<span class="normal">1804</span> +<span class="normal">1805</span> +<span class="normal">1806</span> +<span class="normal">1807</span> +<span class="normal">1808</span> +<span class="normal">1809</span> +<span class="normal">1810</span> +<span class="normal">1811</span> +<span class="normal">1812</span> +<span class="normal">1813</span> +<span class="normal">1814</span> +<span class="normal">1815</span> +<span class="normal">1816</span> +<span class="normal">1817</span> +<span class="normal">1818</span> +<span class="normal">1819</span> +<span class="normal">1820</span> +<span class="normal">1821</span> +<span class="normal">1822</span> +<span class="normal">1823</span> +<span class="normal">1824</span> +<span class="normal">1825</span> +<span class="normal">1826</span> +<span class="normal">1827</span> +<span class="normal">1828</span> +<span class="normal">1829</span> +<span class="normal">1830</span> +<span class="normal">1831</span> +<span class="normal">1832</span> +<span class="normal">1833</span> +<span class="normal">1834</span> +<span class="normal">1835</span> +<span class="normal">1836</span> +<span class="normal">1837</span> +<span class="normal">1838</span> +<span class="normal">1839</span> +<span class="normal">1840</span> +<span class="normal">1841</span> +<span class="normal">1842</span> +<span class="normal">1843</span> +<span class="normal">1844</span> +<span class="normal">1845</span> +<span class="normal">1846</span> +<span class="normal">1847</span> +<span class="normal">1848</span> +<span class="normal">1849</span> +<span class="normal">1850</span> +<span class="normal">1851</span> +<span class="normal">1852</span> +<span class="normal">1853</span> +<span class="normal">1854</span> +<span class="normal">1855</span> +<span class="normal">1856</span> +<span class="normal">1857</span> +<span class="normal">1858</span> +<span class="normal">1859</span> +<span class="normal">1860</span> +<span class="normal">1861</span> +<span class="normal">1862</span> +<span class="normal">1863</span> +<span class="normal">1864</span> +<span class="normal">1865</span> +<span class="normal">1866</span> +<span class="normal">1867</span> +<span class="normal">1868</span> +<span class="normal">1869</span> +<span class="normal">1870</span> +<span class="normal">1871</span> +<span class="normal">1872</span> +<span class="normal">1873</span> +<span class="normal">1874</span> +<span class="normal">1875</span> +<span class="normal">1876</span> +<span class="normal">1877</span> +<span class="normal">1878</span> +<span class="normal">1879</span> +<span class="normal">1880</span> +<span class="normal">1881</span> +<span class="normal">1882</span> +<span class="normal">1883</span> +<span class="normal">1884</span> +<span class="normal">1885</span> +<span class="normal">1886</span> +<span class="normal">1887</span> +<span class="normal">1888</span> +<span class="normal">1889</span> +<span class="normal">1890</span> +<span class="normal">1891</span> +<span class="normal">1892</span> +<span class="normal">1893</span> +<span class="normal">1894</span> +<span class="normal">1895</span> +<span class="normal">1896</span> +<span class="normal">1897</span> +<span class="normal">1898</span> +<span class="normal">1899</span> +<span class="normal">1900</span> +<span class="normal">1901</span> +<span class="normal">1902</span> +<span class="normal">1903</span> +<span class="normal">1904</span> +<span class="normal">1905</span> +<span class="normal">1906</span> +<span class="normal">1907</span> +<span class="normal">1908</span> +<span class="normal">1909</span> +<span class="normal">1910</span> +<span class="normal">1911</span> +<span class="normal">1912</span> +<span class="normal">1913</span> +<span class="normal">1914</span> +<span class="normal">1915</span> +<span class="normal">1916</span> +<span class="normal">1917</span> +<span class="normal">1918</span> +<span class="normal">1919</span> +<span class="normal">1920</span> +<span class="normal">1921</span> +<span class="normal">1922</span> +<span class="normal">1923</span> +<span class="normal">1924</span> +<span class="normal">1925</span> +<span class="normal">1926</span> +<span class="normal">1927</span> +<span class="normal">1928</span> +<span class="normal">1929</span> +<span class="normal">1930</span> +<span class="normal">1931</span> +<span class="normal">1932</span> +<span class="normal">1933</span> +<span class="normal">1934</span> +<span class="normal">1935</span> +<span class="normal">1936</span> +<span class="normal">1937</span> +<span class="normal">1938</span> +<span class="normal">1939</span> +<span class="normal">1940</span> +<span class="normal">1941</span> +<span class="normal">1942</span> +<span class="normal">1943</span> +<span class="normal">1944</span> +<span class="normal">1945</span> +<span class="normal">1946</span> +<span class="normal">1947</span> +<span class="normal">1948</span> +<span class="normal">1949</span> +<span class="normal">1950</span> +<span class="normal">1951</span> +<span class="normal">1952</span> +<span class="normal">1953</span> +<span class="normal">1954</span> +<span class="normal">1955</span> +<span class="normal">1956</span> +<span class="normal">1957</span> +<span class="normal">1958</span> +<span class="normal">1959</span> +<span class="normal">1960</span> +<span class="normal">1961</span> +<span class="normal">1962</span> +<span class="normal">1963</span> +<span class="normal">1964</span> +<span class="normal">1965</span> +<span class="normal">1966</span> +<span class="normal">1967</span> +<span class="normal">1968</span> +<span class="normal">1969</span> +<span class="normal">1970</span> +<span class="normal">1971</span> +<span class="normal">1972</span> +<span class="normal">1973</span> +<span class="normal">1974</span> +<span class="normal">1975</span> +<span class="normal">1976</span> +<span class="normal">1977</span> +<span class="normal">1978</span> +<span class="normal">1979</span> +<span class="normal">1980</span> +<span class="normal">1981</span> +<span class="normal">1982</span> +<span class="normal">1983</span> +<span class="normal">1984</span> +<span class="normal">1985</span> +<span class="normal">1986</span> +<span class="normal">1987</span> +<span class="normal">1988</span> +<span class="normal">1989</span> +<span class="normal">1990</span> +<span class="normal">1991</span> +<span class="normal">1992</span> +<span class="normal">1993</span> +<span class="normal">1994</span> +<span class="normal">1995</span> +<span class="normal">1996</span> +<span class="normal">1997</span> +<span class="normal">1998</span> +<span class="normal">1999</span> +<span class="normal">2000</span> +<span class="normal">2001</span> +<span class="normal">2002</span> +<span class="normal">2003</span> +<span class="normal">2004</span> +<span class="normal">2005</span> +<span class="normal">2006</span> +<span class="normal">2007</span> +<span class="normal">2008</span> +<span class="normal">2009</span> +<span class="normal">2010</span> +<span class="normal">2011</span> +<span class="normal">2012</span> +<span class="normal">2013</span> +<span class="normal">2014</span> +<span class="normal">2015</span> +<span class="normal">2016</span> +<span class="normal">2017</span> +<span class="normal">2018</span> +<span class="normal">2019</span> +<span class="normal">2020</span> +<span class="normal">2021</span> +<span class="normal">2022</span> +<span class="normal">2023</span> +<span class="normal">2024</span> +<span class="normal">2025</span> +<span class="normal">2026</span> +<span class="normal">2027</span> +<span class="normal">2028</span> +<span class="normal">2029</span> +<span class="normal">2030</span> +<span class="normal">2031</span> +<span class="normal">2032</span> +<span class="normal">2033</span> +<span class="normal">2034</span> +<span class="normal">2035</span> +<span class="normal">2036</span> +<span class="normal">2037</span> +<span class="normal">2038</span> +<span class="normal">2039</span> +<span class="normal">2040</span> +<span class="normal">2041</span> +<span class="normal">2042</span> +<span class="normal">2043</span> +<span class="normal">2044</span> +<span class="normal">2045</span> +<span class="normal">2046</span> +<span class="normal">2047</span> +<span class="normal">2048</span> +<span class="normal">2049</span> +<span class="normal">2050</span> +<span class="normal">2051</span> +<span class="normal">2052</span> +<span class="normal">2053</span> +<span class="normal">2054</span> +<span class="normal">2055</span> +<span class="normal">2056</span> +<span class="normal">2057</span> +<span class="normal">2058</span> +<span class="normal">2059</span> +<span class="normal">2060</span> +<span class="normal">2061</span> +<span class="normal">2062</span> +<span class="normal">2063</span> +<span class="normal">2064</span> +<span class="normal">2065</span> +<span class="normal">2066</span> +<span class="normal">2067</span> +<span class="normal">2068</span> +<span class="normal">2069</span> +<span class="normal">2070</span> +<span class="normal">2071</span> +<span class="normal">2072</span> +<span class="normal">2073</span> +<span class="normal">2074</span> +<span class="normal">2075</span> +<span class="normal">2076</span> +<span class="normal">2077</span> +<span class="normal">2078</span> +<span class="normal">2079</span> +<span class="normal">2080</span> +<span class="normal">2081</span> +<span class="normal">2082</span> +<span class="normal">2083</span> +<span class="normal">2084</span> +<span class="normal">2085</span> +<span class="normal">2086</span> +<span class="normal">2087</span> +<span class="normal">2088</span> +<span class="normal">2089</span> +<span class="normal">2090</span> +<span class="normal">2091</span> +<span class="normal">2092</span> +<span class="normal">2093</span> +<span class="normal">2094</span> +<span class="normal">2095</span> +<span class="normal">2096</span> +<span class="normal">2097</span> +<span class="normal">2098</span> +<span class="normal">2099</span> +<span class="normal">2100</span> +<span class="normal">2101</span> +<span class="normal">2102</span> +<span class="normal">2103</span> +<span class="normal">2104</span> +<span class="normal">2105</span> +<span class="normal">2106</span> +<span class="normal">2107</span> +<span class="normal">2108</span> +<span class="normal">2109</span> +<span class="normal">2110</span> +<span class="normal">2111</span> +<span class="normal">2112</span> +<span class="normal">2113</span> +<span class="normal">2114</span> +<span class="normal">2115</span> +<span class="normal">2116</span> +<span class="normal">2117</span> +<span class="normal">2118</span> +<span class="normal">2119</span> +<span class="normal">2120</span> +<span class="normal">2121</span> +<span class="normal">2122</span> +<span class="normal">2123</span> +<span class="normal">2124</span> +<span class="normal">2125</span> +<span class="normal">2126</span> +<span class="normal">2127</span> +<span class="normal">2128</span> +<span class="normal">2129</span> +<span class="normal">2130</span> +<span class="normal">2131</span> +<span class="normal">2132</span> +<span class="normal">2133</span> +<span class="normal">2134</span> +<span class="normal">2135</span> +<span class="normal">2136</span> +<span class="normal">2137</span> +<span class="normal">2138</span> +<span class="normal">2139</span> +<span class="normal">2140</span> +<span class="normal">2141</span> +<span class="normal">2142</span> +<span class="normal">2143</span> +<span class="normal">2144</span> +<span class="normal">2145</span> +<span class="normal">2146</span> +<span class="normal">2147</span> +<span class="normal">2148</span> +<span class="normal">2149</span> +<span class="normal">2150</span> +<span class="normal">2151</span> +<span class="normal">2152</span> +<span class="normal">2153</span> +<span class="normal">2154</span> +<span class="normal">2155</span> +<span class="normal">2156</span> +<span class="normal">2157</span> +<span class="normal">2158</span> +<span class="normal">2159</span> +<span class="normal">2160</span> +<span class="normal">2161</span> +<span class="normal">2162</span> +<span class="normal">2163</span> +<span class="normal">2164</span> +<span class="normal">2165</span> +<span class="normal">2166</span> +<span class="normal">2167</span> +<span class="normal">2168</span> +<span class="normal">2169</span> +<span class="normal">2170</span> +<span class="normal">2171</span> +<span class="normal">2172</span> +<span class="normal">2173</span> +<span class="normal">2174</span> +<span class="normal">2175</span> +<span class="normal">2176</span> +<span class="normal">2177</span> +<span class="normal">2178</span> +<span class="normal">2179</span> +<span class="normal">2180</span> +<span class="normal">2181</span> +<span class="normal">2182</span> +<span class="normal">2183</span> +<span class="normal">2184</span> +<span class="normal">2185</span> +<span class="normal">2186</span> +<span class="normal">2187</span> +<span class="normal">2188</span> +<span class="normal">2189</span> +<span class="normal">2190</span> +<span class="normal">2191</span> +<span class="normal">2192</span> +<span class="normal">2193</span> +<span class="normal">2194</span> +<span class="normal">2195</span> +<span class="normal">2196</span> +<span class="normal">2197</span> +<span class="normal">2198</span> +<span class="normal">2199</span> +<span class="normal">2200</span> +<span class="normal">2201</span> +<span class="normal">2202</span> +<span class="normal">2203</span> +<span class="normal">2204</span> +<span class="normal">2205</span> +<span class="normal">2206</span> +<span class="normal">2207</span> +<span class="normal">2208</span> +<span class="normal">2209</span> +<span class="normal">2210</span> +<span class="normal">2211</span> +<span class="normal">2212</span> +<span class="normal">2213</span> +<span class="normal">2214</span> +<span class="normal">2215</span> +<span class="normal">2216</span> +<span class="normal">2217</span> +<span class="normal">2218</span> +<span class="normal">2219</span> +<span class="normal">2220</span> +<span class="normal">2221</span> +<span class="normal">2222</span> +<span class="normal">2223</span> +<span class="normal">2224</span> +<span class="normal">2225</span> +<span class="normal">2226</span> +<span class="normal">2227</span> +<span class="normal">2228</span> +<span class="normal">2229</span> +<span class="normal">2230</span> +<span class="normal">2231</span> +<span class="normal">2232</span> +<span class="normal">2233</span> +<span class="normal">2234</span> +<span class="normal">2235</span> +<span class="normal">2236</span> +<span class="normal">2237</span> +<span class="normal">2238</span> +<span class="normal">2239</span> +<span class="normal">2240</span> +<span class="normal">2241</span> +<span class="normal">2242</span> +<span class="normal">2243</span> +<span class="normal">2244</span> +<span class="normal">2245</span> +<span class="normal">2246</span> +<span class="normal">2247</span> +<span class="normal">2248</span> +<span class="normal">2249</span> +<span class="normal">2250</span> +<span class="normal">2251</span> +<span class="normal">2252</span> +<span class="normal">2253</span> +<span class="normal">2254</span> +<span class="normal">2255</span> +<span class="normal">2256</span> +<span class="normal">2257</span> +<span class="normal">2258</span> +<span class="normal">2259</span> +<span class="normal">2260</span> +<span class="normal">2261</span> +<span class="normal">2262</span> +<span class="normal">2263</span> +<span class="normal">2264</span> +<span class="normal">2265</span> +<span class="normal">2266</span> +<span class="normal">2267</span> +<span class="normal">2268</span> +<span class="normal">2269</span> +<span class="normal">2270</span> +<span class="normal">2271</span> +<span class="normal">2272</span> +<span class="normal">2273</span> +<span class="normal">2274</span> +<span class="normal">2275</span> +<span class="normal">2276</span> +<span class="normal">2277</span> +<span class="normal">2278</span> +<span class="normal">2279</span> +<span class="normal">2280</span> +<span class="normal">2281</span> +<span class="normal">2282</span> +<span class="normal">2283</span> +<span class="normal">2284</span> +<span class="normal">2285</span> +<span class="normal">2286</span> +<span class="normal">2287</span> +<span class="normal">2288</span> +<span class="normal">2289</span> +<span class="normal">2290</span> +<span class="normal">2291</span> +<span class="normal">2292</span> +<span class="normal">2293</span> +<span class="normal">2294</span> +<span class="normal">2295</span> +<span class="normal">2296</span> +<span class="normal">2297</span> +<span class="normal">2298</span> +<span class="normal">2299</span> +<span class="normal">2300</span> +<span class="normal">2301</span> +<span class="normal">2302</span> +<span class="normal">2303</span> +<span class="normal">2304</span> +<span class="normal">2305</span> +<span class="normal">2306</span> +<span class="normal">2307</span> +<span class="normal">2308</span> +<span class="normal">2309</span> +<span class="normal">2310</span> +<span class="normal">2311</span> +<span class="normal">2312</span> +<span class="normal">2313</span> +<span class="normal">2314</span> +<span class="normal">2315</span> +<span class="normal">2316</span> +<span class="normal">2317</span> +<span class="normal">2318</span> +<span class="normal">2319</span> +<span class="normal">2320</span> +<span class="normal">2321</span> +<span class="normal">2322</span> +<span class="normal">2323</span> +<span class="normal">2324</span> +<span class="normal">2325</span> +<span class="normal">2326</span> +<span class="normal">2327</span> +<span class="normal">2328</span> +<span class="normal">2329</span> +<span class="normal">2330</span> +<span class="normal">2331</span> +<span class="normal">2332</span> +<span class="normal">2333</span> +<span class="normal">2334</span> +<span class="normal">2335</span> +<span class="normal">2336</span> +<span class="normal">2337</span> +<span class="normal">2338</span> +<span class="normal">2339</span> +<span class="normal">2340</span> +<span class="normal">2341</span> +<span class="normal">2342</span> +<span class="normal">2343</span> +<span class="normal">2344</span> +<span class="normal">2345</span> +<span class="normal">2346</span> +<span class="normal">2347</span> +<span class="normal">2348</span> +<span class="normal">2349</span> +<span class="normal">2350</span> +<span class="normal">2351</span> +<span class="normal">2352</span> +<span class="normal">2353</span> +<span class="normal">2354</span> +<span class="normal">2355</span> +<span class="normal">2356</span> +<span class="normal">2357</span> +<span class="normal">2358</span> +<span class="normal">2359</span> +<span class="normal">2360</span> +<span class="normal">2361</span> +<span class="normal">2362</span> +<span class="normal">2363</span> +<span class="normal">2364</span> +<span class="normal">2365</span> +<span class="normal">2366</span> +<span class="normal">2367</span> +<span class="normal">2368</span> +<span class="normal">2369</span> +<span class="normal">2370</span> +<span class="normal">2371</span> +<span class="normal">2372</span> +<span class="normal">2373</span> +<span class="normal">2374</span> +<span class="normal">2375</span> +<span class="normal">2376</span> +<span class="normal">2377</span> +<span class="normal">2378</span> +<span class="normal">2379</span> +<span class="normal">2380</span> +<span class="normal">2381</span> +<span class="normal">2382</span> +<span class="normal">2383</span> +<span class="normal">2384</span> +<span class="normal">2385</span> +<span class="normal">2386</span> +<span class="normal">2387</span> +<span class="normal">2388</span> +<span class="normal">2389</span> +<span class="normal">2390</span> +<span class="normal">2391</span> +<span class="normal">2392</span> +<span class="normal">2393</span> +<span class="normal">2394</span> +<span class="normal">2395</span> +<span class="normal">2396</span> +<span class="normal">2397</span> +<span class="normal">2398</span> +<span class="normal">2399</span> +<span class="normal">2400</span> +<span class="normal">2401</span> +<span class="normal">2402</span> +<span class="normal">2403</span> +<span class="normal">2404</span> +<span class="normal">2405</span> +<span class="normal">2406</span> +<span class="normal">2407</span> +<span class="normal">2408</span> +<span class="normal">2409</span> +<span class="normal">2410</span> +<span class="normal">2411</span> +<span class="normal">2412</span> +<span class="normal">2413</span> +<span class="normal">2414</span> +<span class="normal">2415</span> +<span class="normal">2416</span> +<span class="normal">2417</span> +<span class="normal">2418</span> +<span class="normal">2419</span> +<span class="normal">2420</span> +<span class="normal">2421</span> +<span class="normal">2422</span> +<span class="normal">2423</span> +<span class="normal">2424</span> +<span class="normal">2425</span> +<span class="normal">2426</span> +<span class="normal">2427</span> +<span class="normal">2428</span> +<span class="normal">2429</span> +<span class="normal">2430</span> +<span class="normal">2431</span> +<span class="normal">2432</span> +<span class="normal">2433</span> +<span class="normal">2434</span> +<span class="normal">2435</span> +<span class="normal">2436</span> +<span class="normal">2437</span> +<span class="normal">2438</span> +<span class="normal">2439</span> +<span class="normal">2440</span> +<span class="normal">2441</span> +<span class="normal">2442</span> +<span class="normal">2443</span> +<span class="normal">2444</span> +<span class="normal">2445</span> +<span class="normal">2446</span> +<span class="normal">2447</span> +<span class="normal">2448</span> +<span class="normal">2449</span> +<span class="normal">2450</span> +<span class="normal">2451</span> +<span class="normal">2452</span> +<span class="normal">2453</span> +<span class="normal">2454</span> +<span class="normal">2455</span> +<span class="normal">2456</span> +<span class="normal">2457</span> +<span class="normal">2458</span> +<span class="normal">2459</span> +<span class="normal">2460</span> +<span class="normal">2461</span> +<span class="normal">2462</span> +<span class="normal">2463</span> +<span class="normal">2464</span> +<span class="normal">2465</span> +<span class="normal">2466</span> +<span class="normal">2467</span> +<span class="normal">2468</span> +<span class="normal">2469</span> +<span class="normal">2470</span> +<span class="normal">2471</span> +<span class="normal">2472</span> +<span class="normal">2473</span> +<span class="normal">2474</span> +<span class="normal">2475</span> +<span class="normal">2476</span> +<span class="normal">2477</span> +<span class="normal">2478</span> +<span class="normal">2479</span> +<span class="normal">2480</span> +<span class="normal">2481</span> +<span class="normal">2482</span> +<span class="normal">2483</span> +<span class="normal">2484</span> +<span class="normal">2485</span> +<span class="normal">2486</span> +<span class="normal">2487</span> +<span class="normal">2488</span> +<span class="normal">2489</span> +<span class="normal">2490</span> +<span class="normal">2491</span> +<span class="normal">2492</span> +<span class="normal">2493</span> +<span class="normal">2494</span> +<span class="normal">2495</span> +<span class="normal">2496</span> +<span class="normal">2497</span> +<span class="normal">2498</span> +<span class="normal">2499</span> +<span class="normal">2500</span> +<span class="normal">2501</span> +<span class="normal">2502</span> +<span class="normal">2503</span> +<span class="normal">2504</span> +<span class="normal">2505</span> +<span class="normal">2506</span> +<span class="normal">2507</span> +<span class="normal">2508</span> +<span class="normal">2509</span> +<span class="normal">2510</span> +<span class="normal">2511</span> +<span class="normal">2512</span> +<span class="normal">2513</span> +<span class="normal">2514</span> +<span class="normal">2515</span> +<span class="normal">2516</span> +<span class="normal">2517</span> +<span class="normal">2518</span> +<span class="normal">2519</span> +<span class="normal">2520</span> +<span class="normal">2521</span> +<span class="normal">2522</span> +<span class="normal">2523</span> +<span class="normal">2524</span> +<span class="normal">2525</span> +<span class="normal">2526</span> +<span class="normal">2527</span> +<span class="normal">2528</span> +<span class="normal">2529</span> +<span class="normal">2530</span> +<span class="normal">2531</span> +<span class="normal">2532</span> +<span class="normal">2533</span> +<span class="normal">2534</span> +<span class="normal">2535</span> +<span class="normal">2536</span> +<span class="normal">2537</span> +<span class="normal">2538</span> +<span class="normal">2539</span> +<span class="normal">2540</span> +<span class="normal">2541</span> +<span class="normal">2542</span> +<span class="normal">2543</span> +<span class="normal">2544</span> +<span class="normal">2545</span> +<span class="normal">2546</span> +<span class="normal">2547</span> +<span class="normal">2548</span> +<span class="normal">2549</span> +<span class="normal">2550</span> +<span class="normal">2551</span> +<span class="normal">2552</span> +<span class="normal">2553</span> +<span class="normal">2554</span> +<span class="normal">2555</span> +<span class="normal">2556</span> +<span class="normal">2557</span> +<span class="normal">2558</span> +<span class="normal">2559</span> +<span class="normal">2560</span> +<span class="normal">2561</span> +<span class="normal">2562</span> +<span class="normal">2563</span> +<span class="normal">2564</span> +<span class="normal">2565</span> +<span class="normal">2566</span> +<span class="normal">2567</span> +<span class="normal">2568</span> +<span class="normal">2569</span> +<span class="normal">2570</span> +<span class="normal">2571</span> +<span class="normal">2572</span> +<span class="normal">2573</span> +<span class="normal">2574</span> +<span class="normal">2575</span> +<span class="normal">2576</span> +<span class="normal">2577</span> +<span class="normal">2578</span> +<span class="normal">2579</span> +<span class="normal">2580</span> +<span class="normal">2581</span> +<span class="normal">2582</span> +<span class="normal">2583</span> +<span class="normal">2584</span> +<span class="normal">2585</span> +<span class="normal">2586</span> +<span class="normal">2587</span> +<span class="normal">2588</span> +<span class="normal">2589</span> +<span class="normal">2590</span> +<span class="normal">2591</span> +<span class="normal">2592</span> +<span class="normal">2593</span> +<span class="normal">2594</span> +<span class="normal">2595</span> +<span class="normal">2596</span> +<span class="normal">2597</span> +<span class="normal">2598</span> +<span class="normal">2599</span> +<span class="normal">2600</span> +<span class="normal">2601</span> +<span class="normal">2602</span> +<span class="normal">2603</span> +<span class="normal">2604</span> +<span class="normal">2605</span> +<span class="normal">2606</span> +<span class="normal">2607</span> +<span class="normal">2608</span> +<span class="normal">2609</span> +<span class="normal">2610</span> +<span class="normal">2611</span> +<span class="normal">2612</span> +<span class="normal">2613</span> +<span class="normal">2614</span> +<span class="normal">2615</span> +<span class="normal">2616</span> +<span class="normal">2617</span> +<span class="normal">2618</span> +<span class="normal">2619</span> +<span class="normal">2620</span> +<span class="normal">2621</span> +<span class="normal">2622</span> +<span class="normal">2623</span> +<span class="normal">2624</span> +<span class="normal">2625</span> +<span class="normal">2626</span> +<span class="normal">2627</span> +<span class="normal">2628</span> +<span class="normal">2629</span> +<span class="normal">2630</span> +<span class="normal">2631</span> +<span class="normal">2632</span> +<span class="normal">2633</span> +<span class="normal">2634</span> +<span class="normal">2635</span> +<span class="normal">2636</span> +<span class="normal">2637</span> +<span class="normal">2638</span> +<span class="normal">2639</span> +<span class="normal">2640</span> +<span class="normal">2641</span> +<span class="normal">2642</span> +<span class="normal">2643</span> +<span class="normal">2644</span> +<span class="normal">2645</span> +<span class="normal">2646</span> +<span class="normal">2647</span> +<span class="normal">2648</span> +<span class="normal">2649</span> +<span class="normal">2650</span> +<span class="normal">2651</span> +<span class="normal">2652</span> +<span class="normal">2653</span> +<span class="normal">2654</span> +<span class="normal">2655</span> +<span class="normal">2656</span> +<span class="normal">2657</span> +<span class="normal">2658</span> +<span class="normal">2659</span> +<span class="normal">2660</span> +<span class="normal">2661</span> +<span class="normal">2662</span> +<span class="normal">2663</span> +<span class="normal">2664</span> +<span class="normal">2665</span> +<span class="normal">2666</span> +<span class="normal">2667</span> +<span class="normal">2668</span> +<span class="normal">2669</span> +<span class="normal">2670</span> +<span class="normal">2671</span> +<span class="normal">2672</span> +<span class="normal">2673</span> +<span class="normal">2674</span> +<span class="normal">2675</span> +<span class="normal">2676</span> +<span class="normal">2677</span> +<span class="normal">2678</span> +<span class="normal">2679</span> +<span class="normal">2680</span> +<span class="normal">2681</span> +<span class="normal">2682</span> +<span class="normal">2683</span> +<span class="normal">2684</span> +<span class="normal">2685</span> +<span class="normal">2686</span> +<span class="normal">2687</span> +<span class="normal">2688</span> +<span class="normal">2689</span> +<span class="normal">2690</span> +<span class="normal">2691</span> +<span class="normal">2692</span> +<span class="normal">2693</span> +<span class="normal">2694</span> +<span class="normal">2695</span> +<span class="normal">2696</span> +<span class="normal">2697</span> +<span class="normal">2698</span> +<span class="normal">2699</span> +<span class="normal">2700</span> +<span class="normal">2701</span> +<span class="normal">2702</span> +<span class="normal">2703</span> +<span class="normal">2704</span> +<span class="normal">2705</span> +<span class="normal">2706</span> +<span class="normal">2707</span> +<span class="normal">2708</span> +<span class="normal">2709</span> +<span class="normal">2710</span> +<span class="normal">2711</span> +<span class="normal">2712</span> +<span class="normal">2713</span> +<span class="normal">2714</span> +<span class="normal">2715</span> +<span class="normal">2716</span> +<span class="normal">2717</span> +<span class="normal">2718</span> +<span class="normal">2719</span> +<span class="normal">2720</span> +<span class="normal">2721</span> +<span class="normal">2722</span> +<span class="normal">2723</span> +<span class="normal">2724</span> +<span class="normal">2725</span> +<span class="normal">2726</span> +<span class="normal">2727</span> +<span class="normal">2728</span> +<span class="normal">2729</span> +<span class="normal">2730</span> +<span class="normal">2731</span> +<span class="normal">2732</span> +<span class="normal">2733</span> +<span class="normal">2734</span> +<span class="normal">2735</span> +<span class="normal">2736</span> +<span class="normal">2737</span> +<span class="normal">2738</span> +<span class="normal">2739</span> +<span class="normal">2740</span> +<span class="normal">2741</span> +<span class="normal">2742</span> +<span class="normal">2743</span> +<span class="normal">2744</span> +<span class="normal">2745</span> +<span class="normal">2746</span> +<span class="normal">2747</span> +<span class="normal">2748</span> +<span class="normal">2749</span> +<span class="normal">2750</span> +<span class="normal">2751</span> +<span class="normal">2752</span> +<span class="normal">2753</span> +<span class="normal">2754</span> +<span class="normal">2755</span> +<span class="normal">2756</span> +<span class="normal">2757</span> +<span class="normal">2758</span> +<span class="normal">2759</span> +<span class="normal">2760</span> +<span class="normal">2761</span> +<span class="normal">2762</span> +<span class="normal">2763</span> +<span class="normal">2764</span> +<span class="normal">2765</span> +<span class="normal">2766</span> +<span class="normal">2767</span> +<span class="normal">2768</span> +<span class="normal">2769</span> +<span class="normal">2770</span> +<span class="normal">2771</span> +<span class="normal">2772</span> +<span class="normal">2773</span> +<span class="normal">2774</span> +<span class="normal">2775</span> +<span class="normal">2776</span> +<span class="normal">2777</span> +<span class="normal">2778</span> +<span class="normal">2779</span> +<span class="normal">2780</span> +<span class="normal">2781</span> +<span class="normal">2782</span> +<span class="normal">2783</span> +<span class="normal">2784</span> +<span class="normal">2785</span> +<span class="normal">2786</span> +<span class="normal">2787</span> +<span class="normal">2788</span> +<span class="normal">2789</span> +<span class="normal">2790</span> +<span class="normal">2791</span> +<span class="normal">2792</span> +<span class="normal">2793</span> +<span class="normal">2794</span> +<span class="normal">2795</span> +<span class="normal">2796</span> +<span class="normal">2797</span> +<span class="normal">2798</span> +<span class="normal">2799</span> +<span class="normal">2800</span> +<span class="normal">2801</span> +<span class="normal">2802</span> +<span class="normal">2803</span> +<span class="normal">2804</span> +<span class="normal">2805</span> +<span class="normal">2806</span> +<span class="normal">2807</span> +<span class="normal">2808</span> +<span class="normal">2809</span> +<span class="normal">2810</span> +<span class="normal">2811</span> +<span class="normal">2812</span> +<span class="normal">2813</span> +<span class="normal">2814</span> +<span class="normal">2815</span> +<span class="normal">2816</span> +<span class="normal">2817</span> +<span class="normal">2818</span> +<span class="normal">2819</span> +<span class="normal">2820</span> +<span class="normal">2821</span> +<span class="normal">2822</span> +<span class="normal">2823</span> +<span class="normal">2824</span> +<span class="normal">2825</span> +<span class="normal">2826</span> +<span class="normal">2827</span> +<span class="normal">2828</span> +<span class="normal">2829</span> +<span class="normal">2830</span> +<span class="normal">2831</span> +<span class="normal">2832</span> +<span class="normal">2833</span> +<span class="normal">2834</span> +<span class="normal">2835</span> +<span class="normal">2836</span> +<span class="normal">2837</span> +<span class="normal">2838</span> +<span class="normal">2839</span> +<span class="normal">2840</span> +<span class="normal">2841</span> +<span class="normal">2842</span> +<span class="normal">2843</span> +<span class="normal">2844</span> +<span class="normal">2845</span> +<span class="normal">2846</span> +<span class="normal">2847</span> +<span class="normal">2848</span> +<span class="normal">2849</span> +<span class="normal">2850</span> +<span class="normal">2851</span> +<span class="normal">2852</span> +<span class="normal">2853</span> +<span class="normal">2854</span> +<span class="normal">2855</span> +<span class="normal">2856</span> +<span class="normal">2857</span> +<span class="normal">2858</span> +<span class="normal">2859</span> +<span class="normal">2860</span> +<span class="normal">2861</span> +<span class="normal">2862</span> +<span class="normal">2863</span> +<span class="normal">2864</span> +<span class="normal">2865</span> +<span class="normal">2866</span> +<span class="normal">2867</span> +<span class="normal">2868</span> +<span class="normal">2869</span> +<span class="normal">2870</span> +<span class="normal">2871</span> +<span class="normal">2872</span> +<span class="normal">2873</span> +<span class="normal">2874</span> +<span class="normal">2875</span> +<span class="normal">2876</span> +<span class="normal">2877</span> +<span class="normal">2878</span> +<span class="normal">2879</span> +<span class="normal">2880</span> +<span class="normal">2881</span> +<span class="normal">2882</span> +<span class="normal">2883</span> +<span class="normal">2884</span> +<span class="normal">2885</span> +<span class="normal">2886</span> +<span class="normal">2887</span> +<span class="normal">2888</span> +<span class="normal">2889</span> +<span class="normal">2890</span> +<span class="normal">2891</span> +<span class="normal">2892</span> +<span class="normal">2893</span> +<span class="normal">2894</span> +<span class="normal">2895</span> +<span class="normal">2896</span> +<span class="normal">2897</span> +<span class="normal">2898</span> +<span class="normal">2899</span> +<span class="normal">2900</span> +<span class="normal">2901</span> +<span class="normal">2902</span> +<span class="normal">2903</span> +<span class="normal">2904</span> +<span class="normal">2905</span> +<span class="normal">2906</span> +<span class="normal">2907</span> +<span class="normal">2908</span> +<span class="normal">2909</span> +<span class="normal">2910</span> +<span class="normal">2911</span> +<span class="normal">2912</span> +<span class="normal">2913</span> +<span class="normal">2914</span> +<span class="normal">2915</span> +<span class="normal">2916</span> +<span class="normal">2917</span> +<span class="normal">2918</span> +<span class="normal">2919</span> +<span class="normal">2920</span> +<span class="normal">2921</span> +<span class="normal">2922</span> +<span class="normal">2923</span> +<span class="normal">2924</span> +<span class="normal">2925</span> +<span class="normal">2926</span> +<span class="normal">2927</span> +<span class="normal">2928</span> +<span class="normal">2929</span> +<span class="normal">2930</span> +<span class="normal">2931</span> +<span class="normal">2932</span> +<span class="normal">2933</span> +<span class="normal">2934</span> +<span class="normal">2935</span> +<span class="normal">2936</span> +<span class="normal">2937</span> +<span class="normal">2938</span> +<span class="normal">2939</span> +<span class="normal">2940</span> +<span class="normal">2941</span> +<span class="normal">2942</span> +<span class="normal">2943</span> +<span class="normal">2944</span> +<span class="normal">2945</span> +<span class="normal">2946</span> +<span class="normal">2947</span> +<span class="normal">2948</span> +<span class="normal">2949</span> +<span class="normal">2950</span> +<span class="normal">2951</span> +<span class="normal">2952</span> +<span class="normal">2953</span> +<span class="normal">2954</span> +<span class="normal">2955</span> +<span class="normal">2956</span> +<span class="normal">2957</span> +<span class="normal">2958</span> +<span class="normal">2959</span> +<span class="normal">2960</span> +<span class="normal">2961</span> +<span class="normal">2962</span> +<span class="normal">2963</span> +<span class="normal">2964</span> +<span class="normal">2965</span> +<span class="normal">2966</span> +<span class="normal">2967</span> +<span class="normal">2968</span> +<span class="normal">2969</span> +<span class="normal">2970</span> +<span class="normal">2971</span> +<span class="normal">2972</span> +<span class="normal">2973</span> +<span class="normal">2974</span> +<span class="normal">2975</span> +<span class="normal">2976</span> +<span class="normal">2977</span> +<span class="normal">2978</span> +<span class="normal">2979</span> +<span class="normal">2980</span> +<span class="normal">2981</span> +<span class="normal">2982</span> +<span class="normal">2983</span> +<span class="normal">2984</span> +<span class="normal">2985</span> +<span class="normal">2986</span> +<span class="normal">2987</span> +<span class="normal">2988</span> +<span class="normal">2989</span> +<span class="normal">2990</span> +<span class="normal">2991</span> +<span class="normal">2992</span> +<span class="normal">2993</span> +<span class="normal">2994</span> +<span class="normal">2995</span> +<span class="normal">2996</span> +<span class="normal">2997</span> +<span class="normal">2998</span> +<span class="normal">2999</span> +<span class="normal">3000</span> +<span class="normal">3001</span> +<span class="normal">3002</span> +<span class="normal">3003</span> +<span class="normal">3004</span> +<span class="normal">3005</span> +<span class="normal">3006</span> +<span class="normal">3007</span> +<span class="normal">3008</span> +<span class="normal">3009</span> +<span class="normal">3010</span> +<span class="normal">3011</span> +<span class="normal">3012</span> +<span class="normal">3013</span> +<span class="normal">3014</span> +<span class="normal">3015</span> +<span class="normal">3016</span> +<span class="normal">3017</span> +<span class="normal">3018</span> +<span class="normal">3019</span> +<span class="normal">3020</span> +<span class="normal">3021</span> +<span class="normal">3022</span> +<span class="normal">3023</span> +<span class="normal">3024</span> +<span class="normal">3025</span> +<span class="normal">3026</span> +<span class="normal">3027</span> +<span class="normal">3028</span> +<span class="normal">3029</span> +<span class="normal">3030</span> +<span class="normal">3031</span> +<span class="normal">3032</span> +<span class="normal">3033</span> +<span class="normal">3034</span> +<span class="normal">3035</span> +<span class="normal">3036</span> +<span class="normal">3037</span> +<span class="normal">3038</span> +<span class="normal">3039</span> +<span class="normal">3040</span> +<span class="normal">3041</span> +<span class="normal">3042</span> +<span class="normal">3043</span> +<span class="normal">3044</span> +<span class="normal">3045</span> +<span class="normal">3046</span> +<span class="normal">3047</span> +<span class="normal">3048</span> +<span class="normal">3049</span> +<span class="normal">3050</span> +<span class="normal">3051</span> +<span class="normal">3052</span> +<span class="normal">3053</span> +<span class="normal">3054</span> +<span class="normal">3055</span> +<span class="normal">3056</span> +<span class="normal">3057</span> +<span class="normal">3058</span> +<span class="normal">3059</span> +<span class="normal">3060</span> +<span class="normal">3061</span> +<span class="normal">3062</span> +<span class="normal">3063</span> +<span class="normal">3064</span> +<span class="normal">3065</span> +<span class="normal">3066</span> +<span class="normal">3067</span> +<span class="normal">3068</span> +<span class="normal">3069</span> +<span class="normal">3070</span> +<span class="normal">3071</span> +<span class="normal">3072</span> +<span class="normal">3073</span> +<span class="normal">3074</span> +<span class="normal">3075</span> +<span class="normal">3076</span> +<span class="normal">3077</span> +<span class="normal">3078</span> +<span class="normal">3079</span> +<span class="normal">3080</span> +<span class="normal">3081</span> +<span class="normal">3082</span> +<span class="normal">3083</span> +<span class="normal">3084</span> +<span class="normal">3085</span> +<span class="normal">3086</span> +<span class="normal">3087</span> +<span class="normal">3088</span> +<span class="normal">3089</span> +<span class="normal">3090</span> +<span class="normal">3091</span> +<span class="normal">3092</span> +<span class="normal">3093</span> +<span class="normal">3094</span> +<span class="normal">3095</span> +<span class="normal">3096</span> +<span class="normal">3097</span> +<span class="normal">3098</span> +<span class="normal">3099</span> +<span class="normal">3100</span> +<span class="normal">3101</span> +<span class="normal">3102</span> +<span class="normal">3103</span> +<span class="normal">3104</span> +<span class="normal">3105</span> +<span class="normal">3106</span> +<span class="normal">3107</span> +<span class="normal">3108</span> +<span class="normal">3109</span> +<span class="normal">3110</span> +<span class="normal">3111</span> +<span class="normal">3112</span> +<span class="normal">3113</span> +<span class="normal">3114</span> +<span class="normal">3115</span> +<span class="normal">3116</span> +<span class="normal">3117</span> +<span class="normal">3118</span> +<span class="normal">3119</span> +<span class="normal">3120</span> +<span class="normal">3121</span> +<span class="normal">3122</span> +<span class="normal">3123</span> +<span class="normal">3124</span> +<span class="normal">3125</span> +<span class="normal">3126</span> +<span class="normal">3127</span> +<span class="normal">3128</span> +<span class="normal">3129</span> +<span class="normal">3130</span> +<span class="normal">3131</span> +<span class="normal">3132</span> +<span class="normal">3133</span> +<span class="normal">3134</span> +<span class="normal">3135</span> +<span class="normal">3136</span> +<span class="normal">3137</span> +<span class="normal">3138</span> +<span class="normal">3139</span> +<span class="normal">3140</span> +<span class="normal">3141</span> +<span class="normal">3142</span> +<span class="normal">3143</span> +<span class="normal">3144</span> +<span class="normal">3145</span> +<span class="normal">3146</span> +<span class="normal">3147</span> +<span class="normal">3148</span> +<span class="normal">3149</span> +<span class="normal">3150</span> +<span class="normal">3151</span> +<span class="normal">3152</span> +<span class="normal">3153</span> +<span class="normal">3154</span> +<span class="normal">3155</span> +<span class="normal">3156</span> +<span class="normal">3157</span> +<span class="normal">3158</span> +<span class="normal">3159</span> +<span class="normal">3160</span> +<span class="normal">3161</span> +<span class="normal">3162</span> +<span class="normal">3163</span> +<span class="normal">3164</span> +<span class="normal">3165</span> +<span class="normal">3166</span> +<span class="normal">3167</span> +<span class="normal">3168</span> +<span class="normal">3169</span> +<span class="normal">3170</span> +<span class="normal">3171</span> +<span class="normal">3172</span> +<span class="normal">3173</span> +<span class="normal">3174</span> +<span class="normal">3175</span> +<span class="normal">3176</span> +<span class="normal">3177</span> +<span class="normal">3178</span> +<span class="normal">3179</span> +<span class="normal">3180</span> +<span class="normal">3181</span> +<span class="normal">3182</span> +<span class="normal">3183</span> +<span class="normal">3184</span> +<span class="normal">3185</span> +<span class="normal">3186</span> +<span class="normal">3187</span> +<span class="normal">3188</span> +<span class="normal">3189</span> +<span class="normal">3190</span> +<span class="normal">3191</span> +<span class="normal">3192</span> +<span class="normal">3193</span> +<span class="normal">3194</span> +<span class="normal">3195</span> +<span class="normal">3196</span> +<span class="normal">3197</span> +<span class="normal">3198</span> +<span class="normal">3199</span> +<span class="normal">3200</span> +<span class="normal">3201</span> +<span class="normal">3202</span> +<span class="normal">3203</span> +<span class="normal">3204</span> +<span class="normal">3205</span> +<span class="normal">3206</span> +<span class="normal">3207</span> +<span class="normal">3208</span> +<span class="normal">3209</span> +<span class="normal">3210</span> +<span class="normal">3211</span> +<span class="normal">3212</span> +<span class="normal">3213</span> +<span class="normal">3214</span> +<span class="normal">3215</span> +<span class="normal">3216</span> +<span class="normal">3217</span> +<span class="normal">3218</span> +<span class="normal">3219</span> +<span class="normal">3220</span> +<span class="normal">3221</span> +<span class="normal">3222</span> +<span class="normal">3223</span> +<span class="normal">3224</span> +<span class="normal">3225</span> +<span class="normal">3226</span> +<span class="normal">3227</span> +<span class="normal">3228</span> +<span class="normal">3229</span> +<span class="normal">3230</span> +<span class="normal">3231</span> +<span class="normal">3232</span> +<span class="normal">3233</span> +<span class="normal">3234</span> +<span class="normal">3235</span> +<span class="normal">3236</span> +<span class="normal">3237</span> +<span class="normal">3238</span> +<span class="normal">3239</span> +<span class="normal">3240</span> +<span class="normal">3241</span> +<span class="normal">3242</span> +<span class="normal">3243</span> +<span class="normal">3244</span> +<span class="normal">3245</span> +<span class="normal">3246</span> +<span class="normal">3247</span> +<span class="normal">3248</span> +<span class="normal">3249</span> +<span class="normal">3250</span> +<span class="normal">3251</span> +<span class="normal">3252</span> +<span class="normal">3253</span> +<span class="normal">3254</span> +<span class="normal">3255</span> +<span class="normal">3256</span> +<span class="normal">3257</span> +<span class="normal">3258</span> +<span class="normal">3259</span> +<span class="normal">3260</span> +<span class="normal">3261</span> +<span class="normal">3262</span> +<span class="normal">3263</span> +<span class="normal">3264</span> +<span class="normal">3265</span> +<span class="normal">3266</span> +<span class="normal">3267</span> +<span class="normal">3268</span> +<span class="normal">3269</span> +<span class="normal">3270</span> +<span class="normal">3271</span> +<span class="normal">3272</span> +<span class="normal">3273</span> +<span class="normal">3274</span> +<span class="normal">3275</span> +<span class="normal">3276</span> +<span class="normal">3277</span> +<span class="normal">3278</span> +<span class="normal">3279</span> +<span class="normal">3280</span> +<span class="normal">3281</span> +<span class="normal">3282</span> +<span class="normal">3283</span> +<span class="normal">3284</span> +<span class="normal">3285</span> +<span class="normal">3286</span> +<span class="normal">3287</span> +<span class="normal">3288</span> +<span class="normal">3289</span> +<span class="normal">3290</span> +<span class="normal">3291</span> +<span class="normal">3292</span> +<span class="normal">3293</span> +<span class="normal">3294</span> +<span class="normal">3295</span> +<span class="normal">3296</span> +<span class="normal">3297</span> +<span class="normal">3298</span> +<span class="normal">3299</span> +<span class="normal">3300</span> +<span class="normal">3301</span> +<span class="normal">3302</span> +<span class="normal">3303</span> +<span class="normal">3304</span> +<span class="normal">3305</span> +<span class="normal">3306</span> +<span class="normal">3307</span> +<span class="normal">3308</span> +<span class="normal">3309</span> +<span class="normal">3310</span> +<span class="normal">3311</span> +<span class="normal">3312</span> +<span class="normal">3313</span> +<span class="normal">3314</span> +<span class="normal">3315</span> +<span class="normal">3316</span> +<span class="normal">3317</span> +<span class="normal">3318</span> +<span class="normal">3319</span> +<span class="normal">3320</span> +<span class="normal">3321</span> +<span class="normal">3322</span> +<span class="normal">3323</span> +<span class="normal">3324</span> +<span class="normal">3325</span> +<span class="normal">3326</span> +<span class="normal">3327</span> +<span class="normal">3328</span> +<span class="normal">3329</span> +<span class="normal">3330</span> +<span class="normal">3331</span> +<span class="normal">3332</span> +<span class="normal">3333</span> +<span class="normal">3334</span> +<span class="normal">3335</span> +<span class="normal">3336</span> +<span class="normal">3337</span> +<span class="normal">3338</span> +<span class="normal">3339</span> +<span class="normal">3340</span> +<span class="normal">3341</span> +<span class="normal">3342</span> +<span class="normal">3343</span> +<span class="normal">3344</span> +<span class="normal">3345</span> +<span class="normal">3346</span> +<span class="normal">3347</span> +<span class="normal">3348</span> +<span class="normal">3349</span> +<span class="normal">3350</span> +<span class="normal">3351</span> +<span class="normal">3352</span> +<span class="normal">3353</span> +<span class="normal">3354</span> +<span class="normal">3355</span> +<span class="normal">3356</span> +<span class="normal">3357</span> +<span class="normal">3358</span> +<span class="normal">3359</span> +<span class="normal">3360</span> +<span class="normal">3361</span> +<span class="normal">3362</span> +<span class="normal">3363</span> +<span class="normal">3364</span> +<span class="normal">3365</span> +<span class="normal">3366</span> +<span class="normal">3367</span> +<span class="normal">3368</span> +<span class="normal">3369</span> +<span class="normal">3370</span> +<span class="normal">3371</span> +<span class="normal">3372</span> +<span class="normal">3373</span> +<span class="normal">3374</span> +<span class="normal">3375</span> +<span class="normal">3376</span> +<span class="normal">3377</span> +<span class="normal">3378</span> +<span class="normal">3379</span> +<span class="normal">3380</span> +<span class="normal">3381</span> +<span class="normal">3382</span> +<span class="normal">3383</span> +<span class="normal">3384</span> +<span class="normal">3385</span> +<span class="normal">3386</span> +<span class="normal">3387</span> +<span class="normal">3388</span> +<span class="normal">3389</span> +<span class="normal">3390</span> +<span class="normal">3391</span> +<span class="normal">3392</span> +<span class="normal">3393</span> +<span class="normal">3394</span> +<span class="normal">3395</span> +<span class="normal">3396</span> +<span class="normal">3397</span> +<span class="normal">3398</span> +<span class="normal">3399</span> +<span class="normal">3400</span> +<span class="normal">3401</span> +<span class="normal">3402</span> +<span class="normal">3403</span> +<span class="normal">3404</span> +<span class="normal">3405</span> +<span class="normal">3406</span> +<span class="normal">3407</span> +<span class="normal">3408</span> +<span class="normal">3409</span> +<span class="normal">3410</span> +<span class="normal">3411</span> +<span class="normal">3412</span> +<span class="normal">3413</span> +<span class="normal">3414</span> +<span class="normal">3415</span> +<span class="normal">3416</span> +<span class="normal">3417</span> +<span class="normal">3418</span> +<span class="normal">3419</span> +<span class="normal">3420</span> +<span class="normal">3421</span> +<span class="normal">3422</span> +<span class="normal">3423</span> +<span class="normal">3424</span> +<span class="normal">3425</span> +<span class="normal">3426</span> +<span class="normal">3427</span> +<span class="normal">3428</span> +<span class="normal">3429</span> +<span class="normal">3430</span> +<span class="normal">3431</span> +<span class="normal">3432</span> +<span class="normal">3433</span> +<span class="normal">3434</span> +<span class="normal">3435</span> +<span class="normal">3436</span> +<span class="normal">3437</span> +<span class="normal">3438</span> +<span class="normal">3439</span> +<span class="normal">3440</span> +<span class="normal">3441</span> +<span class="normal">3442</span> +<span class="normal">3443</span> +<span class="normal">3444</span> +<span class="normal">3445</span> +<span class="normal">3446</span> +<span class="normal">3447</span> +<span class="normal">3448</span> +<span class="normal">3449</span> +<span class="normal">3450</span> +<span class="normal">3451</span> +<span class="normal">3452</span> +<span class="normal">3453</span> +<span class="normal">3454</span> +<span class="normal">3455</span> +<span class="normal">3456</span> +<span class="normal">3457</span> +<span class="normal">3458</span> +<span class="normal">3459</span> +<span class="normal">3460</span> +<span class="normal">3461</span> +<span class="normal">3462</span> +<span class="normal">3463</span> +<span class="normal">3464</span> +<span class="normal">3465</span> +<span class="normal">3466</span> +<span class="normal">3467</span> +<span class="normal">3468</span> +<span class="normal">3469</span> +<span class="normal">3470</span> +<span class="normal">3471</span> +<span class="normal">3472</span> +<span class="normal">3473</span> +<span class="normal">3474</span> +<span class="normal">3475</span> +<span class="normal">3476</span> +<span class="normal">3477</span> +<span class="normal">3478</span> +<span class="normal">3479</span> +<span class="normal">3480</span> +<span class="normal">3481</span> +<span class="normal">3482</span> +<span class="normal">3483</span> +<span class="normal">3484</span> +<span class="normal">3485</span> +<span class="normal">3486</span> +<span class="normal">3487</span> +<span class="normal">3488</span> +<span class="normal">3489</span> +<span class="normal">3490</span> +<span class="normal">3491</span> +<span class="normal">3492</span> +<span class="normal">3493</span> +<span class="normal">3494</span> +<span class="normal">3495</span> +<span class="normal">3496</span> +<span class="normal">3497</span> +<span class="normal">3498</span> +<span class="normal">3499</span> +<span class="normal">3500</span> +<span class="normal">3501</span> +<span class="normal">3502</span> +<span class="normal">3503</span> +<span class="normal">3504</span> +<span class="normal">3505</span> +<span class="normal">3506</span> +<span class="normal">3507</span> +<span class="normal">3508</span> +<span class="normal">3509</span> +<span class="normal">3510</span> +<span class="normal">3511</span> +<span class="normal">3512</span> +<span class="normal">3513</span> +<span class="normal">3514</span> +<span class="normal">3515</span> +<span class="normal">3516</span> +<span class="normal">3517</span> +<span class="normal">3518</span> +<span class="normal">3519</span> +<span class="normal">3520</span> +<span class="normal">3521</span> +<span class="normal">3522</span> +<span class="normal">3523</span> +<span class="normal">3524</span> +<span class="normal">3525</span> +<span class="normal">3526</span> +<span class="normal">3527</span> +<span class="normal">3528</span> +<span class="normal">3529</span> +<span class="normal">3530</span> +<span class="normal">3531</span> +<span class="normal">3532</span> +<span class="normal">3533</span> +<span class="normal">3534</span> +<span class="normal">3535</span> +<span class="normal">3536</span> +<span class="normal">3537</span> +<span class="normal">3538</span> +<span class="normal">3539</span> +<span class="normal">3540</span> +<span class="normal">3541</span> +<span class="normal">3542</span> +<span class="normal">3543</span> +<span class="normal">3544</span> +<span class="normal">3545</span> +<span class="normal">3546</span> +<span class="normal">3547</span> +<span class="normal">3548</span> +<span class="normal">3549</span> +<span class="normal">3550</span> +<span class="normal">3551</span> +<span class="normal">3552</span> +<span class="normal">3553</span> +<span class="normal">3554</span> +<span class="normal">3555</span> +<span class="normal">3556</span> +<span class="normal">3557</span> +<span class="normal">3558</span> +<span class="normal">3559</span> +<span class="normal">3560</span> +<span class="normal">3561</span> +<span class="normal">3562</span> +<span class="normal">3563</span> +<span class="normal">3564</span> +<span class="normal">3565</span> +<span class="normal">3566</span> +<span class="normal">3567</span> +<span class="normal">3568</span> +<span class="normal">3569</span> +<span class="normal">3570</span> +<span class="normal">3571</span> +<span class="normal">3572</span> +<span class="normal">3573</span> +<span class="normal">3574</span> +<span class="normal">3575</span> +<span class="normal">3576</span> +<span class="normal">3577</span> +<span class="normal">3578</span> +<span class="normal">3579</span> +<span class="normal">3580</span> +<span class="normal">3581</span> +<span class="normal">3582</span> +<span class="normal">3583</span> +<span class="normal">3584</span> +<span class="normal">3585</span> +<span class="normal">3586</span> +<span class="normal">3587</span> +<span class="normal">3588</span> +<span class="normal">3589</span> +<span class="normal">3590</span> +<span class="normal">3591</span> +<span class="normal">3592</span> +<span class="normal">3593</span> +<span class="normal">3594</span> +<span class="normal">3595</span> +<span class="normal">3596</span> +<span class="normal">3597</span> +<span class="normal">3598</span> +<span class="normal">3599</span> +<span class="normal">3600</span> +<span class="normal">3601</span> +<span class="normal">3602</span> +<span class="normal">3603</span> +<span class="normal">3604</span> +<span class="normal">3605</span> +<span class="normal">3606</span> +<span class="normal">3607</span> +<span class="normal">3608</span> +<span class="normal">3609</span> +<span class="normal">3610</span> +<span class="normal">3611</span> +<span class="normal">3612</span> +<span class="normal">3613</span> +<span class="normal">3614</span> +<span class="normal">3615</span> +<span class="normal">3616</span> +<span class="normal">3617</span> +<span class="normal">3618</span> +<span class="normal">3619</span> +<span class="normal">3620</span> +<span class="normal">3621</span> +<span class="normal">3622</span> +<span class="normal">3623</span> +<span class="normal">3624</span> +<span class="normal">3625</span> +<span class="normal">3626</span> +<span class="normal">3627</span> +<span class="normal">3628</span> +<span class="normal">3629</span> +<span class="normal">3630</span> +<span class="normal">3631</span> +<span class="normal">3632</span> +<span class="normal">3633</span> +<span class="normal">3634</span> +<span class="normal">3635</span> +<span class="normal">3636</span> +<span class="normal">3637</span> +<span class="normal">3638</span> +<span class="normal">3639</span> +<span class="normal">3640</span> +<span class="normal">3641</span> +<span class="normal">3642</span> +<span class="normal">3643</span> +<span class="normal">3644</span> +<span class="normal">3645</span> +<span class="normal">3646</span> +<span class="normal">3647</span> +<span class="normal">3648</span> +<span class="normal">3649</span> +<span class="normal">3650</span> +<span class="normal">3651</span> +<span class="normal">3652</span> +<span class="normal">3653</span> +<span class="normal">3654</span> +<span class="normal">3655</span> +<span class="normal">3656</span> +<span class="normal">3657</span> +<span class="normal">3658</span> +<span class="normal">3659</span> +<span class="normal">3660</span> +<span class="normal">3661</span> +<span class="normal">3662</span> +<span class="normal">3663</span> +<span class="normal">3664</span> +<span class="normal">3665</span> +<span class="normal">3666</span> +<span class="normal">3667</span> +<span class="normal">3668</span> +<span class="normal">3669</span> +<span class="normal">3670</span> +<span class="normal">3671</span> +<span class="normal">3672</span> +<span class="normal">3673</span> +<span class="normal">3674</span> +<span class="normal">3675</span> +<span class="normal">3676</span> +<span class="normal">3677</span> +<span class="normal">3678</span> +<span class="normal">3679</span> +<span class="normal">3680</span> +<span class="normal">3681</span> +<span class="normal">3682</span> +<span class="normal">3683</span> +<span class="normal">3684</span> +<span class="normal">3685</span> +<span class="normal">3686</span> +<span class="normal">3687</span> +<span class="normal">3688</span> +<span class="normal">3689</span> +<span class="normal">3690</span> +<span class="normal">3691</span> +<span class="normal">3692</span> +<span class="normal">3693</span> +<span class="normal">3694</span> +<span class="normal">3695</span> +<span class="normal">3696</span> +<span class="normal">3697</span> +<span class="normal">3698</span> +<span class="normal">3699</span> +<span class="normal">3700</span> +<span class="normal">3701</span> +<span class="normal">3702</span> +<span class="normal">3703</span> +<span class="normal">3704</span> +<span class="normal">3705</span> +<span class="normal">3706</span> +<span class="normal">3707</span> +<span class="normal">3708</span> +<span class="normal">3709</span> +<span class="normal">3710</span> +<span class="normal">3711</span> +<span class="normal">3712</span> +<span class="normal">3713</span> +<span class="normal">3714</span> +<span class="normal">3715</span> +<span class="normal">3716</span> +<span class="normal">3717</span> +<span class="normal">3718</span> +<span class="normal">3719</span> +<span class="normal">3720</span> +<span class="normal">3721</span> +<span class="normal">3722</span> +<span class="normal">3723</span> +<span class="normal">3724</span> +<span class="normal">3725</span> +<span class="normal">3726</span> +<span class="normal">3727</span> +<span class="normal">3728</span> +<span class="normal">3729</span> +<span class="normal">3730</span> +<span class="normal">3731</span> +<span class="normal">3732</span> +<span class="normal">3733</span> +<span class="normal">3734</span> +<span class="normal">3735</span> +<span class="normal">3736</span> +<span class="normal">3737</span> +<span class="normal">3738</span> +<span class="normal">3739</span> +<span class="normal">3740</span> +<span class="normal">3741</span> +<span class="normal">3742</span> +<span class="normal">3743</span> +<span class="normal">3744</span> +<span class="normal">3745</span> +<span class="normal">3746</span> +<span class="normal">3747</span> +<span class="normal">3748</span> +<span class="normal">3749</span> +<span class="normal">3750</span> +<span class="normal">3751</span> +<span class="normal">3752</span> +<span class="normal">3753</span> +<span class="normal">3754</span> +<span class="normal">3755</span> +<span class="normal">3756</span> +<span class="normal">3757</span> +<span class="normal">3758</span> +<span class="normal">3759</span> +<span class="normal">3760</span> +<span class="normal">3761</span> +<span class="normal">3762</span> +<span class="normal">3763</span> +<span class="normal">3764</span> +<span class="normal">3765</span> +<span class="normal">3766</span> +<span class="normal">3767</span> +<span class="normal">3768</span> +<span class="normal">3769</span> +<span class="normal">3770</span> +<span class="normal">3771</span> +<span class="normal">3772</span> +<span class="normal">3773</span> +<span class="normal">3774</span> +<span class="normal">3775</span> +<span class="normal">3776</span> +<span class="normal">3777</span> +<span class="normal">3778</span> +<span class="normal">3779</span> +<span class="normal">3780</span> +<span class="normal">3781</span> +<span class="normal">3782</span> +<span class="normal">3783</span> +<span class="normal">3784</span> +<span class="normal">3785</span> +<span class="normal">3786</span> +<span class="normal">3787</span> +<span class="normal">3788</span> +<span class="normal">3789</span> +<span class="normal">3790</span> +<span class="normal">3791</span> +<span class="normal">3792</span> +<span class="normal">3793</span> +<span class="normal">3794</span> +<span class="normal">3795</span> +<span class="normal">3796</span> +<span class="normal">3797</span> +<span class="normal">3798</span> +<span class="normal">3799</span> +<span class="normal">3800</span> +<span class="normal">3801</span> +<span class="normal">3802</span> +<span class="normal">3803</span> +<span class="normal">3804</span> +<span class="normal">3805</span> +<span class="normal">3806</span> +<span class="normal">3807</span> +<span class="normal">3808</span> +<span class="normal">3809</span> +<span class="normal">3810</span> +<span class="normal">3811</span> +<span class="normal">3812</span> +<span class="normal">3813</span> +<span class="normal">3814</span> +<span class="normal">3815</span> +<span class="normal">3816</span> +<span class="normal">3817</span> +<span class="normal">3818</span> +<span class="normal">3819</span> +<span class="normal">3820</span> +<span class="normal">3821</span> +<span class="normal">3822</span> +<span class="normal">3823</span> +<span class="normal">3824</span> +<span class="normal">3825</span> +<span class="normal">3826</span> +<span class="normal">3827</span> +<span class="normal">3828</span> +<span class="normal">3829</span> +<span class="normal">3830</span> +<span class="normal">3831</span> +<span class="normal">3832</span> +<span class="normal">3833</span> +<span class="normal">3834</span> +<span class="normal">3835</span> +<span class="normal">3836</span> +<span class="normal">3837</span> +<span class="normal">3838</span> +<span class="normal">3839</span> +<span class="normal">3840</span> +<span class="normal">3841</span> +<span class="normal">3842</span> +<span class="normal">3843</span> +<span class="normal">3844</span> +<span class="normal">3845</span> +<span class="normal">3846</span> +<span class="normal">3847</span> +<span class="normal">3848</span> +<span class="normal">3849</span> +<span class="normal">3850</span> +<span class="normal">3851</span> +<span class="normal">3852</span> +<span class="normal">3853</span> +<span class="normal">3854</span> +<span class="normal">3855</span> +<span class="normal">3856</span> +<span class="normal">3857</span> +<span class="normal">3858</span> +<span class="normal">3859</span> +<span class="normal">3860</span> +<span class="normal">3861</span> +<span class="normal">3862</span> +<span class="normal">3863</span> +<span class="normal">3864</span> +<span class="normal">3865</span> +<span class="normal">3866</span> +<span class="normal">3867</span> +<span class="normal">3868</span> +<span class="normal">3869</span> +<span class="normal">3870</span> +<span class="normal">3871</span> +<span class="normal">3872</span> +<span class="normal">3873</span> +<span class="normal">3874</span> +<span class="normal">3875</span> +<span class="normal">3876</span> +<span class="normal">3877</span> +<span class="normal">3878</span> +<span class="normal">3879</span> +<span class="normal">3880</span> +<span class="normal">3881</span> +<span class="normal">3882</span> +<span class="normal">3883</span> +<span class="normal">3884</span> +<span class="normal">3885</span> +<span class="normal">3886</span> +<span class="normal">3887</span> +<span class="normal">3888</span> +<span class="normal">3889</span> +<span class="normal">3890</span> +<span class="normal">3891</span> +<span class="normal">3892</span> +<span class="normal">3893</span> +<span class="normal">3894</span> +<span class="normal">3895</span> +<span class="normal">3896</span> +<span class="normal">3897</span> +<span class="normal">3898</span> +<span class="normal">3899</span> +<span class="normal">3900</span> +<span class="normal">3901</span> +<span class="normal">3902</span> +<span class="normal">3903</span> +<span class="normal">3904</span> +<span class="normal">3905</span> +<span class="normal">3906</span> +<span class="normal">3907</span> +<span class="normal">3908</span> +<span class="normal">3909</span> +<span class="normal">3910</span> +<span class="normal">3911</span> +<span class="normal">3912</span> +<span class="normal">3913</span> +<span class="normal">3914</span> +<span class="normal">3915</span> +<span class="normal">3916</span> +<span class="normal">3917</span> +<span class="normal">3918</span> +<span class="normal">3919</span> +<span class="normal">3920</span> +<span class="normal">3921</span> +<span class="normal">3922</span> +<span class="normal">3923</span> +<span class="normal">3924</span> +<span class="normal">3925</span> +<span class="normal">3926</span> +<span class="normal">3927</span> +<span class="normal">3928</span> +<span class="normal">3929</span> +<span class="normal">3930</span> +<span class="normal">3931</span> +<span class="normal">3932</span> +<span class="normal">3933</span> +<span class="normal">3934</span> +<span class="normal">3935</span> +<span class="normal">3936</span> +<span class="normal">3937</span> +<span class="normal">3938</span> +<span class="normal">3939</span> +<span class="normal">3940</span> +<span class="normal">3941</span> +<span class="normal">3942</span> +<span class="normal">3943</span> +<span class="normal">3944</span> +<span class="normal">3945</span> +<span class="normal">3946</span> +<span class="normal">3947</span> +<span class="normal">3948</span> +<span class="normal">3949</span> +<span class="normal">3950</span> +<span class="normal">3951</span> +<span class="normal">3952</span> +<span class="normal">3953</span> +<span class="normal">3954</span> +<span class="normal">3955</span> +<span class="normal">3956</span> +<span class="normal">3957</span> +<span class="normal">3958</span> +<span class="normal">3959</span> +<span class="normal">3960</span> +<span class="normal">3961</span> +<span class="normal">3962</span> +<span class="normal">3963</span> +<span class="normal">3964</span> +<span class="normal">3965</span> +<span class="normal">3966</span> +<span class="normal">3967</span> +<span class="normal">3968</span> +<span class="normal">3969</span> +<span class="normal">3970</span> +<span class="normal">3971</span> +<span class="normal">3972</span> +<span class="normal">3973</span> +<span class="normal">3974</span> +<span class="normal">3975</span> +<span class="normal">3976</span> +<span class="normal">3977</span> +<span class="normal">3978</span> +<span class="normal">3979</span> +<span class="normal">3980</span> +<span class="normal">3981</span> +<span class="normal">3982</span> +<span class="normal">3983</span> +<span class="normal">3984</span> +<span class="normal">3985</span> +<span class="normal">3986</span> +<span class="normal">3987</span> +<span class="normal">3988</span> +<span class="normal">3989</span> +<span class="normal">3990</span> +<span class="normal">3991</span> +<span class="normal">3992</span> +<span class="normal">3993</span> +<span class="normal">3994</span> +<span class="normal">3995</span> +<span class="normal">3996</span> +<span class="normal">3997</span> +<span class="normal">3998</span> +<span class="normal">3999</span> +<span class="normal">4000</span> +<span class="normal">4001</span> +<span class="normal">4002</span> +<span class="normal">4003</span> +<span class="normal">4004</span> +<span class="normal">4005</span> +<span class="normal">4006</span> +<span class="normal">4007</span> +<span class="normal">4008</span> +<span class="normal">4009</span> +<span class="normal">4010</span> +<span class="normal">4011</span> +<span class="normal">4012</span> +<span class="normal">4013</span> +<span class="normal">4014</span> +<span class="normal">4015</span> +<span class="normal">4016</span> +<span class="normal">4017</span> +<span class="normal">4018</span> +<span class="normal">4019</span> +<span class="normal">4020</span> +<span class="normal">4021</span> +<span class="normal">4022</span> +<span class="normal">4023</span> +<span class="normal">4024</span> +<span class="normal">4025</span> +<span class="normal">4026</span> +<span class="normal">4027</span> +<span class="normal">4028</span> +<span class="normal">4029</span> +<span class="normal">4030</span> +<span class="normal">4031</span> +<span class="normal">4032</span> +<span class="normal">4033</span> +<span class="normal">4034</span> +<span class="normal">4035</span> +<span class="normal">4036</span> +<span class="normal">4037</span> +<span class="normal">4038</span> +<span class="normal">4039</span> +<span class="normal">4040</span> +<span class="normal">4041</span> +<span class="normal">4042</span> +<span class="normal">4043</span> +<span class="normal">4044</span> +<span class="normal">4045</span> +<span class="normal">4046</span> +<span class="normal">4047</span> +<span class="normal">4048</span> +<span class="normal">4049</span> +<span class="normal">4050</span> +<span class="normal">4051</span> +<span class="normal">4052</span> +<span class="normal">4053</span> +<span class="normal">4054</span> +<span class="normal">4055</span> +<span class="normal">4056</span> +<span class="normal">4057</span> +<span class="normal">4058</span> +<span class="normal">4059</span> +<span class="normal">4060</span> +<span class="normal">4061</span> +<span class="normal">4062</span> +<span class="normal">4063</span> +<span class="normal">4064</span> +<span class="normal">4065</span> +<span class="normal">4066</span> +<span class="normal">4067</span> +<span class="normal">4068</span> +<span class="normal">4069</span> +<span class="normal">4070</span> +<span class="normal">4071</span> +<span class="normal">4072</span> +<span class="normal">4073</span> +<span class="normal">4074</span> +<span class="normal">4075</span> +<span class="normal">4076</span> +<span class="normal">4077</span> +<span class="normal">4078</span> +<span class="normal">4079</span> +<span class="normal">4080</span> +<span class="normal">4081</span> +<span class="normal">4082</span> +<span class="normal">4083</span> +<span class="normal">4084</span> +<span class="normal">4085</span> +<span class="normal">4086</span> +<span class="normal">4087</span> +<span class="normal">4088</span> +<span class="normal">4089</span> +<span class="normal">4090</span> +<span class="normal">4091</span> +<span class="normal">4092</span> +<span class="normal">4093</span> +<span class="normal">4094</span> +<span class="normal">4095</span> +<span class="normal">4096</span> +<span class="normal">4097</span> +<span class="normal">4098</span> +<span class="normal">4099</span> +<span class="normal">4100</span> +<span class="normal">4101</span> +<span class="normal">4102</span> +<span class="normal">4103</span> +<span class="normal">4104</span> +<span class="normal">4105</span> +<span class="normal">4106</span> +<span class="normal">4107</span> +<span class="normal">4108</span> +<span class="normal">4109</span> +<span class="normal">4110</span> +<span class="normal">4111</span> +<span class="normal">4112</span> +<span class="normal">4113</span> +<span class="normal">4114</span> +<span class="normal">4115</span> +<span class="normal">4116</span> +<span class="normal">4117</span> +<span class="normal">4118</span> +<span class="normal">4119</span> +<span class="normal">4120</span> +<span class="normal">4121</span> +<span class="normal">4122</span> +<span class="normal">4123</span> +<span class="normal">4124</span> +<span class="normal">4125</span> +<span class="normal">4126</span> +<span class="normal">4127</span> +<span class="normal">4128</span> +<span class="normal">4129</span> +<span class="normal">4130</span> +<span class="normal">4131</span> +<span class="normal">4132</span> +<span class="normal">4133</span> +<span class="normal">4134</span> +<span class="normal">4135</span> +<span class="normal">4136</span> +<span class="normal">4137</span> +<span class="normal">4138</span> +<span class="normal">4139</span> +<span class="normal">4140</span> +<span class="normal">4141</span> +<span class="normal">4142</span> +<span class="normal">4143</span> +<span class="normal">4144</span> +<span class="normal">4145</span> +<span class="normal">4146</span> +<span class="normal">4147</span> +<span class="normal">4148</span> +<span class="normal">4149</span> +<span class="normal">4150</span> +<span class="normal">4151</span> +<span class="normal">4152</span> +<span class="normal">4153</span> +<span class="normal">4154</span> +<span class="normal">4155</span> +<span class="normal">4156</span> +<span class="normal">4157</span> +<span class="normal">4158</span> +<span class="normal">4159</span> +<span class="normal">4160</span> +<span class="normal">4161</span> +<span class="normal">4162</span> +<span class="normal">4163</span> +<span class="normal">4164</span> +<span class="normal">4165</span> +<span class="normal">4166</span> +<span class="normal">4167</span> +<span class="normal">4168</span> +<span class="normal">4169</span> +<span class="normal">4170</span> +<span class="normal">4171</span> +<span class="normal">4172</span> +<span class="normal">4173</span> +<span class="normal">4174</span> +<span class="normal">4175</span> +<span class="normal">4176</span> +<span class="normal">4177</span> +<span class="normal">4178</span> +<span class="normal">4179</span> +<span class="normal">4180</span> +<span class="normal">4181</span> +<span class="normal">4182</span> +<span class="normal">4183</span> +<span class="normal">4184</span> +<span class="normal">4185</span> +<span class="normal">4186</span> +<span class="normal">4187</span> +<span class="normal">4188</span> +<span class="normal">4189</span> +<span class="normal">4190</span> +<span class="normal">4191</span> +<span class="normal">4192</span> +<span class="normal">4193</span> +<span class="normal">4194</span> +<span class="normal">4195</span> +<span class="normal">4196</span> +<span class="normal">4197</span> +<span class="normal">4198</span> +<span class="normal">4199</span> +<span class="normal">4200</span> +<span class="normal">4201</span> +<span class="normal">4202</span> +<span class="normal">4203</span> +<span class="normal">4204</span> +<span class="normal">4205</span> +<span class="normal">4206</span> +<span class="normal">4207</span> +<span class="normal">4208</span> +<span class="normal">4209</span> +<span class="normal">4210</span> +<span class="normal">4211</span> +<span class="normal">4212</span> +<span class="normal">4213</span> +<span class="normal">4214</span> +<span class="normal">4215</span> +<span class="normal">4216</span> +<span class="normal">4217</span> +<span class="normal">4218</span> +<span class="normal">4219</span> +<span class="normal">4220</span> +<span class="normal">4221</span> +<span class="normal">4222</span> +<span class="normal">4223</span> +<span class="normal">4224</span> +<span class="normal">4225</span> +<span class="normal">4226</span> +<span class="normal">4227</span> +<span class="normal">4228</span> +<span class="normal">4229</span> +<span class="normal">4230</span> +<span class="normal">4231</span> +<span class="normal">4232</span> +<span class="normal">4233</span> +<span class="normal">4234</span> +<span class="normal">4235</span> +<span class="normal">4236</span> +<span class="normal">4237</span> +<span class="normal">4238</span> +<span class="normal">4239</span> +<span class="normal">4240</span> +<span class="normal">4241</span> +<span class="normal">4242</span> +<span class="normal">4243</span> +<span class="normal">4244</span> +<span class="normal">4245</span> +<span class="normal">4246</span> +<span class="normal">4247</span> +<span class="normal">4248</span> +<span class="normal">4249</span> +<span class="normal">4250</span> +<span class="normal">4251</span> +<span class="normal">4252</span> +<span class="normal">4253</span> +<span class="normal">4254</span> +<span class="normal">4255</span> +<span class="normal">4256</span> +<span class="normal">4257</span> +<span class="normal">4258</span> +<span class="normal">4259</span> +<span class="normal">4260</span> +<span class="normal">4261</span> +<span class="normal">4262</span> +<span class="normal">4263</span> +<span class="normal">4264</span> +<span class="normal">4265</span> +<span class="normal">4266</span> +<span class="normal">4267</span> +<span class="normal">4268</span> +<span class="normal">4269</span> +<span class="normal">4270</span> +<span class="normal">4271</span> +<span class="normal">4272</span> +<span class="normal">4273</span> +<span class="normal">4274</span> +<span class="normal">4275</span> +<span class="normal">4276</span> +<span class="normal">4277</span> +<span class="normal">4278</span> +<span class="normal">4279</span> +<span class="normal">4280</span> +<span class="normal">4281</span> +<span class="normal">4282</span> +<span class="normal">4283</span> +<span class="normal">4284</span> +<span class="normal">4285</span> +<span class="normal">4286</span> +<span class="normal">4287</span> +<span class="normal">4288</span> +<span class="normal">4289</span> +<span class="normal">4290</span> +<span class="normal">4291</span> +<span class="normal">4292</span> +<span class="normal">4293</span> +<span class="normal">4294</span> +<span class="normal">4295</span> +<span class="normal">4296</span> +<span class="normal">4297</span> +<span class="normal">4298</span> +<span class="normal">4299</span> +<span class="normal">4300</span> +<span class="normal">4301</span> +<span class="normal">4302</span> +<span class="normal">4303</span> +<span class="normal">4304</span> +<span class="normal">4305</span> +<span class="normal">4306</span> +<span class="normal">4307</span> +<span class="normal">4308</span> +<span class="normal">4309</span> +<span class="normal">4310</span> +<span class="normal">4311</span> +<span class="normal">4312</span> +<span class="normal">4313</span> +<span class="normal">4314</span> +<span class="normal">4315</span> +<span class="normal">4316</span> +<span class="normal">4317</span> +<span class="normal">4318</span> +<span class="normal">4319</span> +<span class="normal">4320</span> +<span class="normal">4321</span> +<span class="normal">4322</span> +<span class="normal">4323</span> +<span class="normal">4324</span> +<span class="normal">4325</span> +<span class="normal">4326</span> +<span class="normal">4327</span> +<span class="normal">4328</span> +<span class="normal">4329</span> +<span class="normal">4330</span> +<span class="normal">4331</span> +<span class="normal">4332</span> +<span class="normal">4333</span> +<span class="normal">4334</span> +<span class="normal">4335</span> +<span class="normal">4336</span> +<span class="normal">4337</span> +<span class="normal">4338</span> +<span class="normal">4339</span> +<span class="normal">4340</span> +<span class="normal">4341</span> +<span class="normal">4342</span> +<span class="normal">4343</span> +<span class="normal">4344</span> +<span class="normal">4345</span> +<span class="normal">4346</span> +<span class="normal">4347</span> +<span class="normal">4348</span> +<span class="normal">4349</span> +<span class="normal">4350</span> +<span class="normal">4351</span> +<span class="normal">4352</span> +<span class="normal">4353</span> +<span class="normal">4354</span> +<span class="normal">4355</span> +<span class="normal">4356</span> +<span class="normal">4357</span> +<span class="normal">4358</span> +<span class="normal">4359</span> +<span class="normal">4360</span> +<span class="normal">4361</span> +<span class="normal">4362</span> +<span class="normal">4363</span> +<span class="normal">4364</span> +<span class="normal">4365</span> +<span class="normal">4366</span> +<span class="normal">4367</span> +<span class="normal">4368</span> +<span class="normal">4369</span> +<span class="normal">4370</span> +<span class="normal">4371</span> +<span class="normal">4372</span> +<span class="normal">4373</span> +<span class="normal">4374</span> +<span class="normal">4375</span> +<span class="normal">4376</span> +<span class="normal">4377</span> +<span class="normal">4378</span> +<span class="normal">4379</span> +<span class="normal">4380</span> +<span class="normal">4381</span> +<span class="normal">4382</span> +<span class="normal">4383</span> +<span class="normal">4384</span> +<span class="normal">4385</span> +<span class="normal">4386</span> +<span class="normal">4387</span> +<span class="normal">4388</span> +<span class="normal">4389</span> +<span class="normal">4390</span> +<span class="normal">4391</span> +<span class="normal">4392</span> +<span class="normal">4393</span> +<span class="normal">4394</span> +<span class="normal">4395</span> +<span class="normal">4396</span> +<span class="normal">4397</span> +<span class="normal">4398</span> +<span class="normal">4399</span> +<span class="normal">4400</span> +<span class="normal">4401</span> +<span class="normal">4402</span> +<span class="normal">4403</span> +<span class="normal">4404</span> +<span class="normal">4405</span> +<span class="normal">4406</span> +<span class="normal">4407</span> +<span class="normal">4408</span> +<span class="normal">4409</span> +<span class="normal">4410</span> +<span class="normal">4411</span> +<span class="normal">4412</span> +<span class="normal">4413</span> +<span class="normal">4414</span> +<span class="normal">4415</span> +<span class="normal">4416</span> +<span class="normal">4417</span> +<span class="normal">4418</span> +<span class="normal">4419</span> +<span class="normal">4420</span> +<span class="normal">4421</span> +<span class="normal">4422</span> +<span class="normal">4423</span> +<span class="normal">4424</span> +<span class="normal">4425</span> +<span class="normal">4426</span> +<span class="normal">4427</span> +<span class="normal">4428</span> +<span class="normal">4429</span> +<span class="normal">4430</span> +<span class="normal">4431</span> +<span class="normal">4432</span> +<span class="normal">4433</span> +<span class="normal">4434</span> +<span class="normal">4435</span> +<span class="normal">4436</span> +<span class="normal">4437</span> +<span class="normal">4438</span> +<span class="normal">4439</span> +<span class="normal">4440</span> +<span class="normal">4441</span> +<span class="normal">4442</span> +<span class="normal">4443</span> +<span class="normal">4444</span> +<span class="normal">4445</span> +<span class="normal">4446</span> +<span class="normal">4447</span> +<span class="normal">4448</span> +<span class="normal">4449</span> +<span class="normal">4450</span> +<span class="normal">4451</span> +<span class="normal">4452</span> +<span class="normal">4453</span> +<span class="normal">4454</span> +<span class="normal">4455</span> +<span class="normal">4456</span> +<span class="normal">4457</span> +<span class="normal">4458</span> +<span class="normal">4459</span> +<span class="normal">4460</span> +<span class="normal">4461</span> +<span class="normal">4462</span> +<span class="normal">4463</span> +<span class="normal">4464</span> +<span class="normal">4465</span> +<span class="normal">4466</span> +<span class="normal">4467</span> +<span class="normal">4468</span> +<span class="normal">4469</span> +<span class="normal">4470</span> +<span class="normal">4471</span> +<span class="normal">4472</span> +<span class="normal">4473</span> +<span class="normal">4474</span> +<span class="normal">4475</span> +<span class="normal">4476</span> +<span class="normal">4477</span> +<span class="normal">4478</span> +<span class="normal">4479</span> +<span class="normal">4480</span> +<span class="normal">4481</span> +<span class="normal">4482</span> +<span class="normal">4483</span> +<span class="normal">4484</span> +<span class="normal">4485</span> +<span class="normal">4486</span> +<span class="normal">4487</span> +<span class="normal">4488</span> +<span class="normal">4489</span> +<span class="normal">4490</span> +<span class="normal">4491</span> +<span class="normal">4492</span> +<span class="normal">4493</span> +<span class="normal">4494</span> +<span class="normal">4495</span> +<span class="normal">4496</span> +<span class="normal">4497</span> +<span class="normal">4498</span> +<span class="normal">4499</span> +<span class="normal">4500</span> +<span class="normal">4501</span> +<span class="normal">4502</span> +<span class="normal">4503</span> +<span class="normal">4504</span> +<span class="normal">4505</span> +<span class="normal">4506</span> +<span class="normal">4507</span> +<span class="normal">4508</span> +<span class="normal">4509</span> +<span class="normal">4510</span> +<span class="normal">4511</span> +<span class="normal">4512</span> +<span class="normal">4513</span> +<span class="normal">4514</span> +<span class="normal">4515</span> +<span class="normal">4516</span> +<span class="normal">4517</span> +<span class="normal">4518</span> +<span class="normal">4519</span> +<span class="normal">4520</span> +<span class="normal">4521</span> +<span class="normal">4522</span> +<span class="normal">4523</span> +<span class="normal">4524</span> +<span class="normal">4525</span> +<span class="normal">4526</span> +<span class="normal">4527</span> +<span class="normal">4528</span> +<span class="normal">4529</span> +<span class="normal">4530</span> +<span class="normal">4531</span> +<span class="normal">4532</span> +<span class="normal">4533</span> +<span class="normal">4534</span> +<span class="normal">4535</span> +<span class="normal">4536</span> +<span class="normal">4537</span> +<span class="normal">4538</span> +<span class="normal">4539</span> +<span class="normal">4540</span> +<span class="normal">4541</span> +<span class="normal">4542</span> +<span class="normal">4543</span> +<span class="normal">4544</span> +<span class="normal">4545</span> +<span class="normal">4546</span> +<span class="normal">4547</span> +<span class="normal">4548</span> +<span class="normal">4549</span> +<span class="normal">4550</span> +<span class="normal">4551</span> +<span class="normal">4552</span> +<span class="normal">4553</span> +<span class="normal">4554</span> +<span class="normal">4555</span> +<span class="normal">4556</span> +<span class="normal">4557</span> +<span class="normal">4558</span> +<span class="normal">4559</span> +<span class="normal">4560</span> +<span class="normal">4561</span> +<span class="normal">4562</span> +<span class="normal">4563</span> +<span class="normal">4564</span> +<span class="normal">4565</span> +<span class="normal">4566</span> +<span class="normal">4567</span> +<span class="normal">4568</span> +<span class="normal">4569</span> +<span class="normal">4570</span> +<span class="normal">4571</span> +<span class="normal">4572</span> +<span class="normal">4573</span> +<span class="normal">4574</span> +<span class="normal">4575</span> +<span class="normal">4576</span> +<span class="normal">4577</span> +<span class="normal">4578</span> +<span class="normal">4579</span> +<span class="normal">4580</span> +<span class="normal">4581</span> +<span class="normal">4582</span> +<span class="normal">4583</span> +<span class="normal">4584</span> +<span class="normal">4585</span> +<span class="normal">4586</span> +<span class="normal">4587</span> +<span class="normal">4588</span> +<span class="normal">4589</span> +<span class="normal">4590</span> +<span class="normal">4591</span> +<span class="normal">4592</span> +<span class="normal">4593</span> +<span class="normal">4594</span> +<span class="normal">4595</span> +<span class="normal">4596</span> +<span class="normal">4597</span> +<span class="normal">4598</span> +<span class="normal">4599</span> +<span class="normal">4600</span> +<span class="normal">4601</span> +<span class="normal">4602</span> +<span class="normal">4603</span> +<span class="normal">4604</span> +<span class="normal">4605</span> +<span class="normal">4606</span> +<span class="normal">4607</span> +<span class="normal">4608</span> +<span class="normal">4609</span> +<span class="normal">4610</span> +<span class="normal">4611</span> +<span class="normal">4612</span> +<span class="normal">4613</span> +<span class="normal">4614</span> +<span class="normal">4615</span> +<span class="normal">4616</span> +<span class="normal">4617</span> +<span class="normal">4618</span> +<span class="normal">4619</span> +<span class="normal">4620</span> +<span class="normal">4621</span> +<span class="normal">4622</span> +<span class="normal">4623</span> +<span class="normal">4624</span> +<span class="normal">4625</span> +<span class="normal">4626</span> +<span class="normal">4627</span> +<span class="normal">4628</span> +<span class="normal">4629</span> +<span class="normal">4630</span> +<span class="normal">4631</span> +<span class="normal">4632</span> +<span class="normal">4633</span> +<span class="normal">4634</span> +<span class="normal">4635</span> +<span class="normal">4636</span> +<span class="normal">4637</span> +<span class="normal">4638</span> +<span class="normal">4639</span> +<span class="normal">4640</span> +<span class="normal">4641</span> +<span class="normal">4642</span> +<span class="normal">4643</span> +<span class="normal">4644</span> +<span class="normal">4645</span> +<span class="normal">4646</span> +<span class="normal">4647</span> +<span class="normal">4648</span> +<span class="normal">4649</span> +<span class="normal">4650</span> +<span class="normal">4651</span> +<span class="normal">4652</span> +<span class="normal">4653</span> +<span class="normal">4654</span> +<span class="normal">4655</span> +<span class="normal">4656</span> +<span class="normal">4657</span> +<span class="normal">4658</span> +<span class="normal">4659</span> +<span class="normal">4660</span> +<span class="normal">4661</span> +<span class="normal">4662</span> +<span class="normal">4663</span> +<span class="normal">4664</span> +<span class="normal">4665</span> +<span class="normal">4666</span> +<span class="normal">4667</span> +<span class="normal">4668</span> +<span class="normal">4669</span> +<span class="normal">4670</span> +<span class="normal">4671</span> +<span class="normal">4672</span> +<span class="normal">4673</span> +<span class="normal">4674</span> +<span class="normal">4675</span> +<span class="normal">4676</span> +<span class="normal">4677</span> +<span class="normal">4678</span> +<span class="normal">4679</span> +<span class="normal">4680</span> +<span class="normal">4681</span> +<span class="normal">4682</span> +<span class="normal">4683</span> +<span class="normal">4684</span> +<span class="normal">4685</span> +<span class="normal">4686</span> +<span class="normal">4687</span> +<span class="normal">4688</span> +<span class="normal">4689</span> +<span class="normal">4690</span> +<span class="normal">4691</span> +<span class="normal">4692</span> +<span class="normal">4693</span> +<span class="normal">4694</span> +<span class="normal">4695</span> +<span class="normal">4696</span> +<span class="normal">4697</span> +<span class="normal">4698</span> +<span class="normal">4699</span> +<span class="normal">4700</span> +<span class="normal">4701</span> +<span class="normal">4702</span> +<span class="normal">4703</span> +<span class="normal">4704</span> +<span class="normal">4705</span> +<span class="normal">4706</span> +<span class="normal">4707</span> +<span class="normal">4708</span> +<span class="normal">4709</span> +<span class="normal">4710</span> +<span class="normal">4711</span> +<span class="normal">4712</span> +<span class="normal">4713</span> +<span class="normal">4714</span> +<span class="normal">4715</span> +<span class="normal">4716</span> +<span class="normal">4717</span> +<span class="normal">4718</span> +<span class="normal">4719</span> +<span class="normal">4720</span> +<span class="normal">4721</span> +<span class="normal">4722</span> +<span class="normal">4723</span> +<span class="normal">4724</span> +<span class="normal">4725</span> +<span class="normal">4726</span> +<span class="normal">4727</span> +<span class="normal">4728</span> +<span class="normal">4729</span> +<span class="normal">4730</span> +<span class="normal">4731</span> +<span class="normal">4732</span> +<span class="normal">4733</span> +<span class="normal">4734</span> +<span class="normal">4735</span> +<span class="normal">4736</span> +<span class="normal">4737</span> +<span class="normal">4738</span> +<span class="normal">4739</span> +<span class="normal">4740</span> +<span class="normal">4741</span> +<span class="normal">4742</span> +<span class="normal">4743</span> +<span class="normal">4744</span> +<span class="normal">4745</span> +<span class="normal">4746</span> +<span class="normal">4747</span> +<span class="normal">4748</span> +<span class="normal">4749</span> +<span class="normal">4750</span> +<span class="normal">4751</span> +<span class="normal">4752</span> +<span class="normal">4753</span> +<span class="normal">4754</span> +<span class="normal">4755</span> +<span class="normal">4756</span> +<span class="normal">4757</span> +<span class="normal">4758</span> +<span class="normal">4759</span> +<span class="normal">4760</span> +<span class="normal">4761</span> +<span class="normal">4762</span> +<span class="normal">4763</span> +<span class="normal">4764</span> +<span class="normal">4765</span> +<span class="normal">4766</span> +<span class="normal">4767</span> +<span class="normal">4768</span> +<span class="normal">4769</span> +<span class="normal">4770</span> +<span class="normal">4771</span> +<span class="normal">4772</span> +<span class="normal">4773</span> +<span class="normal">4774</span> +<span class="normal">4775</span> +<span class="normal">4776</span> +<span class="normal">4777</span> +<span class="normal">4778</span> +<span class="normal">4779</span> +<span class="normal">4780</span> +<span class="normal">4781</span> +<span class="normal">4782</span> +<span class="normal">4783</span> +<span class="normal">4784</span> +<span class="normal">4785</span> +<span class="normal">4786</span> +<span class="normal">4787</span> +<span class="normal">4788</span> +<span class="normal">4789</span> +<span class="normal">4790</span> +<span class="normal">4791</span> +<span class="normal">4792</span> +<span class="normal">4793</span> +<span class="normal">4794</span> +<span class="normal">4795</span> +<span class="normal">4796</span> +<span class="normal">4797</span> +<span class="normal">4798</span> +<span class="normal">4799</span> +<span class="normal">4800</span> +<span class="normal">4801</span> +<span class="normal">4802</span> +<span class="normal">4803</span> +<span class="normal">4804</span> +<span class="normal">4805</span> +<span class="normal">4806</span> +<span class="normal">4807</span> +<span class="normal">4808</span> +<span class="normal">4809</span> +<span class="normal">4810</span> +<span class="normal">4811</span> +<span class="normal">4812</span> +<span class="normal">4813</span> +<span class="normal">4814</span> +<span class="normal">4815</span> +<span class="normal">4816</span> +<span class="normal">4817</span> +<span class="normal">4818</span> +<span class="normal">4819</span> +<span class="normal">4820</span> +<span class="normal">4821</span> +<span class="normal">4822</span> +<span class="normal">4823</span> +<span class="normal">4824</span> +<span class="normal">4825</span> +<span class="normal">4826</span> +<span class="normal">4827</span> +<span class="normal">4828</span> +<span class="normal">4829</span> +<span class="normal">4830</span> +<span class="normal">4831</span> +<span class="normal">4832</span> +<span class="normal">4833</span> +<span class="normal">4834</span> +<span class="normal">4835</span> +<span class="normal">4836</span> +<span class="normal">4837</span> +<span class="normal">4838</span> +<span class="normal">4839</span> +<span class="normal">4840</span> +<span class="normal">4841</span> +<span class="normal">4842</span> +<span class="normal">4843</span> +<span class="normal">4844</span> +<span class="normal">4845</span> +<span class="normal">4846</span> +<span class="normal">4847</span> +<span class="normal">4848</span> +<span class="normal">4849</span> +<span class="normal">4850</span> +<span class="normal">4851</span> +<span class="normal">4852</span> +<span class="normal">4853</span> +<span class="normal">4854</span> +<span class="normal">4855</span> +<span class="normal">4856</span> +<span class="normal">4857</span> +<span class="normal">4858</span> +<span class="normal">4859</span> +<span class="normal">4860</span> +<span class="normal">4861</span> +<span class="normal">4862</span> +<span class="normal">4863</span> +<span class="normal">4864</span> +<span class="normal">4865</span> +<span class="normal">4866</span> +<span class="normal">4867</span> +<span class="normal">4868</span> +<span class="normal">4869</span> +<span class="normal">4870</span> +<span class="normal">4871</span> +<span class="normal">4872</span> +<span class="normal">4873</span> +<span class="normal">4874</span> +<span class="normal">4875</span> +<span class="normal">4876</span> +<span class="normal">4877</span> +<span class="normal">4878</span> +<span class="normal">4879</span> +<span class="normal">4880</span> +<span class="normal">4881</span> +<span class="normal">4882</span> +<span class="normal">4883</span> +<span class="normal">4884</span> +<span class="normal">4885</span> +<span class="normal">4886</span> +<span class="normal">4887</span> +<span class="normal">4888</span> +<span class="normal">4889</span> +<span class="normal">4890</span> +<span class="normal">4891</span> +<span class="normal">4892</span> +<span class="normal">4893</span> +<span class="normal">4894</span> +<span class="normal">4895</span> +<span class="normal">4896</span> +<span class="normal">4897</span> +<span class="normal">4898</span> +<span class="normal">4899</span> +<span class="normal">4900</span> +<span class="normal">4901</span> +<span class="normal">4902</span> +<span class="normal">4903</span> +<span class="normal">4904</span> +<span class="normal">4905</span> +<span class="normal">4906</span> +<span class="normal">4907</span> +<span class="normal">4908</span> +<span class="normal">4909</span> +<span class="normal">4910</span> +<span class="normal">4911</span> +<span class="normal">4912</span> +<span class="normal">4913</span> +<span class="normal">4914</span> +<span class="normal">4915</span> +<span class="normal">4916</span> +<span class="normal">4917</span> +<span class="normal">4918</span> +<span class="normal">4919</span> +<span class="normal">4920</span> +<span class="normal">4921</span> +<span class="normal">4922</span> +<span class="normal">4923</span> +<span class="normal">4924</span> +<span class="normal">4925</span> +<span class="normal">4926</span> +<span class="normal">4927</span> +<span class="normal">4928</span> +<span class="normal">4929</span> +<span class="normal">4930</span> +<span class="normal">4931</span> +<span class="normal">4932</span> +<span class="normal">4933</span> +<span class="normal">4934</span> +<span class="normal">4935</span> +<span class="normal">4936</span> +<span class="normal">4937</span> +<span class="normal">4938</span> +<span class="normal">4939</span> +<span class="normal">4940</span> +<span class="normal">4941</span> +<span class="normal">4942</span> +<span class="normal">4943</span> +<span class="normal">4944</span> +<span class="normal">4945</span> +<span class="normal">4946</span> +<span class="normal">4947</span> +<span class="normal">4948</span> +<span class="normal">4949</span> +<span class="normal">4950</span> +<span class="normal">4951</span> +<span class="normal">4952</span> +<span class="normal">4953</span> +<span class="normal">4954</span> +<span class="normal">4955</span> +<span class="normal">4956</span> +<span class="normal">4957</span> +<span class="normal">4958</span> +<span class="normal">4959</span> +<span class="normal">4960</span> +<span class="normal">4961</span> +<span class="normal">4962</span> +<span class="normal">4963</span> +<span class="normal">4964</span> +<span class="normal">4965</span> +<span class="normal">4966</span> +<span class="normal">4967</span> +<span class="normal">4968</span> +<span class="normal">4969</span> +<span class="normal">4970</span> +<span class="normal">4971</span> +<span class="normal">4972</span> +<span class="normal">4973</span> +<span class="normal">4974</span> +<span class="normal">4975</span> +<span class="normal">4976</span> +<span class="normal">4977</span> +<span class="normal">4978</span> +<span class="normal">4979</span> +<span class="normal">4980</span> +<span class="normal">4981</span> +<span class="normal">4982</span> +<span class="normal">4983</span> +<span class="normal">4984</span> +<span class="normal">4985</span> +<span class="normal">4986</span> +<span class="normal">4987</span> +<span class="normal">4988</span> +<span class="normal">4989</span> +<span class="normal">4990</span> +<span class="normal">4991</span> +<span class="normal">4992</span> +<span class="normal">4993</span> +<span class="normal">4994</span> +<span class="normal">4995</span> +<span class="normal">4996</span> +<span class="normal">4997</span> +<span class="normal">4998</span> +<span class="normal">4999</span> +<span class="normal">5000</span> +<span class="normal">5001</span> +<span class="normal">5002</span> +<span class="normal">5003</span> +<span class="normal">5004</span> +<span class="normal">5005</span> +<span class="normal">5006</span> +<span class="normal">5007</span> +<span class="normal">5008</span> +<span class="normal">5009</span> +<span class="normal">5010</span> +<span class="normal">5011</span> +<span class="normal">5012</span> +<span class="normal">5013</span> +<span class="normal">5014</span> +<span class="normal">5015</span> +<span class="normal">5016</span> +<span class="normal">5017</span> +<span class="normal">5018</span> +<span class="normal">5019</span> +<span class="normal">5020</span> +<span class="normal">5021</span> +<span class="normal">5022</span> +<span class="normal">5023</span> +<span class="normal">5024</span> +<span class="normal">5025</span> +<span class="normal">5026</span> +<span class="normal">5027</span> +<span class="normal">5028</span> +<span class="normal">5029</span> +<span class="normal">5030</span> +<span class="normal">5031</span> +<span class="normal">5032</span> +<span class="normal">5033</span> +<span class="normal">5034</span> +<span class="normal">5035</span> +<span class="normal">5036</span> +<span class="normal">5037</span> +<span class="normal">5038</span> +<span class="normal">5039</span> +<span class="normal">5040</span> +<span class="normal">5041</span> +<span class="normal">5042</span> +<span class="normal">5043</span> +<span class="normal">5044</span> +<span class="normal">5045</span> +<span class="normal">5046</span> +<span class="normal">5047</span> +<span class="normal">5048</span> +<span class="normal">5049</span> +<span class="normal">5050</span> +<span class="normal">5051</span> +<span class="normal">5052</span> +<span class="normal">5053</span> +<span class="normal">5054</span> +<span class="normal">5055</span> +<span class="normal">5056</span> +<span class="normal">5057</span> +<span class="normal">5058</span> +<span class="normal">5059</span> +<span class="normal">5060</span> +<span class="normal">5061</span> +<span class="normal">5062</span> +<span class="normal">5063</span> +<span class="normal">5064</span> +<span class="normal">5065</span> +<span class="normal">5066</span> +<span class="normal">5067</span> +<span class="normal">5068</span> +<span class="normal">5069</span> +<span class="normal">5070</span> +<span class="normal">5071</span> +<span class="normal">5072</span> +<span class="normal">5073</span> +<span class="normal">5074</span> +<span class="normal">5075</span> +<span class="normal">5076</span> +<span class="normal">5077</span> +<span class="normal">5078</span> +<span class="normal">5079</span> +<span class="normal">5080</span> +<span class="normal">5081</span> +<span class="normal">5082</span> +<span class="normal">5083</span> +<span class="normal">5084</span> +<span class="normal">5085</span> +<span class="normal">5086</span> +<span class="normal">5087</span> +<span class="normal">5088</span> +<span class="normal">5089</span> +<span class="normal">5090</span> +<span class="normal">5091</span> +<span class="normal">5092</span> +<span class="normal">5093</span> +<span class="normal">5094</span> +<span class="normal">5095</span> +<span class="normal">5096</span> +<span class="normal">5097</span> +<span class="normal">5098</span> +<span class="normal">5099</span> +<span class="normal">5100</span> +<span class="normal">5101</span> +<span class="normal">5102</span> +<span class="normal">5103</span> +<span class="normal">5104</span> +<span class="normal">5105</span> +<span class="normal">5106</span> +<span class="normal">5107</span> +<span class="normal">5108</span> +<span class="normal">5109</span> +<span class="normal">5110</span> +<span class="normal">5111</span> +<span class="normal">5112</span> +<span class="normal">5113</span> +<span class="normal">5114</span> +<span class="normal">5115</span> +<span class="normal">5116</span> +<span class="normal">5117</span> +<span class="normal">5118</span> +<span class="normal">5119</span> +<span class="normal">5120</span> +<span class="normal">5121</span> +<span class="normal">5122</span> +<span class="normal">5123</span> +<span class="normal">5124</span> +<span class="normal">5125</span> +<span class="normal">5126</span> +<span class="normal">5127</span> +<span class="normal">5128</span> +<span class="normal">5129</span> +<span class="normal">5130</span> +<span class="normal">5131</span> +<span class="normal">5132</span> +<span class="normal">5133</span> +<span class="normal">5134</span> +<span class="normal">5135</span> +<span class="normal">5136</span> +<span class="normal">5137</span> +<span class="normal">5138</span> +<span class="normal">5139</span> +<span class="normal">5140</span> +<span class="normal">5141</span> +<span class="normal">5142</span> +<span class="normal">5143</span> +<span class="normal">5144</span> +<span class="normal">5145</span> +<span class="normal">5146</span> +<span class="normal">5147</span> +<span class="normal">5148</span> +<span class="normal">5149</span> +<span class="normal">5150</span> +<span class="normal">5151</span> +<span class="normal">5152</span> +<span class="normal">5153</span> +<span class="normal">5154</span> +<span class="normal">5155</span> +<span class="normal">5156</span> +<span class="normal">5157</span> +<span class="normal">5158</span> +<span class="normal">5159</span> +<span class="normal">5160</span> +<span class="normal">5161</span> +<span class="normal">5162</span> +<span class="normal">5163</span> +<span class="normal">5164</span> +<span class="normal">5165</span> +<span class="normal">5166</span> +<span class="normal">5167</span> +<span class="normal">5168</span> +<span class="normal">5169</span> +<span class="normal">5170</span> +<span class="normal">5171</span> +<span class="normal">5172</span> +<span class="normal">5173</span> +<span class="normal">5174</span> +<span class="normal">5175</span> +<span class="normal">5176</span> +<span class="normal">5177</span> +<span class="normal">5178</span> +<span class="normal">5179</span> +<span class="normal">5180</span> +<span class="normal">5181</span> +<span class="normal">5182</span> +<span class="normal">5183</span> +<span class="normal">5184</span> +<span class="normal">5185</span> +<span class="normal">5186</span> +<span class="normal">5187</span> +<span class="normal">5188</span> +<span class="normal">5189</span> +<span class="normal">5190</span> +<span class="normal">5191</span> +<span class="normal">5192</span> +<span class="normal">5193</span> +<span class="normal">5194</span> +<span class="normal">5195</span> +<span class="normal">5196</span> +<span class="normal">5197</span> +<span class="normal">5198</span> +<span class="normal">5199</span> +<span class="normal">5200</span> +<span class="normal">5201</span> +<span class="normal">5202</span> +<span class="normal">5203</span> +<span class="normal">5204</span> +<span class="normal">5205</span> +<span class="normal">5206</span> +<span class="normal">5207</span> +<span class="normal">5208</span> +<span class="normal">5209</span> +<span class="normal">5210</span> +<span class="normal">5211</span> +<span class="normal">5212</span> +<span class="normal">5213</span> +<span class="normal">5214</span> +<span class="normal">5215</span> +<span class="normal">5216</span> +<span class="normal">5217</span> +<span class="normal">5218</span> +<span class="normal">5219</span> +<span class="normal">5220</span> +<span class="normal">5221</span> +<span class="normal">5222</span> +<span class="normal">5223</span> +<span class="normal">5224</span> +<span class="normal">5225</span> +<span class="normal">5226</span> +<span class="normal">5227</span> +<span class="normal">5228</span> +<span class="normal">5229</span> +<span class="normal">5230</span> +<span class="normal">5231</span> +<span class="normal">5232</span> +<span class="normal">5233</span> +<span class="normal">5234</span> +<span class="normal">5235</span> +<span class="normal">5236</span> +<span class="normal">5237</span> +<span class="normal">5238</span> +<span class="normal">5239</span> +<span class="normal">5240</span> +<span class="normal">5241</span> +<span class="normal">5242</span> +<span class="normal">5243</span> +<span class="normal">5244</span> +<span class="normal">5245</span> +<span class="normal">5246</span> +<span class="normal">5247</span> +<span class="normal">5248</span> +<span class="normal">5249</span> +<span class="normal">5250</span> +<span class="normal">5251</span> +<span class="normal">5252</span> +<span class="normal">5253</span> +<span class="normal">5254</span> +<span class="normal">5255</span> +<span class="normal">5256</span> +<span class="normal">5257</span> +<span class="normal">5258</span> +<span class="normal">5259</span> +<span class="normal">5260</span> +<span class="normal">5261</span> +<span class="normal">5262</span> +<span class="normal">5263</span> +<span class="normal">5264</span> +<span class="normal">5265</span> +<span class="normal">5266</span> +<span class="normal">5267</span> +<span class="normal">5268</span> +<span class="normal">5269</span> +<span class="normal">5270</span> +<span class="normal">5271</span> +<span class="normal">5272</span> +<span class="normal">5273</span> +<span class="normal">5274</span> +<span class="normal">5275</span> +<span class="normal">5276</span> +<span class="normal">5277</span> +<span class="normal">5278</span> +<span class="normal">5279</span> +<span class="normal">5280</span> +<span class="normal">5281</span> +<span class="normal">5282</span> +<span class="normal">5283</span> +<span class="normal">5284</span> +<span class="normal">5285</span> +<span class="normal">5286</span> +<span class="normal">5287</span> +<span class="normal">5288</span> +<span class="normal">5289</span> +<span class="normal">5290</span> +<span class="normal">5291</span> +<span class="normal">5292</span> +<span class="normal">5293</span> +<span class="normal">5294</span> +<span class="normal">5295</span> +<span class="normal">5296</span> +<span class="normal">5297</span> +<span class="normal">5298</span> +<span class="normal">5299</span> +<span class="normal">5300</span> +<span class="normal">5301</span> +<span class="normal">5302</span> +<span class="normal">5303</span> +<span class="normal">5304</span> +<span class="normal">5305</span> +<span class="normal">5306</span> +<span class="normal">5307</span> +<span class="normal">5308</span> +<span class="normal">5309</span> +<span class="normal">5310</span> +<span class="normal">5311</span> +<span class="normal">5312</span> +<span class="normal">5313</span> +<span class="normal">5314</span> +<span class="normal">5315</span> +<span class="normal">5316</span> +<span class="normal">5317</span> +<span class="normal">5318</span> +<span class="normal">5319</span> +<span class="normal">5320</span> +<span class="normal">5321</span> +<span class="normal">5322</span> +<span class="normal">5323</span> +<span class="normal">5324</span> +<span class="normal">5325</span> +<span class="normal">5326</span> +<span class="normal">5327</span> +<span class="normal">5328</span> +<span class="normal">5329</span> +<span class="normal">5330</span> +<span class="normal">5331</span> +<span class="normal">5332</span> +<span class="normal">5333</span> +<span class="normal">5334</span> +<span class="normal">5335</span> +<span class="normal">5336</span> +<span class="normal">5337</span> +<span class="normal">5338</span> +<span class="normal">5339</span> +<span class="normal">5340</span> +<span class="normal">5341</span> +<span class="normal">5342</span> +<span class="normal">5343</span> +<span class="normal">5344</span> +<span class="normal">5345</span> +<span class="normal">5346</span> +<span class="normal">5347</span> +<span class="normal">5348</span> +<span class="normal">5349</span> +<span class="normal">5350</span> +<span class="normal">5351</span> +<span class="normal">5352</span> +<span class="normal">5353</span> +<span class="normal">5354</span> +<span class="normal">5355</span> +<span class="normal">5356</span> +<span class="normal">5357</span> +<span class="normal">5358</span> +<span class="normal">5359</span> +<span class="normal">5360</span> +<span class="normal">5361</span> +<span class="normal">5362</span> +<span class="normal">5363</span> +<span class="normal">5364</span> +<span class="normal">5365</span> +<span class="normal">5366</span> +<span class="normal">5367</span> +<span class="normal">5368</span> +<span class="normal">5369</span> +<span class="normal">5370</span> +<span class="normal">5371</span> +<span class="normal">5372</span> +<span class="normal">5373</span> +<span class="normal">5374</span> +<span class="normal">5375</span> +<span class="normal">5376</span> +<span class="normal">5377</span> +<span class="normal">5378</span> +<span class="normal">5379</span> +<span class="normal">5380</span> +<span class="normal">5381</span> +<span class="normal">5382</span> +<span class="normal">5383</span> +<span class="normal">5384</span> +<span class="normal">5385</span> +<span class="normal">5386</span> +<span class="normal">5387</span> +<span class="normal">5388</span> +<span class="normal">5389</span> +<span class="normal">5390</span> +<span class="normal">5391</span> +<span class="normal">5392</span> +<span class="normal">5393</span> +<span class="normal">5394</span> +<span class="normal">5395</span> +<span class="normal">5396</span> +<span class="normal">5397</span> +<span class="normal">5398</span> +<span class="normal">5399</span> +<span class="normal">5400</span> +<span class="normal">5401</span> +<span class="normal">5402</span> +<span class="normal">5403</span> +<span class="normal">5404</span> +<span class="normal">5405</span> +<span class="normal">5406</span> +<span class="normal">5407</span> +<span class="normal">5408</span> +<span class="normal">5409</span> +<span class="normal">5410</span> +<span class="normal">5411</span> +<span class="normal">5412</span> +<span class="normal">5413</span> +<span class="normal">5414</span> +<span class="normal">5415</span> +<span class="normal">5416</span> +<span class="normal">5417</span> +<span class="normal">5418</span> +<span class="normal">5419</span> +<span class="normal">5420</span> +<span class="normal">5421</span> +<span class="normal">5422</span> +<span class="normal">5423</span> +<span class="normal">5424</span> +<span class="normal">5425</span> +<span class="normal">5426</span> +<span class="normal">5427</span> +<span class="normal">5428</span> +<span class="normal">5429</span> +<span class="normal">5430</span> +<span class="normal">5431</span> +<span class="normal">5432</span> +<span class="normal">5433</span> +<span class="normal">5434</span> +<span class="normal">5435</span> +<span class="normal">5436</span> +<span class="normal">5437</span> +<span class="normal">5438</span> +<span class="normal">5439</span> +<span class="normal">5440</span> +<span class="normal">5441</span> +<span class="normal">5442</span> +<span class="normal">5443</span> +<span class="normal">5444</span> +<span class="normal">5445</span> +<span class="normal">5446</span> +<span class="normal">5447</span> +<span class="normal">5448</span> +<span class="normal">5449</span> +<span class="normal">5450</span> +<span class="normal">5451</span> +<span class="normal">5452</span> +<span class="normal">5453</span> +<span class="normal">5454</span> +<span class="normal">5455</span> +<span class="normal">5456</span> +<span class="normal">5457</span> +<span class="normal">5458</span> +<span class="normal">5459</span> +<span class="normal">5460</span> +<span class="normal">5461</span> +<span class="normal">5462</span> +<span class="normal">5463</span> +<span class="normal">5464</span> +<span class="normal">5465</span> +<span class="normal">5466</span> +<span class="normal">5467</span> +<span class="normal">5468</span> +<span class="normal">5469</span> +<span class="normal">5470</span> +<span class="normal">5471</span> +<span class="normal">5472</span> +<span class="normal">5473</span> +<span class="normal">5474</span> +<span class="normal">5475</span> +<span class="normal">5476</span> +<span class="normal">5477</span> +<span class="normal">5478</span> +<span class="normal">5479</span> +<span class="normal">5480</span> +<span class="normal">5481</span> +<span class="normal">5482</span> +<span class="normal">5483</span> +<span class="normal">5484</span> +<span class="normal">5485</span> +<span class="normal">5486</span> +<span class="normal">5487</span> +<span class="normal">5488</span> +<span class="normal">5489</span> +<span class="normal">5490</span> +<span class="normal">5491</span> +<span class="normal">5492</span> +<span class="normal">5493</span> +<span class="normal">5494</span> +<span class="normal">5495</span> +<span class="normal">5496</span> +<span class="normal">5497</span> +<span class="normal">5498</span> +<span class="normal">5499</span> +<span class="normal">5500</span> +<span class="normal">5501</span> +<span class="normal">5502</span> +<span class="normal">5503</span> +<span class="normal">5504</span> +<span class="normal">5505</span> +<span class="normal">5506</span> +<span class="normal">5507</span> +<span class="normal">5508</span> +<span class="normal">5509</span> +<span class="normal">5510</span> +<span class="normal">5511</span> +<span class="normal">5512</span> +<span class="normal">5513</span> +<span class="normal">5514</span> +<span class="normal">5515</span> +<span class="normal">5516</span> +<span class="normal">5517</span> +<span class="normal">5518</span> +<span class="normal">5519</span> +<span class="normal">5520</span> +<span class="normal">5521</span> +<span class="normal">5522</span> +<span class="normal">5523</span> +<span class="normal">5524</span> +<span class="normal">5525</span> +<span class="normal">5526</span> +<span class="normal">5527</span> +<span class="normal">5528</span> +<span class="normal">5529</span> +<span class="normal">5530</span> +<span class="normal">5531</span> +<span class="normal">5532</span> +<span class="normal">5533</span> +<span class="normal">5534</span> +<span class="normal">5535</span> +<span class="normal">5536</span> +<span class="normal">5537</span> +<span class="normal">5538</span> +<span class="normal">5539</span> +<span class="normal">5540</span> +<span class="normal">5541</span> +<span class="normal">5542</span> +<span class="normal">5543</span> +<span class="normal">5544</span> +<span class="normal">5545</span> +<span class="normal">5546</span> +<span class="normal">5547</span> +<span class="normal">5548</span> +<span class="normal">5549</span> +<span class="normal">5550</span> +<span class="normal">5551</span> +<span class="normal">5552</span> +<span class="normal">5553</span> +<span class="normal">5554</span> +<span class="normal">5555</span> +<span class="normal">5556</span> +<span class="normal">5557</span> +<span class="normal">5558</span> +<span class="normal">5559</span> +<span class="normal">5560</span> +<span class="normal">5561</span> +<span class="normal">5562</span> +<span class="normal">5563</span> +<span class="normal">5564</span> +<span class="normal">5565</span> +<span class="normal">5566</span> +<span class="normal">5567</span> +<span class="normal">5568</span> +<span class="normal">5569</span> +<span class="normal">5570</span> +<span class="normal">5571</span> +<span class="normal">5572</span> +<span class="normal">5573</span> +<span class="normal">5574</span> +<span class="normal">5575</span> +<span class="normal">5576</span> +<span class="normal">5577</span> +<span class="normal">5578</span> +<span class="normal">5579</span> +<span class="normal">5580</span> +<span class="normal">5581</span> +<span class="normal">5582</span> +<span class="normal">5583</span> +<span class="normal">5584</span> +<span class="normal">5585</span> +<span class="normal">5586</span> +<span class="normal">5587</span> +<span class="normal">5588</span> +<span class="normal">5589</span> +<span class="normal">5590</span> +<span class="normal">5591</span> +<span class="normal">5592</span> +<span class="normal">5593</span> +<span class="normal">5594</span> +<span class="normal">5595</span> +<span class="normal">5596</span> +<span class="normal">5597</span> +<span class="normal">5598</span> +<span class="normal">5599</span> +<span class="normal">5600</span> +<span class="normal">5601</span> +<span class="normal">5602</span> +<span class="normal">5603</span> +<span class="normal">5604</span> +<span class="normal">5605</span> +<span class="normal">5606</span> +<span class="normal">5607</span> +<span class="normal">5608</span> +<span class="normal">5609</span> +<span class="normal">5610</span> +<span class="normal">5611</span> +<span class="normal">5612</span> +<span class="normal">5613</span> +<span class="normal">5614</span> +<span class="normal">5615</span> +<span class="normal">5616</span> +<span class="normal">5617</span> +<span class="normal">5618</span> +<span class="normal">5619</span> +<span class="normal">5620</span> +<span class="normal">5621</span> +<span class="normal">5622</span> +<span class="normal">5623</span> +<span class="normal">5624</span> +<span class="normal">5625</span> +<span class="normal">5626</span> +<span class="normal">5627</span> +<span class="normal">5628</span> +<span class="normal">5629</span> +<span class="normal">5630</span> +<span class="normal">5631</span> +<span class="normal">5632</span> +<span class="normal">5633</span> +<span class="normal">5634</span> +<span class="normal">5635</span> +<span class="normal">5636</span> +<span class="normal">5637</span> +<span class="normal">5638</span> +<span class="normal">5639</span> +<span class="normal">5640</span> +<span class="normal">5641</span> +<span class="normal">5642</span> +<span class="normal">5643</span> +<span class="normal">5644</span> +<span class="normal">5645</span> +<span class="normal">5646</span> +<span class="normal">5647</span> +<span class="normal">5648</span> +<span class="normal">5649</span> +<span class="normal">5650</span> +<span class="normal">5651</span> +<span class="normal">5652</span> +<span class="normal">5653</span> +<span class="normal">5654</span> +<span class="normal">5655</span> +<span class="normal">5656</span> +<span class="normal">5657</span> +<span class="normal">5658</span> +<span class="normal">5659</span> +<span class="normal">5660</span> +<span class="normal">5661</span> +<span class="normal">5662</span> +<span class="normal">5663</span> +<span class="normal">5664</span> +<span class="normal">5665</span> +<span class="normal">5666</span> +<span class="normal">5667</span> +<span class="normal">5668</span> +<span class="normal">5669</span> +<span class="normal">5670</span> +<span class="normal">5671</span> +<span class="normal">5672</span> +<span class="normal">5673</span> +<span class="normal">5674</span> +<span class="normal">5675</span> +<span class="normal">5676</span> +<span class="normal">5677</span> +<span class="normal">5678</span> +<span class="normal">5679</span> +<span class="normal">5680</span> +<span class="normal">5681</span> +<span class="normal">5682</span> +<span class="normal">5683</span> +<span class="normal">5684</span> +<span class="normal">5685</span> +<span class="normal">5686</span> +<span class="normal">5687</span> +<span class="normal">5688</span> +<span class="normal">5689</span> +<span class="normal">5690</span> +<span class="normal">5691</span> +<span class="normal">5692</span> +<span class="normal">5693</span> +<span class="normal">5694</span> +<span class="normal">5695</span> +<span class="normal">5696</span> +<span class="normal">5697</span> +<span class="normal">5698</span> +<span class="normal">5699</span> +<span class="normal">5700</span> +<span class="normal">5701</span> +<span class="normal">5702</span> +<span class="normal">5703</span> +<span class="normal">5704</span> +<span class="normal">5705</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - Main Window</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2000-2008 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on code by:</span> +<a id="line-8" name="line-8"></a><span class="cm"> * - Federico Mena-Quintero <[email protected]></span> +<a id="line-9" name="line-9"></a><span class="cm"> * - Jens Finke <[email protected]></span> +<a id="line-10" name="line-10"></a><span class="cm"> * Based on evince code (shell/ev-window.c) by:</span> +<a id="line-11" name="line-11"></a><span class="cm"> * - Martin Kretzschmar <[email protected]></span> +<a id="line-12" name="line-12"></a><span class="cm"> *</span> +<a id="line-13" name="line-13"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-14" name="line-14"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-15" name="line-15"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-16" name="line-16"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-17" name="line-17"></a><span class="cm"> *</span> +<a id="line-18" name="line-18"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-19" name="line-19"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-20" name="line-20"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-21" name="line-21"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-22" name="line-22"></a><span class="cm"> *</span> +<a id="line-23" name="line-23"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-24" name="line-24"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-25" name="line-25"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-26" name="line-26"></a><span class="cm"> */</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-30" name="line-30"></a><span class="cp">#endif</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></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">"eom-window.h"</span> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-scroll-view.h"</span> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-debug.h"</span> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-file-chooser.h"</span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-thumb-view.h"</span> +<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-list-store.h"</span> +<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-sidebar.h"</span> +<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-statusbar.h"</span> +<a id="line-42" name="line-42"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-preferences-dialog.h"</span> +<a id="line-43" name="line-43"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-properties-dialog.h"</span> +<a id="line-44" name="line-44"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-print.h"</span> +<a id="line-45" name="line-45"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-error-message-area.h"</span> +<a id="line-46" name="line-46"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-application.h"</span> +<a id="line-47" name="line-47"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-application-internal.h"</span> +<a id="line-48" name="line-48"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-thumb-nav.h"</span> +<a id="line-49" name="line-49"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-config-keys.h"</span> +<a id="line-50" name="line-50"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-job-queue.h"</span> +<a id="line-51" name="line-51"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-jobs.h"</span> +<a id="line-52" name="line-52"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-53" name="line-53"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-save-as-dialog-helper.h"</span> +<a id="line-54" name="line-54"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-close-confirmation-dialog.h"</span> +<a id="line-55" name="line-55"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-clipboard-handler.h"</span> +<a id="line-56" name="line-56"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-window-activatable.h"</span> +<a id="line-57" name="line-57"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-metadata-sidebar.h"</span> +<a id="line-58" name="line-58"></a> +<a id="line-59" name="line-59"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-enum-types.h"</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"egg-toolbar-editor.h"</span> +<a id="line-62" name="line-62"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"egg-editable-toolbar.h"</span> +<a id="line-63" name="line-63"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"egg-toolbars-model.h"</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-66" name="line-66"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span> +<a id="line-67" name="line-67"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-68" name="line-68"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span> +<a id="line-69" name="line-69"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></span> +<a id="line-70" name="line-70"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gdesktopappinfo.h></span> +<a id="line-71" name="line-71"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libpeas/peas-extension-set.h></span> +<a id="line-74" name="line-74"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libpeas/peas-activatable.h></span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="cp">#if HAVE_LCMS</span> +<a id="line-77" name="line-77"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><X11/Xlib.h></span> +<a id="line-78" name="line-78"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><X11/Xatom.h></span> +<a id="line-79" name="line-79"></a><span class="cp">#ifdef GDK_WINDOWING_X11</span> +<a id="line-80" name="line-80"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkx.h></span> +<a id="line-81" name="line-81"></a><span class="cp">#endif</span> +<a id="line-82" name="line-82"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><lcms2.h></span> +<a id="line-83" name="line-83"></a><span class="cp">#endif</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span> +<a id="line-86" name="line-86"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libmate-desktop/mate-desktop-utils.h></span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="cp">#define EOM_WINDOW_MIN_WIDTH 440</span> +<a id="line-89" name="line-89"></a><span class="cp">#define EOM_WINDOW_MIN_HEIGHT 350</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="cp">#define EOM_WINDOW_DEFAULT_WIDTH 540</span> +<a id="line-92" name="line-92"></a><span class="cp">#define EOM_WINDOW_DEFAULT_HEIGHT 450</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="cp">#define EOM_WINDOW_FULLSCREEN_TIMEOUT 5 * 1000</span> +<a id="line-95" name="line-95"></a><span class="cp">#define EOM_WINDOW_FULLSCREEN_POPUP_THRESHOLD 5</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="cp">#define EOM_RECENT_FILES_GROUP "Graphics"</span> +<a id="line-98" name="line-98"></a><span class="cp">#define EOM_RECENT_FILES_APP_NAME "Eye of MATE Image Viewer"</span> +<a id="line-99" name="line-99"></a><span class="cp">#define EOM_RECENT_FILES_LIMIT 5</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="cp">#define EOM_WALLPAPER_FILENAME "eom-wallpaper"</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="cp">#define is_rtl (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_UNKNOWN</span><span class="p">,</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_INIT</span><span class="p">,</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_NORMAL</span> +<a id="line-109" name="line-109"></a><span class="p">}</span><span class="w"> </span><span class="n">EomWindowStatus</span><span class="p">;</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">PROP_COLLECTION_POS</span><span class="p">,</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">PROP_COLLECTION_RESIZABLE</span><span class="p">,</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">PROP_STARTUP_FLAGS</span> +<a id="line-116" name="line-116"></a><span class="p">};</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">SIGNAL_PREPARED</span><span class="p">,</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">SIGNAL_LAST</span> +<a id="line-121" name="line-121"></a><span class="p">};</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">SIGNAL_LAST</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomWindowPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">view_settings</span><span class="p">;</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">ui_settings</span><span class="p">;</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">fullscreen_settings</span><span class="p">;</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">lockdown_settings</span><span class="p">;</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">;</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">EomWindowMode</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">EomWindowStatus</span><span class="w"> </span><span class="n">status</span><span class="p">;</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">ui_mgr</span><span class="p">;</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">box</span><span class="p">;</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">layout</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cbox</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">;</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">statusbar</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">nav</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">;</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">properties_dlg</span><span class="p">;</span> +<a id="line-148" name="line-148"></a> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">actions_window</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">actions_image</span><span class="p">;</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">actions_collection</span><span class="p">;</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">actions_recent</span><span class="p">;</span> +<a id="line-153" name="line-153"></a> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">fullscreen_popup</span><span class="p">;</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">GSource</span><span class="w"> </span><span class="o">*</span><span class="n">fullscreen_timeout_source</span><span class="p">;</span> +<a id="line-156" name="line-156"></a> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow_random</span><span class="p">;</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow_loop</span><span class="p">;</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">slideshow_switch_timeout</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">GSource</span><span class="w"> </span><span class="o">*</span><span class="n">slideshow_switch_source</span><span class="p">;</span> +<a id="line-161" name="line-161"></a> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">fullscreen_idle_inhibit_cookie</span><span class="p">;</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">recent_menu_id</span><span class="p">;</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">load_job</span><span class="p">;</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">transform_job</span><span class="p">;</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">save_job</span><span class="p">;</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">last_save_as_folder</span><span class="p">;</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">copy_job</span><span class="p">;</span> +<a id="line-171" name="line-171"></a> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">image_info_message_cid</span><span class="p">;</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">tip_message_cid</span><span class="p">;</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">copy_file_cid</span><span class="p">;</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">EomStartupFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">;</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">;</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">EomWindowCollectionPos</span><span class="w"> </span><span class="n">collection_position</span><span class="p">;</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">collection_resizable</span><span class="p">;</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">actions_open_with</span><span class="p">;</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">open_with_menu_id</span><span class="p">;</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">save_disabled</span><span class="p">;</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">needs_reload_confirmation</span><span class="p">;</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">GtkPageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">page_setup</span><span class="p">;</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">PeasExtensionSet</span><span class="w"> </span><span class="o">*</span><span class="n">extensions</span><span class="p">;</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">cmsHPROFILE</span><span class="w"> </span><span class="o">*</span><span class="n">display_profile</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="cp">#endif</span> +<a id="line-195" name="line-195"></a><span class="p">};</span> +<a id="line-196" name="line-196"></a> +<a id="line-197" name="line-197"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="p">,</span><span class="w"> </span><span class="n">eom_window</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_APPLICATION_WINDOW</span><span class="p">);</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_cmd_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_run_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow</span><span class="p">);</span> +<a id="line-201" name="line-201"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_cmd_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-202" name="line-202"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_cmd_pause_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-203" name="line-203"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_stop_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_load_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobLoad</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_save_progress_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="n">progress</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_progress_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobLoad</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="n">progress</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_job_transform_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobTransform</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">fullscreen_set_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-209" name="line-209"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">fullscreen_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-211" name="line-211"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">open_with_launch_application_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">callback_data</span><span class="p">);</span> +<a id="line-212" name="line-212"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_update_openwith_menu</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">);</span> +<a id="line-213" name="line-213"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_list_store_image_added</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">tree_model</span><span class="p">,</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">,</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_list_store_image_removed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">tree_model</span><span class="p">,</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_set_wallpaper</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</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><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">visible_filename</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">eom_window_save_images</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">images</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">disconnect_proxy_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">proxy</span><span class="p">,</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-226" name="line-226"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">eom_window_finish_saving</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-227" name="line-227"></a><span class="k">static</span><span class="w"> </span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span><span class="nf">get_appinfo_for_editor</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-228" name="line-228"></a> +<a id="line-229" name="line-229"></a><span class="k">static</span><span class="w"> </span><span class="n">GQuark</span> +<a id="line-230" name="line-230"></a><span class="nf">eom_window_error_quark</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-231" name="line-231"></a><span class="p">{</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GQuark</span><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">q</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_quark_from_static_string</span><span class="w"> </span><span class="p">(</span><span class="s">"eom-window-error-quark"</span><span class="p">);</span> +<a id="line-236" name="line-236"></a> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">q</span><span class="p">;</span> +<a id="line-238" name="line-238"></a><span class="p">}</span> +<a id="line-239" name="line-239"></a> +<a id="line-240" name="line-240"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-241" name="line-241"></a><span class="nf">eom_window_set_collection_mode</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindowCollectionPos</span><span class="w"> </span><span class="n">position</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">resizable</span><span class="p">)</span> +<a id="line-242" name="line-242"></a><span class="p">{</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hpaned</span><span class="p">;</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">EomThumbNavMode</span><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_NAV_MODE_ONE_ROW</span><span class="p">;</span> +<a id="line-246" name="line-246"></a> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_PREFERENCES</span><span class="p">);</span> +<a id="line-248" name="line-248"></a> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-250" name="line-250"></a> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-252" name="line-252"></a> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">collection_position</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">position</span><span class="w"> </span><span class="o">&&</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collection_resizable</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">resizable</span><span class="p">)</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-256" name="line-256"></a> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collection_position</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">position</span><span class="p">;</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collection_resizable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">resizable</span><span class="p">;</span> +<a id="line-259" name="line-259"></a> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">hpaned</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-261" name="line-261"></a> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">hpaned</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">);</span> +<a id="line-264" name="line-264"></a> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">);</span> +<a id="line-267" name="line-267"></a> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">);</span> +<a id="line-269" name="line-269"></a> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">position</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_WINDOW_COLLECTION_POS_BOTTOM</span><span class="p">:</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_WINDOW_COLLECTION_POS_TOP</span><span class="p">:</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">resizable</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_NAV_MODE_MULTIPLE_ROWS</span><span class="p">;</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_paned_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">);</span> +<a id="line-277" name="line-277"></a> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">position</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_COLLECTION_POS_BOTTOM</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">gtk_paned_pack1</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">gtk_paned_pack2</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">gtk_paned_pack1</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gtk_paned_pack2</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">}</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_NAV_MODE_ONE_ROW</span><span class="p">;</span> +<a id="line-287" name="line-287"></a> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">position</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_COLLECTION_POS_BOTTOM</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">}</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">}</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_WINDOW_COLLECTION_POS_LEFT</span><span class="p">:</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_WINDOW_COLLECTION_POS_RIGHT</span><span class="p">:</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">resizable</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_NAV_MODE_MULTIPLE_COLUMNS</span><span class="p">;</span> +<a id="line-304" name="line-304"></a> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_paned_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">);</span> +<a id="line-306" name="line-306"></a> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">position</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_COLLECTION_POS_LEFT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">gtk_paned_pack1</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">gtk_paned_pack2</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_paned_pack1</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gtk_paned_pack2</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="p">}</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_THUMB_NAV_MODE_ONE_COLUMN</span><span class="p">;</span> +<a id="line-316" name="line-316"></a> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-318" name="line-318"></a> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">position</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_COLLECTION_POS_LEFT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="p">}</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">}</span> +<a id="line-330" name="line-330"></a> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cbox</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-332" name="line-332"></a> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">eom_thumb_nav_set_mode</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_NAV</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">),</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span> +<a id="line-334" name="line-334"></a> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_UNKNOWN</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="p">}</span> +<a id="line-338" name="line-338"></a><span class="p">}</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-341" name="line-341"></a><span class="nf">eom_window_can_save_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">,</span><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><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-342" name="line-342"></a><span class="p">{</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">save_disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_save</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">action_save_as</span><span class="p">;</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_PREFERENCES</span><span class="p">);</span> +<a id="line-349" name="line-349"></a> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-351" name="line-351"></a> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-353" name="line-353"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-354" name="line-354"></a> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">save_disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span> +<a id="line-356" name="line-356"></a> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">save_disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">save_disabled</span><span class="p">;</span> +<a id="line-358" name="line-358"></a> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">action_save</span><span class="w"> </span><span class="o">=</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="s">"ImageSave"</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">action_save_as</span><span class="w"> </span><span class="o">=</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="s">"ImageSaveAs"</span><span class="p">);</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">save_disabled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_save</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_save_as</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-370" name="line-370"></a> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_save</span><span class="p">,</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-374" name="line-374"></a> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_save_as</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="p">}</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="p">}</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-379" name="line-379"></a><span class="p">}</span> +<a id="line-380" name="line-380"></a> +<a id="line-381" name="line-381"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-382" name="line-382"></a><span class="k">static</span><span class="w"> </span><span class="n">cmsHPROFILE</span><span class="w"> </span><span class="o">*</span> +<a id="line-383" name="line-383"></a><span class="nf">eom_window_get_display_profile</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span> +<a id="line-384" name="line-384"></a><span class="p">{</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">dpy</span><span class="p">;</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">icc_atom</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">;</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">format</span><span class="p">;</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">nitems</span><span class="p">;</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">bytes_after</span><span class="p">;</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">length</span><span class="p">;</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">cmsHPROFILE</span><span class="w"> </span><span class="o">*</span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">atom_name</span><span class="p">;</span> +<a id="line-395" name="line-395"></a> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">GDK_IS_X11_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="p">{</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="p">}</span> +<a id="line-399" name="line-399"></a> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">dpy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span> +<a id="line-401" name="line-401"></a> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_screen_get_screen_number</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">atom_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"_ICC_PROFILE_%d"</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_x11_screen_get_screen_number</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="k">else</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">atom_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">"_ICC_PROFILE"</span><span class="p">);</span> +<a id="line-406" name="line-406"></a> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">icc_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">gdk_screen_get_display</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">atom_name</span><span class="p">);</span> +<a id="line-408" name="line-408"></a> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">atom_name</span><span class="p">);</span> +<a id="line-410" name="line-410"></a> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetWindowProperty</span><span class="w"> </span><span class="p">(</span><span class="n">dpy</span><span class="p">,</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">GDK_WINDOW_XID</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_root_window</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">)),</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">icc_atom</span><span class="p">,</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">G_MAXLONG</span><span class="p">,</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">False</span><span class="p">,</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">XA_CARDINAL</span><span class="p">,</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="o">&</span><span class="n">type</span><span class="p">,</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="o">&</span><span class="n">format</span><span class="p">,</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="o">&</span><span class="n">nitems</span><span class="p">,</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="o">&</span><span class="n">bytes_after</span><span class="p">,</span> +<a id="line-422" name="line-422"></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="o">&</span><span class="n">str</span><span class="p">);</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="cm">/* TODO: handle bytes_after != 0 */</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">Success</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">XA_CARDINAL</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">nitems</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">)</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">{</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">8</span><span class="p">:</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">nitems</span><span class="p">;</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">16</span><span class="p">:</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="kt">short</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">nitems</span><span class="p">;</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">32</span><span class="p">:</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">nitems</span><span class="p">;</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span><span class="w"> </span><span class="s">"Unable to read profile, not correcting"</span><span class="p">);</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="p">}</span> +<a id="line-444" name="line-444"></a> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsOpenProfileFromMem</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">length</span><span class="p">);</span> +<a id="line-446" name="line-446"></a> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">profile</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="s">"Invalid display profile set, "</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="s">"not using it"</span><span class="p">);</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">}</span> +<a id="line-452" name="line-452"></a> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="p">}</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">profile</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cmsCreate_sRGBProfile</span><span class="w"> </span><span class="p">();</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_LCMS</span><span class="p">,</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="s">"No valid display profile set, assuming sRGB"</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="p">}</span> +<a id="line-461" name="line-461"></a> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">profile</span><span class="p">;</span> +<a id="line-463" name="line-463"></a><span class="p">}</span> +<a id="line-464" name="line-464"></a><span class="cp">#endif</span> +<a id="line-465" name="line-465"></a> +<a id="line-466" name="line-466"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-467" name="line-467"></a><span class="nf">update_image_pos</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-468" name="line-468"></a><span class="p">{</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-471" name="line-471"></a> +<a id="line-472" name="line-472"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-473" name="line-473"></a> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">));</span> +<a id="line-475" name="line-475"></a> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_pos_by_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">),</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="p">}</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="cm">/* Images: (image pos) / (n_total_images) */</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">eom_statusbar_set_image_number</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">n_images</span><span class="p">);</span> +<a id="line-484" name="line-484"></a> +<a id="line-485" name="line-485"></a><span class="p">}</span> +<a id="line-486" name="line-486"></a> +<a id="line-487" name="line-487"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-488" name="line-488"></a><span class="nf">update_status_bar</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-489" name="line-489"></a><span class="p">{</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-492" name="line-492"></a> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-494" name="line-494"></a> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-496" name="line-496"></a> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-498" name="line-498"></a> +<a id="line-499" name="line-499"></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">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_DIMENSION</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">goffset</span><span class="w"> </span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-503" name="line-503"></a> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="mi">100</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">eom_scroll_view_get_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span> +<a id="line-505" name="line-505"></a> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">eom_image_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">);</span> +<a id="line-507" name="line-507"></a> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_bytes</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-509" name="line-509"></a> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">size_string</span><span class="p">;</span> +<a id="line-512" name="line-512"></a> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">size_string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_format_size</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-514" name="line-514"></a> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="cm">/* Translators: This is the string displayed in the statusbar</span> +<a id="line-516" name="line-516"></a><span class="cm"> * The tokens are from left to right:</span> +<a id="line-517" name="line-517"></a><span class="cm"> * - image width</span> +<a id="line-518" name="line-518"></a><span class="cm"> * - image height</span> +<a id="line-519" name="line-519"></a><span class="cm"> * - image size in bytes</span> +<a id="line-520" name="line-520"></a><span class="cm"> * - zoom in percent */</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">ngettext</span><span class="p">(</span><span class="s">"%i × %i pixel %s %i%%"</span><span class="p">,</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="s">"%i × %i pixels %s %i%%"</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">),</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">height</span><span class="p">,</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">size_string</span><span class="p">,</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">zoom</span><span class="p">);</span> +<a id="line-527" name="line-527"></a> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">size_string</span><span class="p">);</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="p">}</span> +<a id="line-530" name="line-530"></a> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">update_image_pos</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="p">}</span> +<a id="line-533" name="line-533"></a> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">gtk_statusbar_pop</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="p">);</span> +<a id="line-536" name="line-536"></a> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">gtk_statusbar_push</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="p">,</span><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-539" name="line-539"></a> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-541" name="line-541"></a><span class="p">}</span> +<a id="line-542" name="line-542"></a> +<a id="line-543" name="line-543"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-544" name="line-544"></a><span class="nf">eom_window_set_message_area</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">)</span> +<a id="line-546" name="line-546"></a><span class="p">{</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">message_area</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">message_area</span><span class="p">)</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-549" name="line-549"></a> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">message_area</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">message_area</span><span class="p">);</span> +<a id="line-552" name="line-552"></a> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">message_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">message_area</span><span class="p">;</span> +<a id="line-554" name="line-554"></a> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">message_area</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-556" name="line-556"></a> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">cbox</span><span class="p">),</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">message_area</span><span class="p">,</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-562" name="line-562"></a> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">g_object_add_weak_pointer</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="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">message_area</span><span class="p">),</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="o">&</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">message_area</span><span class="p">);</span> +<a id="line-565" name="line-565"></a><span class="p">}</span> +<a id="line-566" name="line-566"></a> +<a id="line-567" name="line-567"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-568" name="line-568"></a><span class="nf">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-569" name="line-569"></a><span class="p">{</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_collection</span><span class="p">;</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_sidebar</span><span class="p">;</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_fscreen</span><span class="p">;</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_sshow</span><span class="p">;</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_print</span><span class="p">;</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">print_disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-578" name="line-578"></a> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-580" name="line-580"></a> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-582" name="line-582"></a> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-584" name="line-584"></a> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">action_collection</span><span class="w"> </span><span class="o">=</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="s">"ViewImageCollection"</span><span class="p">);</span> +<a id="line-589" name="line-589"></a> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">action_sidebar</span><span class="w"> </span><span class="o">=</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="s">"ViewSidebar"</span><span class="p">);</span> +<a id="line-593" name="line-593"></a> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">action_fscreen</span><span class="w"> </span><span class="o">=</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="s">"ViewFullscreen"</span><span class="p">);</span> +<a id="line-597" name="line-597"></a> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">action_sshow</span><span class="w"> </span><span class="o">=</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="s">"ViewSlideshow"</span><span class="p">);</span> +<a id="line-601" name="line-601"></a> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">action_print</span><span class="w"> </span><span class="o">=</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="s">"ImagePrint"</span><span class="p">);</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-606" name="line-606"></a> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action_collection</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action_sidebar</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action_fscreen</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action_sshow</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action_print</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-612" name="line-612"></a> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">));</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="p">}</span> +<a id="line-616" name="line-616"></a> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">);</span> +<a id="line-619" name="line-619"></a> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-624" name="line-624"></a> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_fscreen</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_sshow</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="cm">/* If there are no images on model, initialization</span> +<a id="line-630" name="line-630"></a><span class="cm"> stops here. */</span> +<a id="line-631" name="line-631"></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">-></span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_INIT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_NORMAL</span><span class="p">;</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="p">}</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">show_image_collection</span><span class="p">;</span> +<a id="line-636" name="line-636"></a> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_STARTUP_DISABLE_COLLECTION</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_IMAGE_COLLECTION</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-639" name="line-639"></a> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">show_image_collection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">show_image_collection</span><span class="w"> </span><span class="o">=</span> +<a id="line-643" name="line-643"></a><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">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_IMAGE_COLLECTION</span><span class="p">);</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="p">}</span> +<a id="line-645" name="line-645"></a> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">show_image_collection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">show_image_collection</span><span class="w"> </span><span class="o">&&</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">&&</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">;</span> +<a id="line-649" name="line-649"></a> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">);</span> +<a id="line-651" name="line-651"></a> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show_image_collection</span><span class="p">)</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">);</span> +<a id="line-654" name="line-654"></a> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action_collection</span><span class="p">),</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">show_image_collection</span><span class="p">);</span> +<a id="line-658" name="line-658"></a> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-661" name="line-661"></a> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_fscreen</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_collection</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_sshow</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_sshow</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="p">}</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-673" name="line-673"></a> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show_image_collection</span><span class="p">)</span> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="k">else</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">);</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="p">}</span> +<a id="line-679" name="line-679"></a> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">print_disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">lockdown_settings</span><span class="p">,</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">EOM_CONF_LOCKDOWN_CAN_PRINT</span><span class="p">);</span> +<a id="line-682" name="line-682"></a> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">print_disabled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_print</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="p">}</span> +<a id="line-687" name="line-687"></a> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_is_empty</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="p">}</span> +<a id="line-693" name="line-693"></a><span class="p">}</span> +<a id="line-694" name="line-694"></a> +<a id="line-695" name="line-695"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-696" name="line-696"></a><span class="nf">update_selection_ui_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-697" name="line-697"></a><span class="p">{</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">wallpaper_action</span><span class="p">;</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_selected</span><span class="p">;</span> +<a id="line-701" name="line-701"></a> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-703" name="line-703"></a> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">n_selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_n_selected</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-705" name="line-705"></a> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">wallpaper_action</span><span class="w"> </span><span class="o">=</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="s">"ImageSetAsWallpaper"</span><span class="p">);</span> +<a id="line-710" name="line-710"></a> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_selected</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">wallpaper_action</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">wallpaper_action</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="p">}</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-717" name="line-717"></a><span class="p">}</span> +<a id="line-718" name="line-718"></a> +<a id="line-719" name="line-719"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-720" name="line-720"></a><span class="nf">add_file_to_recent_files</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span> +<a id="line-721" name="line-721"></a><span class="p">{</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text_uri</span><span class="p">;</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">GtkRecentData</span><span class="w"> </span><span class="o">*</span><span class="n">recent_data</span><span class="p">;</span> +<a id="line-725" name="line-725"></a><span class="w"> </span><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">groups</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">EOM_RECENT_FILES_GROUP</span><span class="w"> </span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span> +<a id="line-726" name="line-726"></a> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-728" name="line-728"></a> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="cm">/* The password gets stripped here because ~/.recently-used.xbel is</span> +<a id="line-730" name="line-730"></a><span class="cm"> * readable by everyone (chmod 644). It also makes the workaround</span> +<a id="line-731" name="line-731"></a><span class="cm"> * for the bug with gtk_recent_info_get_uri_display() easier</span> +<a id="line-732" name="line-732"></a><span class="cm"> * (see the comment in eom_window_update_recent_files_menu()). */</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">text_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-734" name="line-734"></a> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">text_uri</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-737" name="line-737"></a> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-743" name="line-743"></a> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">recent_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new</span><span class="w"> </span><span class="p">(</span><span class="n">GtkRecentData</span><span class="p">);</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">recent_data</span><span class="o">-></span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">recent_data</span><span class="o">-></span><span class="n">description</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="n">recent_data</span><span class="o">-></span><span class="n">mime_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">recent_data</span><span class="o">-></span><span class="n">app_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_RECENT_FILES_APP_NAME</span><span class="p">;</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="n">recent_data</span><span class="o">-></span><span class="n">app_exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strjoin</span><span class="p">(</span><span class="s">" "</span><span class="p">,</span><span class="w"> </span><span class="n">g_get_prgname</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="s">"%u"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">recent_data</span><span class="o">-></span><span class="n">groups</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">groups</span><span class="p">;</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">recent_data</span><span class="o">-></span><span class="n">is_private</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-752" name="line-752"></a> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">gtk_recent_manager_add_full</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_recent_manager_get_default</span><span class="w"> </span><span class="p">(),</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">text_uri</span><span class="p">,</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">recent_data</span><span class="p">);</span> +<a id="line-756" name="line-756"></a> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">recent_data</span><span class="o">-></span><span class="n">app_exec</span><span class="p">);</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">text_uri</span><span class="p">);</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-760" name="line-760"></a> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">GtkRecentData</span><span class="p">,</span><span class="w"> </span><span class="n">recent_data</span><span class="p">);</span> +<a id="line-762" name="line-762"></a> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-764" name="line-764"></a><span class="p">}</span> +<a id="line-765" name="line-765"></a> +<a id="line-766" name="line-766"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-767" name="line-767"></a><span class="nf">image_thumb_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-768" name="line-768"></a><span class="p">{</span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span> +<a id="line-772" name="line-772"></a> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-774" name="line-774"></a> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-776" name="line-776"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-777" name="line-777"></a> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-779" name="line-779"></a> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">gtk_window_set_icon</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">thumb</span><span class="p">);</span> +<a id="line-782" name="line-782"></a> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">properties_dlg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">eom_properties_dialog_update</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">properties_dlg</span><span class="p">),</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="p">}</span> +<a id="line-787" name="line-787"></a> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">img_pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_pos_by_image</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_indices</span><span class="w"> </span><span class="p">(</span><span class="n">img_pos</span><span class="p">,</span><span class="mi">-1</span><span class="p">);</span> +<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-793" name="line-793"></a> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">gtk_tree_model_get_iter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">eom_list_store_thumbnail_set</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="p">}</span> +<a id="line-798" name="line-798"></a><span class="p">}</span> +<a id="line-799" name="line-799"></a> +<a id="line-800" name="line-800"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-801" name="line-801"></a><span class="nf">file_changed_info_bar_response</span><span class="w"> </span><span class="p">(</span><span class="n">GtkInfoBar</span><span class="w"> </span><span class="o">*</span><span class="n">info_bar</span><span class="p">,</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">,</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-804" name="line-804"></a><span class="p">{</span> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_YES</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">eom_window_reload_image</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="p">}</span> +<a id="line-808" name="line-808"></a> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">needs_reload_confirmation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-810" name="line-810"></a> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">eom_window_set_message_area</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-812" name="line-812"></a><span class="p">}</span> +<a id="line-813" name="line-813"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-814" name="line-814"></a><span class="nf">image_file_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-815" name="line-815"></a><span class="p">{</span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_bar</span><span class="p">;</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">markup</span><span class="p">;</span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">;</span> +<a id="line-821" name="line-821"></a> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">needs_reload_confirmation</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-824" name="line-824"></a> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="cm">/* Auto-reload when image is unmodified */</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">eom_window_reload_image</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="p">}</span> +<a id="line-830" name="line-830"></a> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">needs_reload_confirmation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-832" name="line-832"></a> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">info_bar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_info_bar_new_with_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"_Reload"</span><span class="p">),</span> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="n">GTK_RESPONSE_YES</span><span class="p">,</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">C_</span><span class="p">(</span><span class="s">"MessageArea"</span><span class="p">,</span><span class="w"> </span><span class="s">"Hi_de"</span><span class="p">),</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">GTK_RESPONSE_NO</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="n">gtk_info_bar_set_message_type</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">),</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">GTK_MESSAGE_QUESTION</span><span class="p">);</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">"dialog-question"</span><span class="p">,</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-842" name="line-842"></a> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="cm">/* The newline character is currently necessary due to a problem</span> +<a id="line-844" name="line-844"></a><span class="cm"> * with the automatic line break. */</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"The image </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s"> has been modified by an external application."</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">Would you like to reload it?"</span><span class="p">),</span><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">));</span> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">markup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="s">"<b>%s</b>"</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">gtk_label_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">markup</span><span class="p">);</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">markup</span><span class="p">);</span> +<a id="line-851" name="line-851"></a> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">gtk_widget_set_halign</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_START</span><span class="p">);</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">gtk_widget_set_valign</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_END</span><span class="p">);</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_info_bar_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">))),</span><span class="w"> </span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">);</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">);</span> +<a id="line-861" name="line-861"></a> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="n">eom_window_set_message_area</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">info_bar</span><span class="p">);</span> +<a id="line-863" name="line-863"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">file_changed_info_bar_response</span><span class="p">),</span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-866" name="line-866"></a><span class="p">}</span> +<a id="line-867" name="line-867"></a> +<a id="line-868" name="line-868"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-869" name="line-869"></a><span class="nf">eom_window_display_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-870" name="line-870"></a><span class="p">{</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-873" name="line-873"></a> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-876" name="line-876"></a> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-878" name="line-878"></a> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_IMAGE</span><span class="p">));</span> +<a id="line-880" name="line-880"></a> +<a id="line-881" name="line-881"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-882" name="line-882"></a> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"thumbnail_changed"</span><span class="p">,</span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">image_thumb_changed_cb</span><span class="p">),</span> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"file-changed"</span><span class="p">,</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">image_file_changed_cb</span><span class="p">),</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-890" name="line-890"></a> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">image_thumb_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="p">}</span> +<a id="line-893" name="line-893"></a> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">needs_reload_confirmation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-895" name="line-895"></a> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">eom_scroll_view_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-897" name="line-897"></a> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-899" name="line-899"></a> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">update_status_bar</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-901" name="line-901"></a> +<a id="line-902" name="line-902"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">g_idle_add_full</span><span class="w"> </span><span class="p">(</span><span class="n">G_PRIORITY_LOW</span><span class="p">,</span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="p">(</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="w"> </span><span class="n">add_file_to_recent_files</span><span class="p">,</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">file</span><span class="p">,</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-907" name="line-907"></a> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">eom_window_update_openwith_menu</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-909" name="line-909"></a><span class="p">}</span> +<a id="line-910" name="line-910"></a> +<a id="line-911" name="line-911"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-912" name="line-912"></a><span class="nf">open_with_launch_application_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</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><span class="p">{</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span><span class="n">app</span><span class="p">;</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">files</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-917" name="line-917"></a> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-919" name="line-919"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-920" name="line-920"></a> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">app</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">action</span><span class="p">),</span><span class="w"> </span><span class="s">"app"</span><span class="p">);</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="n">files</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">files</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">);</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">g_app_info_launch</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">,</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">files</span><span class="p">,</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-926" name="line-926"></a> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="p">);</span> +<a id="line-929" name="line-929"></a><span class="p">}</span> +<a id="line-930" name="line-930"></a> +<a id="line-931" name="line-931"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-932" name="line-932"></a><span class="nf">eom_window_update_openwith_menu</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-933" name="line-933"></a><span class="p">{</span> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">edit_button_active</span><span class="p">;</span> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span><span class="n">editor_app</span><span class="p">;</span> +<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">tip</span><span class="p">;</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="p">;</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">apps</span><span class="p">;</span> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">GIcon</span><span class="w"> </span><span class="o">*</span><span class="n">app_icon</span><span class="p">;</span> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menuitem</span><span class="p">;</span> +<a id="line-948" name="line-948"></a> +<a id="line-949" name="line-949"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-950" name="line-950"></a> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">edit_button_active</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">editor_app</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_appinfo_for_editor</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-953" name="line-953"></a> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-957" name="line-957"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-958" name="line-958"></a> +<a id="line-959" name="line-959"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">mime_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="p">}</span> +<a id="line-964" name="line-964"></a> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">open_with_menu_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="n">gtk_ui_manager_remove_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">open_with_menu_id</span><span class="p">);</span> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">open_with_menu_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-968" name="line-968"></a><span class="w"> </span><span class="p">}</span> +<a id="line-969" name="line-969"></a> +<a id="line-970" name="line-970"></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">-></span><span class="n">actions_open_with</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="n">gtk_ui_manager_remove_action_group</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_open_with</span><span class="p">);</span> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_open_with</span><span class="p">);</span> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_open_with</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="p">}</span> +<a id="line-975" name="line-975"></a> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-979" name="line-979"></a><span class="w"> </span><span class="p">}</span> +<a id="line-980" name="line-980"></a> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">apps</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_app_info_get_all_for_type</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">);</span> +<a id="line-982" name="line-982"></a> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-984" name="line-984"></a> +<a id="line-985" name="line-985"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">apps</span><span class="p">)</span> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-987" name="line-987"></a> +<a id="line-988" name="line-988"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-989" name="line-989"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_open_with</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_new</span><span class="w"> </span><span class="p">(</span><span class="s">"OpenWithActions"</span><span class="p">);</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">gtk_ui_manager_insert_action_group</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_open_with</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-992" name="line-992"></a> +<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">open_with_menu_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_new_merge_id</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">);</span> +<a id="line-994" name="line-994"></a> +<a id="line-995" name="line-995"></a><span class="w"> </span><span class="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">apps</span><span class="p">;</span><span class="w"> </span><span class="n">iter</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">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-996" name="line-996"></a><span class="w"> </span><span class="n">GAppInfo</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="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-997" name="line-997"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">name</span><span class="p">[</span><span class="mi">64</span><span class="p">];</span> +<a id="line-998" name="line-998"></a> +<a id="line-999" name="line-999"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">editor_app</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">g_app_info_equal</span><span class="w"> </span><span class="p">(</span><span class="n">editor_app</span><span class="p">,</span><span class="w"> </span><span class="n">app</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="n">edit_button_active</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1002" name="line-1002"></a> +<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="cm">/* Do not include eom itself */</span> +<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">g_app_info_get_executable</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">),</span> +<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="n">g_get_prgname</span><span class="w"> </span><span class="p">())</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">);</span> +<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1009" name="line-1009"></a> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">name</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">name</span><span class="p">),</span><span class="w"> </span><span class="s">"OpenWith%u"</span><span class="p">,</span><span class="w"> </span><span class="n">action_id</span><span class="o">++</span><span class="p">);</span> +<a id="line-1011" name="line-1011"></a> +<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">g_app_info_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">));</span> +<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="n">tip</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Use </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s"> to open the selected image"</span><span class="p">),</span><span class="w"> </span><span class="n">g_app_info_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">));</span> +<a id="line-1014" name="line-1014"></a> +<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_new</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">tip</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1018" name="line-1018"></a> +<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="n">app_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_app_info_get_icon</span><span class="w"> </span><span class="p">(</span><span class="n">app</span><span class="p">);</span> +<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">app_icon</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">app_icon</span><span class="p">);</span> +<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="n">gtk_action_set_gicon</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">app_icon</span><span class="p">);</span> +<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">app_icon</span><span class="p">);</span> +<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1027" name="line-1027"></a> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">);</span> +<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tip</span><span class="p">);</span> +<a id="line-1030" name="line-1030"></a> +<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="n">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">action</span><span class="p">),</span><span class="w"> </span><span class="s">"app"</span><span class="p">,</span><span class="w"> </span><span class="n">app</span><span class="p">,</span> +<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-1033" name="line-1033"></a> +<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span> +<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">open_with_launch_application_cb</span><span class="p">),</span> +<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-1037" name="line-1037"></a> +<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="n">gtk_action_group_add_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_open_with</span><span class="p">,</span><span class="w"> </span><span class="n">action</span><span class="p">);</span> +<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">);</span> +<a id="line-1042" name="line-1042"></a> +<a id="line-1043" name="line-1043"></a><span class="w"> </span><span class="n">gtk_ui_manager_add_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">open_with_menu_id</span><span class="p">,</span> +<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="s">"/MainMenu/Image/ImageOpenWith/Applications Placeholder"</span><span class="p">,</span> +<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="n">name</span><span class="p">,</span> +<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">name</span><span class="p">,</span> +<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">GTK_UI_MANAGER_MENUITEM</span><span class="p">,</span> +<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1050" name="line-1050"></a> +<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">gtk_ui_manager_add_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">open_with_menu_id</span><span class="p">,</span> +<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="s">"/ThumbnailPopup/ImageOpenWith/Applications Placeholder"</span><span class="p">,</span> +<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">name</span><span class="p">,</span> +<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="n">name</span><span class="p">,</span> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="n">GTK_UI_MANAGER_MENUITEM</span><span class="p">,</span> +<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="n">gtk_ui_manager_add_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">open_with_menu_id</span><span class="p">,</span> +<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="s">"/ViewPopup/ImageOpenWith/Applications Placeholder"</span><span class="p">,</span> +<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="n">name</span><span class="p">,</span> +<a id="line-1062" name="line-1062"></a><span class="w"> </span><span class="n">name</span><span class="p">,</span> +<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="n">GTK_UI_MANAGER_MENUITEM</span><span class="p">,</span> +<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1065" name="line-1065"></a> +<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"/MainMenu/Image/ImageOpenWith/Applications Placeholder/%s"</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-1067" name="line-1067"></a> +<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">menuitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-1069" name="line-1069"></a> +<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="cm">/* Only force displaying the icon if it is an application icon */</span> +<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="n">gtk_image_menu_item_set_always_show_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">menuitem</span><span class="p">),</span><span class="w"> </span><span class="n">app_icon</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1072" name="line-1072"></a> +<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1074" name="line-1074"></a> +<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"/ThumbnailPopup/ImageOpenWith/Applications Placeholder/%s"</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-1076" name="line-1076"></a> +<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="n">menuitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-1078" name="line-1078"></a> +<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="cm">/* Only force displaying the icon if it is an application icon */</span> +<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">gtk_image_menu_item_set_always_show_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">menuitem</span><span class="p">),</span><span class="w"> </span><span class="n">app_icon</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1081" name="line-1081"></a> +<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1083" name="line-1083"></a> +<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"/ViewPopup/ImageOpenWith/Applications Placeholder/%s"</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-1085" name="line-1085"></a> +<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="n">menuitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-1087" name="line-1087"></a> +<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="cm">/* Only force displaying the icon if it is an application icon */</span> +<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="n">gtk_image_menu_item_set_always_show_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">menuitem</span><span class="p">),</span><span class="w"> </span><span class="n">app_icon</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1090" name="line-1090"></a> +<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1093" name="line-1093"></a> +<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">apps</span><span class="p">);</span> +<a id="line-1095" name="line-1095"></a> +<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="s">"OpenEditor"</span><span class="p">);</span> +<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">edit_button_active</span><span class="p">);</span> +<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1103" name="line-1103"></a><span class="p">}</span> +<a id="line-1104" name="line-1104"></a> +<a id="line-1105" name="line-1105"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1106" name="line-1106"></a><span class="nf">eom_window_clear_load_job</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1107" name="line-1107"></a><span class="p">{</span> +<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1109" name="line-1109"></a> +<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="o">-></span><span class="n">finished</span><span class="p">)</span> +<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="n">eom_job_queue_remove_job</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="p">);</span> +<a id="line-1113" name="line-1113"></a> +<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="p">,</span> +<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">eom_job_progress_cb</span><span class="p">,</span> +<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1117" name="line-1117"></a> +<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="p">,</span> +<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">eom_job_load_cb</span><span class="p">,</span> +<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1121" name="line-1121"></a> +<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">eom_image_cancel_load</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_JOB_LOAD</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="p">)</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1123" name="line-1123"></a> +<a id="line-1124" name="line-1124"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="p">);</span> +<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1126" name="line-1126"></a> +<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="cm">/* Hide statusbar */</span> +<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="n">eom_statusbar_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1130" name="line-1130"></a><span class="p">}</span> +<a id="line-1131" name="line-1131"></a> +<a id="line-1132" name="line-1132"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1133" name="line-1133"></a><span class="nf">eom_job_progress_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobLoad</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="n">progress</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1134" name="line-1134"></a><span class="p">{</span> +<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-1136" name="line-1136"></a> +<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-1138" name="line-1138"></a> +<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-1140" name="line-1140"></a> +<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="n">eom_statusbar_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="n">progress</span><span class="p">);</span> +<a id="line-1143" name="line-1143"></a><span class="p">}</span> +<a id="line-1144" name="line-1144"></a> +<a id="line-1145" name="line-1145"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1146" name="line-1146"></a><span class="nf">eom_job_save_progress_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="n">progress</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1147" name="line-1147"></a><span class="p">{</span> +<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-1150" name="line-1150"></a> +<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1152" name="line-1152"></a> +<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-1154" name="line-1154"></a> +<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-1156" name="line-1156"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1157" name="line-1157"></a> +<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="n">eom_statusbar_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="n">progress</span><span class="p">);</span> +<a id="line-1160" name="line-1160"></a> +<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1162" name="line-1162"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str_image</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">status_message</span><span class="p">;</span> +<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-1164" name="line-1164"></a> +<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_image</span><span class="p">;</span> +<a id="line-1166" name="line-1166"></a> +<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">);</span> +<a id="line-1168" name="line-1168"></a> +<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="n">str_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_uri_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-1170" name="line-1170"></a> +<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="cm">/* Translators: This string is displayed in the statusbar</span> +<a id="line-1172" name="line-1172"></a><span class="cm"> * while saving images. The tokens are from left to right:</span> +<a id="line-1173" name="line-1173"></a><span class="cm"> * - the original filename</span> +<a id="line-1174" name="line-1174"></a><span class="cm"> * - the current image's position in the queue</span> +<a id="line-1175" name="line-1175"></a><span class="cm"> * - the total number of images queued for saving */</span> +<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="n">status_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Saving image </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s"> (%u/%u)"</span><span class="p">),</span> +<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="n">str_image</span><span class="p">,</span> +<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="n">job</span><span class="o">-></span><span class="n">current_pos</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span> +<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">n_images</span><span class="p">);</span> +<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str_image</span><span class="p">);</span> +<a id="line-1181" name="line-1181"></a> +<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="n">gtk_statusbar_pop</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="p">);</span> +<a id="line-1184" name="line-1184"></a> +<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="n">gtk_statusbar_push</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="p">,</span> +<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="n">status_message</span><span class="p">);</span> +<a id="line-1188" name="line-1188"></a> +<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">status_message</span><span class="p">);</span> +<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1191" name="line-1191"></a> +<a id="line-1192" name="line-1192"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">progress</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span> +<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1194" name="line-1194"></a><span class="p">}</span> +<a id="line-1195" name="line-1195"></a> +<a id="line-1196" name="line-1196"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1197" name="line-1197"></a><span class="nf">eom_window_obtain_desired_size</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span> +<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span> +<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">,</span> +<a id="line-1200" name="line-1200"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1201" name="line-1201"></a><span class="p">{</span> +<a id="line-1202" name="line-1202"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span> +<a id="line-1203" name="line-1203"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span> +<a id="line-1204" name="line-1204"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">monitor</span><span class="p">;</span> +<a id="line-1205" name="line-1205"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">final_width</span><span class="p">,</span><span class="w"> </span><span class="n">final_height</span><span class="p">;</span> +<a id="line-1207" name="line-1207"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">screen_width</span><span class="p">,</span><span class="w"> </span><span class="n">screen_height</span><span class="p">;</span> +<a id="line-1208" name="line-1208"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">window_width</span><span class="p">,</span><span class="w"> </span><span class="n">window_height</span><span class="p">;</span> +<a id="line-1209" name="line-1209"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">img_width</span><span class="p">,</span><span class="w"> </span><span class="n">img_height</span><span class="p">;</span> +<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">view_width</span><span class="p">,</span><span class="w"> </span><span class="n">view_height</span><span class="p">;</span> +<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">deco_width</span><span class="p">,</span><span class="w"> </span><span class="n">deco_height</span><span class="p">;</span> +<a id="line-1212" name="line-1212"></a> +<a id="line-1213" name="line-1213"></a><span class="w"> </span><span class="n">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1214" name="line-1214"></a> +<a id="line-1215" name="line-1215"></a><span class="w"> </span><span class="n">img_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="p">;</span> +<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="n">img_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-1217" name="line-1217"></a> +<a id="line-1218" name="line-1218"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_realized</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="n">gtk_widget_realize</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">);</span> +<a id="line-1220" name="line-1220"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1221" name="line-1221"></a> +<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="n">view_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">;</span> +<a id="line-1224" name="line-1224"></a><span class="w"> </span><span class="n">view_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">;</span> +<a id="line-1225" name="line-1225"></a> +<a id="line-1226" name="line-1226"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_realized</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="n">gtk_widget_realize</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-1228" name="line-1228"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1229" name="line-1229"></a> +<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-1231" name="line-1231"></a><span class="w"> </span><span class="n">window_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">;</span> +<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">window_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">;</span> +<a id="line-1233" name="line-1233"></a> +<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_window_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-1235" name="line-1235"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span> +<a id="line-1236" name="line-1236"></a> +<a id="line-1237" name="line-1237"></a><span class="w"> </span><span class="n">gdk_monitor_get_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_monitor_at_window</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span> +<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))),</span> +<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="o">&</span><span class="n">monitor</span><span class="p">);</span> +<a id="line-1240" name="line-1240"></a> +<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="n">screen_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">monitor</span><span class="p">.</span><span class="n">width</span><span class="p">;</span> +<a id="line-1242" name="line-1242"></a><span class="w"> </span><span class="n">screen_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">monitor</span><span class="p">.</span><span class="n">height</span><span class="p">;</span> +<a id="line-1243" name="line-1243"></a> +<a id="line-1244" name="line-1244"></a><span class="w"> </span><span class="n">deco_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">view_width</span><span class="p">;</span> +<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="n">deco_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">view_height</span><span class="p">;</span> +<a id="line-1246" name="line-1246"></a> +<a id="line-1247" name="line-1247"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img_width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">img_height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">img_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">deco_width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">screen_width</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-1249" name="line-1249"></a><span class="w"> </span><span class="p">(</span><span class="n">img_height</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">deco_height</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">screen_height</span><span class="p">))</span> +<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-1252" name="line-1252"></a> +<a id="line-1253" name="line-1253"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img_width</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">img_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1254" name="line-1254"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">screen_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">0.75</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">deco_width</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">img_width</span><span class="p">;</span> +<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">screen_height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">0.75</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">deco_height</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">img_height</span><span class="p">;</span> +<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1258" name="line-1258"></a> +<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="n">img_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="n">img_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">img_height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span> +<a id="line-1261" name="line-1261"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1262" name="line-1262"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1263" name="line-1263"></a> +<a id="line-1264" name="line-1264"></a><span class="w"> </span><span class="n">final_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW_MIN_WIDTH</span><span class="p">,</span><span class="w"> </span><span class="n">img_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">deco_width</span><span class="p">);</span> +<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="n">final_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW_MIN_HEIGHT</span><span class="p">,</span><span class="w"> </span><span class="n">img_height</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">deco_height</span><span class="p">);</span> +<a id="line-1266" name="line-1266"></a> +<a id="line-1267" name="line-1267"></a><span class="w"> </span><span class="n">eom_debug_message</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">,</span><span class="w"> </span><span class="s">"Setting window size: %d x %d"</span><span class="p">,</span><span class="w"> </span><span class="n">final_width</span><span class="p">,</span><span class="w"> </span><span class="n">final_height</span><span class="p">);</span> +<a id="line-1268" name="line-1268"></a> +<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="n">gtk_window_set_default_size</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">final_width</span><span class="p">,</span><span class="w"> </span><span class="n">final_height</span><span class="p">);</span> +<a id="line-1270" name="line-1270"></a> +<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="n">g_signal_emit</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">signals</span><span class="p">[</span><span class="n">SIGNAL_PREPARED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1272" name="line-1272"></a><span class="p">}</span> +<a id="line-1273" name="line-1273"></a> +<a id="line-1274" name="line-1274"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1275" name="line-1275"></a><span class="nf">eom_window_error_message_area_response</span><span class="w"> </span><span class="p">(</span><span class="n">GtkInfoBar</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">,</span> +<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response_id</span><span class="p">,</span> +<a id="line-1277" name="line-1277"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1278" name="line-1278"></a><span class="p">{</span> +<a id="line-1279" name="line-1279"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1280" name="line-1280"></a><span class="w"> </span><span class="n">eom_window_set_message_area</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1281" name="line-1281"></a> +<a id="line-1282" name="line-1282"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1283" name="line-1283"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1284" name="line-1284"></a> +<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="cm">/* Trigger loading for current image again */</span> +<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_CURRENT</span><span class="p">);</span> +<a id="line-1288" name="line-1288"></a><span class="p">}</span> +<a id="line-1289" name="line-1289"></a> +<a id="line-1290" name="line-1290"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1291" name="line-1291"></a><span class="nf">eom_job_load_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobLoad</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1292" name="line-1292"></a><span class="p">{</span> +<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-1294" name="line-1294"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1295" name="line-1295"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_undo</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">action_save</span><span class="p">;</span> +<a id="line-1296" name="line-1296"></a> +<a id="line-1297" name="line-1297"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-1298" name="line-1298"></a> +<a id="line-1299" name="line-1299"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1300" name="line-1300"></a> +<a id="line-1301" name="line-1301"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1302" name="line-1302"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1303" name="line-1303"></a> +<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="n">eom_statusbar_set_progress</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-1305" name="line-1305"></a> +<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="n">gtk_statusbar_pop</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-1307" name="line-1307"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="p">);</span> +<a id="line-1308" name="line-1308"></a> +<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="n">image_thumb_changed_cb</span><span class="p">,</span> +<a id="line-1312" name="line-1312"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-1314" name="line-1314"></a><span class="w"> </span><span class="n">image_file_changed_cb</span><span class="p">,</span> +<a id="line-1315" name="line-1315"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1316" name="line-1316"></a> +<a id="line-1317" name="line-1317"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1318" name="line-1318"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1319" name="line-1319"></a> +<a id="line-1320" name="line-1320"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1321" name="line-1321"></a> +<a id="line-1322" name="line-1322"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">)</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1323" name="line-1323"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-1324" name="line-1324"></a><span class="w"> </span><span class="n">eom_image_apply_display_profile</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-1325" name="line-1325"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">display_profile</span><span class="p">);</span> +<a id="line-1326" name="line-1326"></a><span class="cp">#endif</span> +<a id="line-1327" name="line-1327"></a> +<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1330" name="line-1330"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1331" name="line-1331"></a> +<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="n">eom_window_display_image</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">job</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1334" name="line-1334"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">;</span> +<a id="line-1335" name="line-1335"></a> +<a id="line-1336" name="line-1336"></a><span class="w"> </span><span class="n">message_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_load_error_message_area_new</span><span class="w"> </span><span class="p">(</span> +<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">),</span> +<a id="line-1338" name="line-1338"></a><span class="w"> </span><span class="n">EOM_JOB</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">)</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-1339" name="line-1339"></a> +<a id="line-1340" name="line-1340"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">message_area</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_error_message_area_response</span><span class="p">),</span> +<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1343" name="line-1343"></a> +<a id="line-1344" name="line-1344"></a><span class="w"> </span><span class="n">gtk_window_set_icon</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-1346" name="line-1346"></a><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">));</span> +<a id="line-1347" name="line-1347"></a> +<a id="line-1348" name="line-1348"></a><span class="w"> </span><span class="n">eom_window_set_message_area</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">message_area</span><span class="p">);</span> +<a id="line-1349" name="line-1349"></a> +<a id="line-1350" name="line-1350"></a><span class="w"> </span><span class="n">gtk_info_bar_set_default_response</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">message_area</span><span class="p">),</span> +<a id="line-1351" name="line-1351"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span> +<a id="line-1352" name="line-1352"></a> +<a id="line-1353" name="line-1353"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">message_area</span><span class="p">);</span> +<a id="line-1354" name="line-1354"></a> +<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="n">update_status_bar</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1356" name="line-1356"></a> +<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="n">eom_scroll_view_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1358" name="line-1358"></a> +<a id="line-1359" name="line-1359"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_INIT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1360" name="line-1360"></a><span class="w"> </span><span class="n">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1361" name="line-1361"></a> +<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="n">g_signal_emit</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">signals</span><span class="p">[</span><span class="n">SIGNAL_PREPARED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1363" name="line-1363"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1364" name="line-1364"></a> +<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="n">gtk_action_group_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1367" name="line-1367"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1368" name="line-1368"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1369" name="line-1369"></a> +<a id="line-1370" name="line-1370"></a><span class="w"> </span><span class="n">eom_window_clear_load_job</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1371" name="line-1371"></a> +<a id="line-1372" name="line-1372"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_INIT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1373" name="line-1373"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_NORMAL</span><span class="p">;</span> +<a id="line-1374" name="line-1374"></a> +<a id="line-1375" name="line-1375"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="n">eom_window_obtain_desired_size</span><span class="p">,</span> +<a id="line-1377" name="line-1377"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1378" name="line-1378"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1379" name="line-1379"></a> +<a id="line-1380" name="line-1380"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1381" name="line-1381"></a><span class="w"> </span><span class="n">action_save</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="s">"ImageSave"</span><span class="p">);</span> +<a id="line-1382" name="line-1382"></a><span class="w"> </span><span class="n">action_undo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="s">"EditUndo"</span><span class="p">);</span> +<a id="line-1383" name="line-1383"></a> +<a id="line-1384" name="line-1384"></a><span class="w"> </span><span class="cm">/* Set Save and Undo sensitive according to image state.</span> +<a id="line-1385" name="line-1385"></a><span class="cm"> * Respect lockdown in case of Save.*/</span> +<a id="line-1386" name="line-1386"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_save</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">save_disabled</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">)));</span> +<a id="line-1387" name="line-1387"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_undo</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">));</span> +<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1389" name="line-1389"></a> +<a id="line-1390" name="line-1390"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1391" name="line-1391"></a><span class="p">}</span> +<a id="line-1392" name="line-1392"></a> +<a id="line-1393" name="line-1393"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1394" name="line-1394"></a><span class="nf">eom_window_clear_transform_job</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1395" name="line-1395"></a><span class="p">{</span> +<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1397" name="line-1397"></a> +<a id="line-1398" name="line-1398"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">transform_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1399" name="line-1399"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">transform_job</span><span class="o">-></span><span class="n">finished</span><span class="p">)</span> +<a id="line-1400" name="line-1400"></a><span class="w"> </span><span class="n">eom_job_queue_remove_job</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">transform_job</span><span class="p">);</span> +<a id="line-1401" name="line-1401"></a> +<a id="line-1402" name="line-1402"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">transform_job</span><span class="p">,</span> +<a id="line-1403" name="line-1403"></a><span class="w"> </span><span class="n">eom_job_transform_cb</span><span class="p">,</span> +<a id="line-1404" name="line-1404"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1405" name="line-1405"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">transform_job</span><span class="p">);</span> +<a id="line-1406" name="line-1406"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">transform_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1407" name="line-1407"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1408" name="line-1408"></a><span class="p">}</span> +<a id="line-1409" name="line-1409"></a> +<a id="line-1410" name="line-1410"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1411" name="line-1411"></a><span class="nf">eom_job_transform_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobTransform</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1412" name="line-1412"></a><span class="p">{</span> +<a id="line-1413" name="line-1413"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-1414" name="line-1414"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_undo</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">action_save</span><span class="p">;</span> +<a id="line-1415" name="line-1415"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-1416" name="line-1416"></a> +<a id="line-1417" name="line-1417"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-1418" name="line-1418"></a> +<a id="line-1419" name="line-1419"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1420" name="line-1420"></a> +<a id="line-1421" name="line-1421"></a><span class="w"> </span><span class="n">eom_window_clear_transform_job</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1422" name="line-1422"></a> +<a id="line-1423" name="line-1423"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1424" name="line-1424"></a><span class="w"> </span><span class="n">action_undo</span><span class="w"> </span><span class="o">=</span> +<a id="line-1425" name="line-1425"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="s">"EditUndo"</span><span class="p">);</span> +<a id="line-1426" name="line-1426"></a><span class="w"> </span><span class="n">action_save</span><span class="w"> </span><span class="o">=</span> +<a id="line-1427" name="line-1427"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="s">"ImageSave"</span><span class="p">);</span> +<a id="line-1428" name="line-1428"></a> +<a id="line-1429" name="line-1429"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1430" name="line-1430"></a> +<a id="line-1431" name="line-1431"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_undo</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1432" name="line-1432"></a> +<a id="line-1433" name="line-1433"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">save_disabled</span><span class="p">)</span> +<a id="line-1434" name="line-1434"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1435" name="line-1435"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_save</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1437" name="line-1437"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1438" name="line-1438"></a><span class="p">}</span> +<a id="line-1439" name="line-1439"></a> +<a id="line-1440" name="line-1440"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1441" name="line-1441"></a><span class="nf">apply_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">EomTransform</span><span class="w"> </span><span class="o">*</span><span class="n">trans</span><span class="p">)</span> +<a id="line-1442" name="line-1442"></a><span class="p">{</span> +<a id="line-1443" name="line-1443"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1444" name="line-1444"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">images</span><span class="p">;</span> +<a id="line-1445" name="line-1445"></a> +<a id="line-1446" name="line-1446"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-1447" name="line-1447"></a> +<a id="line-1448" name="line-1448"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1449" name="line-1449"></a> +<a id="line-1450" name="line-1450"></a><span class="w"> </span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_selected_images</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-1451" name="line-1451"></a> +<a id="line-1452" name="line-1452"></a><span class="w"> </span><span class="n">eom_window_clear_transform_job</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1453" name="line-1453"></a> +<a id="line-1454" name="line-1454"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">transform_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_transform_new</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">,</span><span class="w"> </span><span class="n">trans</span><span class="p">);</span> +<a id="line-1455" name="line-1455"></a> +<a id="line-1456" name="line-1456"></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">-></span><span class="n">transform_job</span><span class="p">,</span><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_transform_cb</span><span class="p">),</span> +<a id="line-1458" name="line-1458"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1459" name="line-1459"></a> +<a id="line-1460" name="line-1460"></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">-></span><span class="n">transform_job</span><span class="p">,</span><span class="w"> </span><span class="s">"progress"</span><span class="p">,</span> +<a id="line-1461" name="line-1461"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_progress_cb</span><span class="p">),</span> +<a id="line-1462" name="line-1462"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1463" name="line-1463"></a> +<a id="line-1464" name="line-1464"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">transform_job</span><span class="p">);</span> +<a id="line-1465" name="line-1465"></a><span class="p">}</span> +<a id="line-1466" name="line-1466"></a> +<a id="line-1467" name="line-1467"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1468" name="line-1468"></a><span class="nf">handle_image_selection_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomThumbView</span><span class="w"> </span><span class="o">*</span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1469" name="line-1469"></a><span class="p">{</span> +<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1471" name="line-1471"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-1472" name="line-1472"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">status_message</span><span class="p">;</span> +<a id="line-1473" name="line-1473"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str_image</span><span class="p">;</span> +<a id="line-1474" name="line-1474"></a> +<a id="line-1475" name="line-1475"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1476" name="line-1476"></a> +<a id="line-1477" name="line-1477"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1478" name="line-1478"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-1479" name="line-1479"></a><span class="w"> </span><span class="n">g_get_application_name</span><span class="p">());</span> +<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="n">gtk_statusbar_remove_all</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-1481" name="line-1481"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="p">);</span> +<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="n">eom_scroll_view_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span> +<a id="line-1483" name="line-1483"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1484" name="line-1484"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1485" name="line-1485"></a> +<a id="line-1486" name="line-1486"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_thumb_view_get_n_selected</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1487" name="line-1487"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1488" name="line-1488"></a> +<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="n">update_selection_ui_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1490" name="line-1490"></a> +<a id="line-1491" name="line-1491"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_first_selected_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-1492" name="line-1492"></a> +<a id="line-1493" name="line-1493"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-1494" name="line-1494"></a> +<a id="line-1495" name="line-1495"></a><span class="w"> </span><span class="n">eom_window_clear_load_job</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1496" name="line-1496"></a> +<a id="line-1497" name="line-1497"></a><span class="w"> </span><span class="n">eom_window_set_message_area</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1498" name="line-1498"></a> +<a id="line-1499" name="line-1499"></a><span class="w"> </span><span class="n">gtk_statusbar_pop</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-1500" name="line-1500"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="p">);</span> +<a id="line-1501" name="line-1501"></a> +<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1503" name="line-1503"></a><span class="w"> </span><span class="n">update_status_bar</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1505" name="line-1505"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1506" name="line-1506"></a> +<a id="line-1507" name="line-1507"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_has_data</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_IMAGE</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1508" name="line-1508"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1509" name="line-1509"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-1510" name="line-1510"></a> +<a id="line-1511" name="line-1511"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="p">;</span> +<a id="line-1512" name="line-1512"></a><span class="w"> </span><span class="n">eom_window_display_image</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-1513" name="line-1513"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1514" name="line-1514"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1515" name="line-1515"></a> +<a id="line-1516" name="line-1516"></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">-></span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_INIT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1517" name="line-1517"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="s">"size-prepared"</span><span class="p">,</span> +<a id="line-1518" name="line-1518"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_obtain_desired_size</span><span class="p">),</span> +<a id="line-1519" name="line-1519"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1520" name="line-1520"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1521" name="line-1521"></a> +<a id="line-1522" name="line-1522"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_load_new</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE_DATA_ALL</span><span class="p">);</span> +<a id="line-1523" name="line-1523"></a> +<a id="line-1524" name="line-1524"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="p">,</span><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-1525" name="line-1525"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_load_cb</span><span class="p">),</span> +<a id="line-1526" name="line-1526"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1527" name="line-1527"></a> +<a id="line-1528" name="line-1528"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="p">,</span><span class="w"> </span><span class="s">"progress"</span><span class="p">,</span> +<a id="line-1529" name="line-1529"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_progress_cb</span><span class="p">),</span> +<a id="line-1530" name="line-1530"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1531" name="line-1531"></a> +<a id="line-1532" name="line-1532"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">load_job</span><span class="p">);</span> +<a id="line-1533" name="line-1533"></a> +<a id="line-1534" name="line-1534"></a><span class="w"> </span><span class="n">str_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_uri_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-1535" name="line-1535"></a> +<a id="line-1536" name="line-1536"></a><span class="w"> </span><span class="n">status_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Opening image </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s">"</span><span class="p">),</span> +<a id="line-1537" name="line-1537"></a><span class="w"> </span><span class="n">str_image</span><span class="p">);</span> +<a id="line-1538" name="line-1538"></a> +<a id="line-1539" name="line-1539"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str_image</span><span class="p">);</span> +<a id="line-1540" name="line-1540"></a> +<a id="line-1541" name="line-1541"></a><span class="w"> </span><span class="n">gtk_statusbar_push</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-1542" name="line-1542"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="p">,</span><span class="w"> </span><span class="n">status_message</span><span class="p">);</span> +<a id="line-1543" name="line-1543"></a> +<a id="line-1544" name="line-1544"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">status_message</span><span class="p">);</span> +<a id="line-1545" name="line-1545"></a><span class="p">}</span> +<a id="line-1546" name="line-1546"></a> +<a id="line-1547" name="line-1547"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1548" name="line-1548"></a><span class="nf">view_zoom_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">zoom</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1549" name="line-1549"></a><span class="p">{</span> +<a id="line-1550" name="line-1550"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-1551" name="line-1551"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_zoom_in</span><span class="p">;</span> +<a id="line-1552" name="line-1552"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_zoom_out</span><span class="p">;</span> +<a id="line-1553" name="line-1553"></a> +<a id="line-1554" name="line-1554"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-1555" name="line-1555"></a> +<a id="line-1556" name="line-1556"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-1557" name="line-1557"></a> +<a id="line-1558" name="line-1558"></a><span class="w"> </span><span class="n">update_status_bar</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1559" name="line-1559"></a> +<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1561" name="line-1561"></a><span class="w"> </span><span class="n">action_zoom_in</span><span class="w"> </span><span class="o">=</span> +<a id="line-1562" name="line-1562"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-1563" name="line-1563"></a><span class="w"> </span><span class="s">"ViewZoomIn"</span><span class="p">);</span> +<a id="line-1564" name="line-1564"></a> +<a id="line-1565" name="line-1565"></a><span class="w"> </span><span class="n">action_zoom_out</span><span class="w"> </span><span class="o">=</span> +<a id="line-1566" name="line-1566"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-1567" name="line-1567"></a><span class="w"> </span><span class="s">"ViewZoomOut"</span><span class="p">);</span> +<a id="line-1568" name="line-1568"></a> +<a id="line-1569" name="line-1569"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_zoom_in</span><span class="p">,</span> +<a id="line-1570" name="line-1570"></a><span class="w"> </span><span class="o">!</span><span class="n">eom_scroll_view_get_zoom_is_max</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)));</span> +<a id="line-1571" name="line-1571"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_zoom_out</span><span class="p">,</span> +<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="o">!</span><span class="n">eom_scroll_view_get_zoom_is_min</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)));</span> +<a id="line-1573" name="line-1573"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1574" name="line-1574"></a><span class="p">}</span> +<a id="line-1575" name="line-1575"></a> +<a id="line-1576" name="line-1576"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1577" name="line-1577"></a><span class="nf">eom_window_open_recent_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1578" name="line-1578"></a><span class="p">{</span> +<a id="line-1579" name="line-1579"></a><span class="w"> </span><span class="n">GtkRecentInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span> +<a id="line-1580" name="line-1580"></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">uri</span><span class="p">;</span> +<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1582" name="line-1582"></a> +<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_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">action</span><span class="p">),</span><span class="w"> </span><span class="s">"gtk-recent-info"</span><span class="p">);</span> +<a id="line-1584" name="line-1584"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1585" name="line-1585"></a> +<a id="line-1586" name="line-1586"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_recent_info_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span> +<a id="line-1587" name="line-1587"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">));</span> +<a id="line-1588" name="line-1588"></a> +<a id="line-1589" name="line-1589"></a><span class="w"> </span><span class="n">eom_application_open_uri_list</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">,</span> +<a id="line-1590" name="line-1590"></a><span class="w"> </span><span class="n">list</span><span class="p">,</span> +<a id="line-1591" name="line-1591"></a><span class="w"> </span><span class="n">GDK_CURRENT_TIME</span><span class="p">,</span> +<a id="line-1592" name="line-1592"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-1593" name="line-1593"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1594" name="line-1594"></a> +<a id="line-1595" name="line-1595"></a><span class="w"> </span><span class="n">g_slist_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-1596" name="line-1596"></a><span class="p">}</span> +<a id="line-1597" name="line-1597"></a> +<a id="line-1598" name="line-1598"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1599" name="line-1599"></a><span class="nf">file_open_dialog_response_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">chooser</span><span class="p">,</span> +<a id="line-1600" name="line-1600"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response_id</span><span class="p">,</span> +<a id="line-1601" name="line-1601"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">ev_window</span><span class="p">)</span> +<a id="line-1602" name="line-1602"></a><span class="p">{</span> +<a id="line-1603" name="line-1603"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1604" name="line-1604"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">uris</span><span class="p">;</span> +<a id="line-1605" name="line-1605"></a> +<a id="line-1606" name="line-1606"></a><span class="w"> </span><span class="n">uris</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_chooser_get_uris</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">));</span> +<a id="line-1607" name="line-1607"></a> +<a id="line-1608" name="line-1608"></a><span class="w"> </span><span class="n">eom_application_open_uri_list</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">,</span> +<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">uris</span><span class="p">,</span> +<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="n">GDK_CURRENT_TIME</span><span class="p">,</span> +<a id="line-1611" name="line-1611"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-1612" name="line-1612"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1613" name="line-1613"></a> +<a id="line-1614" name="line-1614"></a><span class="w"> </span><span class="n">g_slist_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-1615" name="line-1615"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1616" name="line-1616"></a> +<a id="line-1617" name="line-1617"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">);</span> +<a id="line-1618" name="line-1618"></a><span class="p">}</span> +<a id="line-1619" name="line-1619"></a> +<a id="line-1620" name="line-1620"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1621" name="line-1621"></a><span class="nf">eom_window_update_fullscreen_action</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1622" name="line-1622"></a><span class="p">{</span> +<a id="line-1623" name="line-1623"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-1624" name="line-1624"></a> +<a id="line-1625" name="line-1625"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1626" name="line-1626"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-1627" name="line-1627"></a><span class="w"> </span><span class="s">"ViewFullscreen"</span><span class="p">);</span> +<a id="line-1628" name="line-1628"></a> +<a id="line-1629" name="line-1629"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span> +<a id="line-1630" name="line-1630"></a><span class="w"> </span><span class="n">eom_window_cmd_fullscreen</span><span class="p">,</span> +<a id="line-1631" name="line-1631"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1632" name="line-1632"></a> +<a id="line-1633" name="line-1633"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span> +<a id="line-1634" name="line-1634"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="p">);</span> +<a id="line-1635" name="line-1635"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1636" name="line-1636"></a> +<a id="line-1637" name="line-1637"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span> +<a id="line-1638" name="line-1638"></a><span class="w"> </span><span class="n">eom_window_cmd_fullscreen</span><span class="p">,</span> +<a id="line-1639" name="line-1639"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1640" name="line-1640"></a><span class="p">}</span> +<a id="line-1641" name="line-1641"></a> +<a id="line-1642" name="line-1642"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1643" name="line-1643"></a><span class="nf">eom_window_update_slideshow_action</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1644" name="line-1644"></a><span class="p">{</span> +<a id="line-1645" name="line-1645"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-1646" name="line-1646"></a> +<a id="line-1647" name="line-1647"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1648" name="line-1648"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span> +<a id="line-1649" name="line-1649"></a><span class="w"> </span><span class="s">"ViewSlideshow"</span><span class="p">);</span> +<a id="line-1650" name="line-1650"></a> +<a id="line-1651" name="line-1651"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span> +<a id="line-1652" name="line-1652"></a><span class="w"> </span><span class="n">eom_window_cmd_slideshow</span><span class="p">,</span> +<a id="line-1653" name="line-1653"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1654" name="line-1654"></a> +<a id="line-1655" name="line-1655"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span> +<a id="line-1656" name="line-1656"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">);</span> +<a id="line-1657" name="line-1657"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1658" name="line-1658"></a> +<a id="line-1659" name="line-1659"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span> +<a id="line-1660" name="line-1660"></a><span class="w"> </span><span class="n">eom_window_cmd_slideshow</span><span class="p">,</span> +<a id="line-1661" name="line-1661"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1662" name="line-1662"></a><span class="p">}</span> +<a id="line-1663" name="line-1663"></a> +<a id="line-1664" name="line-1664"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1665" name="line-1665"></a><span class="nf">eom_window_update_pause_slideshow_action</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1666" name="line-1666"></a><span class="p">{</span> +<a id="line-1667" name="line-1667"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-1668" name="line-1668"></a> +<a id="line-1669" name="line-1669"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1670" name="line-1670"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-1671" name="line-1671"></a><span class="w"> </span><span class="s">"PauseSlideshow"</span><span class="p">);</span> +<a id="line-1672" name="line-1672"></a> +<a id="line-1673" name="line-1673"></a><span class="w"> </span><span class="n">g_signal_handlers_block_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span> +<a id="line-1674" name="line-1674"></a><span class="w"> </span><span class="n">eom_window_cmd_pause_slideshow</span><span class="p">,</span> +<a id="line-1675" name="line-1675"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1676" name="line-1676"></a> +<a id="line-1677" name="line-1677"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span> +<a id="line-1678" name="line-1678"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">);</span> +<a id="line-1679" name="line-1679"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1680" name="line-1680"></a> +<a id="line-1681" name="line-1681"></a><span class="w"> </span><span class="n">g_signal_handlers_unblock_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span> +<a id="line-1682" name="line-1682"></a><span class="w"> </span><span class="n">eom_window_cmd_pause_slideshow</span><span class="p">,</span> +<a id="line-1683" name="line-1683"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1684" name="line-1684"></a><span class="p">}</span> +<a id="line-1685" name="line-1685"></a> +<a id="line-1686" name="line-1686"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1687" name="line-1687"></a><span class="nf">eom_window_update_fullscreen_popup</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1688" name="line-1688"></a><span class="p">{</span> +<a id="line-1689" name="line-1689"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="p">;</span> +<a id="line-1690" name="line-1690"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">screen_rect</span><span class="p">;</span> +<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span> +<a id="line-1692" name="line-1692"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span> +<a id="line-1693" name="line-1693"></a> +<a id="line-1694" name="line-1694"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">popup</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1695" name="line-1695"></a> +<a id="line-1696" name="line-1696"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</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="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1697" name="line-1697"></a> +<a id="line-1698" name="line-1698"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-1699" name="line-1699"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span> +<a id="line-1700" name="line-1700"></a> +<a id="line-1701" name="line-1701"></a><span class="w"> </span><span class="n">gdk_monitor_get_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_monitor_at_window</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span> +<a id="line-1702" name="line-1702"></a><span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))),</span> +<a id="line-1703" name="line-1703"></a><span class="w"> </span><span class="o">&</span><span class="n">screen_rect</span><span class="p">);</span> +<a id="line-1704" name="line-1704"></a> +<a id="line-1705" name="line-1705"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">popup</span><span class="p">,</span> +<a id="line-1706" name="line-1706"></a><span class="w"> </span><span class="n">screen_rect</span><span class="p">.</span><span class="n">width</span><span class="p">,</span> +<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1708" name="line-1708"></a> +<a id="line-1709" name="line-1709"></a><span class="w"> </span><span class="n">gtk_window_move</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">screen_rect</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">screen_rect</span><span class="p">.</span><span class="n">y</span><span class="p">);</span> +<a id="line-1710" name="line-1710"></a><span class="p">}</span> +<a id="line-1711" name="line-1711"></a> +<a id="line-1712" name="line-1712"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1713" name="line-1713"></a><span class="nf">screen_size_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1714" name="line-1714"></a><span class="p">{</span> +<a id="line-1715" name="line-1715"></a><span class="w"> </span><span class="n">eom_window_update_fullscreen_popup</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1716" name="line-1716"></a><span class="p">}</span> +<a id="line-1717" name="line-1717"></a> +<a id="line-1718" name="line-1718"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1719" name="line-1719"></a><span class="nf">fullscreen_timeout_cb</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1720" name="line-1720"></a><span class="p">{</span> +<a id="line-1721" name="line-1721"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1722" name="line-1722"></a> +<a id="line-1723" name="line-1723"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="p">);</span> +<a id="line-1724" name="line-1724"></a> +<a id="line-1725" name="line-1725"></a><span class="w"> </span><span class="n">eom_scroll_view_hide_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">));</span> +<a id="line-1726" name="line-1726"></a> +<a id="line-1727" name="line-1727"></a><span class="w"> </span><span class="n">fullscreen_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1728" name="line-1728"></a> +<a id="line-1729" name="line-1729"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1730" name="line-1730"></a><span class="p">}</span> +<a id="line-1731" name="line-1731"></a> +<a id="line-1732" name="line-1732"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1733" name="line-1733"></a><span class="nf">slideshow_is_loop_end</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1734" name="line-1734"></a><span class="p">{</span> +<a id="line-1735" name="line-1735"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1736" name="line-1736"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1737" name="line-1737"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span> +<a id="line-1738" name="line-1738"></a> +<a id="line-1739" name="line-1739"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_first_selected_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-1740" name="line-1740"></a> +<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_pos_by_image</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-1742" name="line-1742"></a> +<a id="line-1743" name="line-1743"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">pos</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="p">(</span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">));</span> +<a id="line-1744" name="line-1744"></a><span class="p">}</span> +<a id="line-1745" name="line-1745"></a> +<a id="line-1746" name="line-1746"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1747" name="line-1747"></a><span class="nf">slideshow_switch_cb</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1748" name="line-1748"></a><span class="p">{</span> +<a id="line-1749" name="line-1749"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1751" name="line-1751"></a> +<a id="line-1752" name="line-1752"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1753" name="line-1753"></a> +<a id="line-1754" name="line-1754"></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">-></span><span class="n">slideshow_random</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1755" name="line-1755"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-1756" name="line-1756"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_RANDOM</span><span class="p">);</span> +<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1758" name="line-1758"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1759" name="line-1759"></a> +<a id="line-1760" name="line-1760"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_loop</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">slideshow_is_loop_end</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1761" name="line-1761"></a><span class="w"> </span><span class="n">eom_window_stop_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1762" name="line-1762"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1763" name="line-1763"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1764" name="line-1764"></a> +<a id="line-1765" name="line-1765"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-1766" name="line-1766"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_RIGHT</span><span class="p">);</span> +<a id="line-1767" name="line-1767"></a> +<a id="line-1768" name="line-1768"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1769" name="line-1769"></a><span class="p">}</span> +<a id="line-1770" name="line-1770"></a> +<a id="line-1771" name="line-1771"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1772" name="line-1772"></a><span class="nf">fullscreen_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1773" name="line-1773"></a><span class="p">{</span> +<a id="line-1774" name="line-1774"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1775" name="line-1775"></a> +<a id="line-1776" name="line-1776"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_timeout_source</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1777" name="line-1777"></a><span class="w"> </span><span class="n">g_source_unref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_timeout_source</span><span class="p">);</span> +<a id="line-1778" name="line-1778"></a><span class="w"> </span><span class="n">g_source_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_timeout_source</span><span class="p">);</span> +<a id="line-1779" name="line-1779"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1780" name="line-1780"></a> +<a id="line-1781" name="line-1781"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_timeout_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1782" name="line-1782"></a><span class="p">}</span> +<a id="line-1783" name="line-1783"></a> +<a id="line-1784" name="line-1784"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1785" name="line-1785"></a><span class="nf">fullscreen_set_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1786" name="line-1786"></a><span class="p">{</span> +<a id="line-1787" name="line-1787"></a><span class="w"> </span><span class="n">GSource</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">;</span> +<a id="line-1788" name="line-1788"></a> +<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1790" name="line-1790"></a> +<a id="line-1791" name="line-1791"></a><span class="w"> </span><span class="n">fullscreen_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1792" name="line-1792"></a> +<a id="line-1793" name="line-1793"></a><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_source_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW_FULLSCREEN_TIMEOUT</span><span class="p">);</span> +<a id="line-1794" name="line-1794"></a><span class="w"> </span><span class="n">g_source_set_callback</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">fullscreen_timeout_cb</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1795" name="line-1795"></a> +<a id="line-1796" name="line-1796"></a><span class="w"> </span><span class="n">g_source_attach</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1797" name="line-1797"></a> +<a id="line-1798" name="line-1798"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_timeout_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">source</span><span class="p">;</span> +<a id="line-1799" name="line-1799"></a> +<a id="line-1800" name="line-1800"></a><span class="w"> </span><span class="n">eom_scroll_view_show_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">));</span> +<a id="line-1801" name="line-1801"></a><span class="p">}</span> +<a id="line-1802" name="line-1802"></a> +<a id="line-1803" name="line-1803"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1804" name="line-1804"></a><span class="nf">slideshow_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1805" name="line-1805"></a><span class="p">{</span> +<a id="line-1806" name="line-1806"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1807" name="line-1807"></a> +<a id="line-1808" name="line-1808"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_source</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1809" name="line-1809"></a><span class="w"> </span><span class="n">g_source_unref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_source</span><span class="p">);</span> +<a id="line-1810" name="line-1810"></a><span class="w"> </span><span class="n">g_source_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_source</span><span class="p">);</span> +<a id="line-1811" name="line-1811"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1812" name="line-1812"></a> +<a id="line-1813" name="line-1813"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1814" name="line-1814"></a><span class="p">}</span> +<a id="line-1815" name="line-1815"></a> +<a id="line-1816" name="line-1816"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1817" name="line-1817"></a><span class="nf">slideshow_set_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1818" name="line-1818"></a><span class="p">{</span> +<a id="line-1819" name="line-1819"></a><span class="w"> </span><span class="n">GSource</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">;</span> +<a id="line-1820" name="line-1820"></a> +<a id="line-1821" name="line-1821"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1822" name="line-1822"></a> +<a id="line-1823" name="line-1823"></a><span class="w"> </span><span class="n">slideshow_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1824" name="line-1824"></a> +<a id="line-1825" name="line-1825"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_timeout</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1826" name="line-1826"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1827" name="line-1827"></a> +<a id="line-1828" name="line-1828"></a><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_source_new</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_timeout</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">1000</span><span class="p">);</span> +<a id="line-1829" name="line-1829"></a><span class="w"> </span><span class="n">g_source_set_callback</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">slideshow_switch_cb</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1830" name="line-1830"></a> +<a id="line-1831" name="line-1831"></a><span class="w"> </span><span class="n">g_source_attach</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1832" name="line-1832"></a> +<a id="line-1833" name="line-1833"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">source</span><span class="p">;</span> +<a id="line-1834" name="line-1834"></a><span class="p">}</span> +<a id="line-1835" name="line-1835"></a> +<a id="line-1836" name="line-1836"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1837" name="line-1837"></a><span class="nf">show_fullscreen_popup</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1838" name="line-1838"></a><span class="p">{</span> +<a id="line-1839" name="line-1839"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1840" name="line-1840"></a> +<a id="line-1841" name="line-1841"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1842" name="line-1842"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="p">));</span> +<a id="line-1843" name="line-1843"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1844" name="line-1844"></a> +<a id="line-1845" name="line-1845"></a><span class="w"> </span><span class="n">fullscreen_set_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1846" name="line-1846"></a><span class="p">}</span> +<a id="line-1847" name="line-1847"></a> +<a id="line-1848" name="line-1848"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1849" name="line-1849"></a><span class="nf">fullscreen_motion_notify_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-1850" name="line-1850"></a><span class="w"> </span><span class="n">GdkEventMotion</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-1851" name="line-1851"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1852" name="line-1852"></a><span class="p">{</span> +<a id="line-1853" name="line-1853"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-1854" name="line-1854"></a> +<a id="line-1855" name="line-1855"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1856" name="line-1856"></a> +<a id="line-1857" name="line-1857"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">y</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">EOM_WINDOW_FULLSCREEN_POPUP_THRESHOLD</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1858" name="line-1858"></a><span class="w"> </span><span class="n">show_fullscreen_popup</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1859" name="line-1859"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1860" name="line-1860"></a><span class="w"> </span><span class="n">fullscreen_set_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1861" name="line-1861"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1862" name="line-1862"></a> +<a id="line-1863" name="line-1863"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1864" name="line-1864"></a><span class="p">}</span> +<a id="line-1865" name="line-1865"></a> +<a id="line-1866" name="line-1866"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1867" name="line-1867"></a><span class="nf">fullscreen_leave_notify_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-1868" name="line-1868"></a><span class="w"> </span><span class="n">GdkEventCrossing</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span> +<a id="line-1869" name="line-1869"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1870" name="line-1870"></a><span class="p">{</span> +<a id="line-1871" name="line-1871"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-1872" name="line-1872"></a> +<a id="line-1873" name="line-1873"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1874" name="line-1874"></a> +<a id="line-1875" name="line-1875"></a><span class="w"> </span><span class="n">fullscreen_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1876" name="line-1876"></a> +<a id="line-1877" name="line-1877"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1878" name="line-1878"></a><span class="p">}</span> +<a id="line-1879" name="line-1879"></a> +<a id="line-1880" name="line-1880"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1881" name="line-1881"></a><span class="nf">exit_fullscreen_button_clicked_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1882" name="line-1882"></a><span class="p">{</span> +<a id="line-1883" name="line-1883"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-1884" name="line-1884"></a> +<a id="line-1885" name="line-1885"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1886" name="line-1886"></a> +<a id="line-1887" name="line-1887"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1888" name="line-1888"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1889" name="line-1889"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span> +<a id="line-1890" name="line-1890"></a><span class="w"> </span><span class="s">"ViewSlideshow"</span><span class="p">);</span> +<a id="line-1891" name="line-1891"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1892" name="line-1892"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-1893" name="line-1893"></a><span class="w"> </span><span class="s">"ViewFullscreen"</span><span class="p">);</span> +<a id="line-1894" name="line-1894"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1895" name="line-1895"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1896" name="line-1896"></a> +<a id="line-1897" name="line-1897"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1898" name="line-1898"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1899" name="line-1899"></a><span class="p">}</span> +<a id="line-1900" name="line-1900"></a> +<a id="line-1901" name="line-1901"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-1902" name="line-1902"></a><span class="nf">eom_window_get_exit_fullscreen_button</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1903" name="line-1903"></a><span class="p">{</span> +<a id="line-1904" name="line-1904"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">;</span> +<a id="line-1905" name="line-1905"></a> +<a id="line-1906" name="line-1906"></a><span class="w"> </span><span class="n">button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Leave Fullscreen"</span><span class="p">));</span> +<a id="line-1907" name="line-1907"></a><span class="w"> </span><span class="n">gtk_button_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">"view-restore"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">));</span> +<a id="line-1908" name="line-1908"></a> +<a id="line-1909" name="line-1909"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span> +<a id="line-1910" name="line-1910"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">exit_fullscreen_button_clicked_cb</span><span class="p">),</span> +<a id="line-1911" name="line-1911"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1912" name="line-1912"></a> +<a id="line-1913" name="line-1913"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">button</span><span class="p">;</span> +<a id="line-1914" name="line-1914"></a><span class="p">}</span> +<a id="line-1915" name="line-1915"></a> +<a id="line-1916" name="line-1916"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-1917" name="line-1917"></a><span class="nf">eom_window_create_fullscreen_popup</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1918" name="line-1918"></a><span class="p">{</span> +<a id="line-1919" name="line-1919"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">;</span> +<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">;</span> +<a id="line-1921" name="line-1921"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">;</span> +<a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">toolbar</span><span class="p">;</span> +<a id="line-1923" name="line-1923"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span> +<a id="line-1924" name="line-1924"></a> +<a id="line-1925" name="line-1925"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1926" name="line-1926"></a> +<a id="line-1927" name="line-1927"></a><span class="w"> </span><span class="n">popup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_window_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW_POPUP</span><span class="p">);</span> +<a id="line-1928" name="line-1928"></a> +<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1930" name="line-1930"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">hbox</span><span class="p">);</span> +<a id="line-1931" name="line-1931"></a> +<a id="line-1932" name="line-1932"></a><span class="w"> </span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-1933" name="line-1933"></a><span class="w"> </span><span class="s">"/FullscreenToolbar"</span><span class="p">);</span> +<a id="line-1934" name="line-1934"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-1935" name="line-1935"></a><span class="w"> </span><span class="n">gtk_toolbar_set_style</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_TOOLBAR_ICONS</span><span class="p">);</span> +<a id="line-1936" name="line-1936"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">toolbar</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1937" name="line-1937"></a> +<a id="line-1938" name="line-1938"></a><span class="w"> </span><span class="n">button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_exit_fullscreen_button</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-1939" name="line-1939"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1940" name="line-1940"></a> +<a id="line-1941" name="line-1941"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1942" name="line-1942"></a> +<a id="line-1943" name="line-1943"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-1944" name="line-1944"></a> +<a id="line-1945" name="line-1945"></a><span class="w"> </span><span class="n">g_signal_connect_object</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="s">"size-changed"</span><span class="p">,</span> +<a id="line-1946" name="line-1946"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">screen_size_changed_cb</span><span class="p">),</span> +<a id="line-1947" name="line-1947"></a><span class="w"> </span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-1948" name="line-1948"></a> +<a id="line-1949" name="line-1949"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">popup</span><span class="p">,</span><span class="w"> </span><span class="s">"enter-notify-event"</span><span class="p">,</span> +<a id="line-1950" name="line-1950"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">fullscreen_leave_notify_cb</span><span class="p">),</span> +<a id="line-1951" name="line-1951"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-1952" name="line-1952"></a> +<a id="line-1953" name="line-1953"></a><span class="w"> </span><span class="n">gtk_window_set_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">screen</span><span class="p">);</span> +<a id="line-1954" name="line-1954"></a> +<a id="line-1955" name="line-1955"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">popup</span><span class="p">;</span> +<a id="line-1956" name="line-1956"></a><span class="p">}</span> +<a id="line-1957" name="line-1957"></a> +<a id="line-1958" name="line-1958"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1959" name="line-1959"></a><span class="nf">update_ui_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-1960" name="line-1960"></a><span class="p">{</span> +<a id="line-1961" name="line-1961"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-1962" name="line-1962"></a> +<a id="line-1963" name="line-1963"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-1964" name="line-1964"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menubar</span><span class="p">;</span> +<a id="line-1965" name="line-1965"></a> +<a id="line-1966" name="line-1966"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">fullscreen_mode</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">;</span> +<a id="line-1967" name="line-1967"></a> +<a id="line-1968" name="line-1968"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-1969" name="line-1969"></a> +<a id="line-1970" name="line-1970"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-1971" name="line-1971"></a> +<a id="line-1972" name="line-1972"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-1973" name="line-1973"></a> +<a id="line-1974" name="line-1974"></a><span class="w"> </span><span class="n">fullscreen_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="w"> </span><span class="o">||</span> +<a id="line-1975" name="line-1975"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">;</span> +<a id="line-1976" name="line-1976"></a> +<a id="line-1977" name="line-1977"></a><span class="w"> </span><span class="n">menubar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/MainMenu"</span><span class="p">);</span> +<a id="line-1978" name="line-1978"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">menubar</span><span class="p">));</span> +<a id="line-1979" name="line-1979"></a> +<a id="line-1980" name="line-1980"></a><span class="w"> </span><span class="n">visible</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">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_TOOLBAR</span><span class="p">);</span> +<a id="line-1981" name="line-1981"></a><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">fullscreen_mode</span><span class="p">;</span> +<a id="line-1982" name="line-1982"></a> +<a id="line-1983" name="line-1983"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/MainMenu/View/ToolbarToggle"</span><span class="p">);</span> +<a id="line-1984" name="line-1984"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1985" name="line-1985"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1986" name="line-1986"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-1987" name="line-1987"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1988" name="line-1988"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="s">"visible"</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1989" name="line-1989"></a> +<a id="line-1990" name="line-1990"></a><span class="w"> </span><span class="n">visible</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">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_STATUSBAR</span><span class="p">);</span> +<a id="line-1991" name="line-1991"></a><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">fullscreen_mode</span><span class="p">;</span> +<a id="line-1992" name="line-1992"></a> +<a id="line-1993" name="line-1993"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/MainMenu/View/StatusbarToggle"</span><span class="p">);</span> +<a id="line-1994" name="line-1994"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1995" name="line-1995"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1996" name="line-1996"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-1997" name="line-1997"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-1998" name="line-1998"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span><span class="w"> </span><span class="s">"visible"</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1999" name="line-1999"></a> +<a id="line-2000" name="line-2000"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_INIT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2001" name="line-2001"></a><span class="w"> </span><span class="n">visible</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">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_IMAGE_COLLECTION</span><span class="p">);</span> +<a id="line-2002" name="line-2002"></a><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">;</span> +<a id="line-2003" name="line-2003"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/MainMenu/View/ImageCollectionToggle"</span><span class="p">);</span> +<a id="line-2004" name="line-2004"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2005" name="line-2005"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2006" name="line-2006"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-2007" name="line-2007"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2008" name="line-2008"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">visible</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2009" name="line-2009"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">);</span> +<a id="line-2010" name="line-2010"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2011" name="line-2011"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">);</span> +<a id="line-2012" name="line-2012"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2013" name="line-2013"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2014" name="line-2014"></a> +<a id="line-2015" name="line-2015"></a><span class="w"> </span><span class="n">visible</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">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_SIDEBAR</span><span class="p">);</span> +<a id="line-2016" name="line-2016"></a><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">fullscreen_mode</span><span class="p">;</span> +<a id="line-2017" name="line-2017"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/MainMenu/View/SidebarToggle"</span><span class="p">);</span> +<a id="line-2018" name="line-2018"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2019" name="line-2019"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2020" name="line-2020"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-2021" name="line-2021"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2022" name="line-2022"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">visible</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2023" name="line-2023"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-2024" name="line-2024"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2025" name="line-2025"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-2026" name="line-2026"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2027" name="line-2027"></a> +<a id="line-2028" name="line-2028"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2029" name="line-2029"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="p">);</span> +<a id="line-2030" name="line-2030"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2031" name="line-2031"></a><span class="p">}</span> +<a id="line-2032" name="line-2032"></a> +<a id="line-2033" name="line-2033"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2034" name="line-2034"></a><span class="nf">eom_window_inhibit_screensaver</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-2035" name="line-2035"></a><span class="p">{</span> +<a id="line-2036" name="line-2036"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2037" name="line-2037"></a> +<a id="line-2038" name="line-2038"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_idle_inhibit_cookie</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-2039" name="line-2039"></a> +<a id="line-2040" name="line-2040"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-2041" name="line-2041"></a> +<a id="line-2042" name="line-2042"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_idle_inhibit_cookie</span><span class="w"> </span><span class="o">=</span> +<a id="line-2043" name="line-2043"></a><span class="w"> </span><span class="n">gtk_application_inhibit</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_APPLICATION</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">),</span> +<a id="line-2044" name="line-2044"></a><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-2045" name="line-2045"></a><span class="w"> </span><span class="n">GTK_APPLICATION_INHIBIT_IDLE</span><span class="p">,</span> +<a id="line-2046" name="line-2046"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Viewing a slideshow"</span><span class="p">));</span> +<a id="line-2047" name="line-2047"></a><span class="p">}</span> +<a id="line-2048" name="line-2048"></a> +<a id="line-2049" name="line-2049"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2050" name="line-2050"></a><span class="nf">eom_window_uninhibit_screensaver</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-2051" name="line-2051"></a><span class="p">{</span> +<a id="line-2052" name="line-2052"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2053" name="line-2053"></a> +<a id="line-2054" name="line-2054"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_idle_inhibit_cookie</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span> +<a id="line-2055" name="line-2055"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-2056" name="line-2056"></a> +<a id="line-2057" name="line-2057"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-2058" name="line-2058"></a> +<a id="line-2059" name="line-2059"></a><span class="w"> </span><span class="n">gtk_application_uninhibit</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_APPLICATION</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">),</span> +<a id="line-2060" name="line-2060"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_idle_inhibit_cookie</span><span class="p">);</span> +<a id="line-2061" name="line-2061"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_idle_inhibit_cookie</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-2062" name="line-2062"></a><span class="p">}</span> +<a id="line-2063" name="line-2063"></a> +<a id="line-2064" name="line-2064"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2065" name="line-2065"></a><span class="nf">eom_window_run_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow</span><span class="p">)</span> +<a id="line-2066" name="line-2066"></a><span class="p">{</span> +<a id="line-2067" name="line-2067"></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">GdkRGBA</span><span class="w"> </span><span class="n">black</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">};</span> +<a id="line-2068" name="line-2068"></a> +<a id="line-2069" name="line-2069"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2070" name="line-2070"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menubar</span><span class="p">;</span> +<a id="line-2071" name="line-2071"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">upscale</span><span class="p">;</span> +<a id="line-2072" name="line-2072"></a> +<a id="line-2073" name="line-2073"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-2074" name="line-2074"></a> +<a id="line-2075" name="line-2075"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2076" name="line-2076"></a> +<a id="line-2077" name="line-2077"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slideshow</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2078" name="line-2078"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">;</span> +<a id="line-2079" name="line-2079"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2080" name="line-2080"></a><span class="w"> </span><span class="cm">/* Stop the timer if we come from slideshowing */</span> +<a id="line-2081" name="line-2081"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">)</span> +<a id="line-2082" name="line-2082"></a><span class="w"> </span><span class="n">slideshow_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2083" name="line-2083"></a> +<a id="line-2084" name="line-2084"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="p">;</span> +<a id="line-2085" name="line-2085"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2086" name="line-2086"></a> +<a id="line-2087" name="line-2087"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2088" name="line-2088"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span> +<a id="line-2089" name="line-2089"></a><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_create_fullscreen_popup</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2090" name="line-2090"></a> +<a id="line-2091" name="line-2091"></a><span class="w"> </span><span class="n">update_ui_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2092" name="line-2092"></a> +<a id="line-2093" name="line-2093"></a><span class="w"> </span><span class="n">menubar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/MainMenu"</span><span class="p">);</span> +<a id="line-2094" name="line-2094"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">menubar</span><span class="p">));</span> +<a id="line-2095" name="line-2095"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">menubar</span><span class="p">);</span> +<a id="line-2096" name="line-2096"></a> +<a id="line-2097" name="line-2097"></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">-></span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"motion-notify-event"</span><span class="p">,</span> +<a id="line-2098" name="line-2098"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">fullscreen_motion_notify_cb</span><span class="p">),</span> +<a id="line-2099" name="line-2099"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2100" name="line-2100"></a> +<a id="line-2101" name="line-2101"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"leave-notify-event"</span><span class="p">,</span> +<a id="line-2102" name="line-2102"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">fullscreen_leave_notify_cb</span><span class="p">),</span> +<a id="line-2103" name="line-2103"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2104" name="line-2104"></a> +<a id="line-2105" name="line-2105"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="s">"motion-notify-event"</span><span class="p">,</span> +<a id="line-2106" name="line-2106"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">fullscreen_motion_notify_cb</span><span class="p">),</span> +<a id="line-2107" name="line-2107"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2108" name="line-2108"></a> +<a id="line-2109" name="line-2109"></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">-></span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="s">"leave-notify-event"</span><span class="p">,</span> +<a id="line-2110" name="line-2110"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">fullscreen_leave_notify_cb</span><span class="p">),</span> +<a id="line-2111" name="line-2111"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2112" name="line-2112"></a> +<a id="line-2113" name="line-2113"></a><span class="w"> </span><span class="n">fullscreen_set_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2114" name="line-2114"></a> +<a id="line-2115" name="line-2115"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slideshow</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2116" name="line-2116"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_random</span><span class="w"> </span><span class="o">=</span> +<a id="line-2117" name="line-2117"></a><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">-></span><span class="n">fullscreen_settings</span><span class="p">,</span> +<a id="line-2118" name="line-2118"></a><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_RANDOM</span><span class="p">);</span> +<a id="line-2119" name="line-2119"></a> +<a id="line-2120" name="line-2120"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_loop</span><span class="w"> </span><span class="o">=</span> +<a id="line-2121" name="line-2121"></a><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">-></span><span class="n">fullscreen_settings</span><span class="p">,</span> +<a id="line-2122" name="line-2122"></a><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_LOOP</span><span class="p">);</span> +<a id="line-2123" name="line-2123"></a> +<a id="line-2124" name="line-2124"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_timeout</span><span class="w"> </span><span class="o">=</span> +<a id="line-2125" name="line-2125"></a><span class="w"> </span><span class="n">g_settings_get_int</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_settings</span><span class="p">,</span> +<a id="line-2126" name="line-2126"></a><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_SECONDS</span><span class="p">);</span> +<a id="line-2127" name="line-2127"></a> +<a id="line-2128" name="line-2128"></a><span class="w"> </span><span class="n">slideshow_set_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2129" name="line-2129"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2130" name="line-2130"></a> +<a id="line-2131" name="line-2131"></a><span class="w"> </span><span class="n">upscale</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">-></span><span class="n">fullscreen_settings</span><span class="p">,</span> +<a id="line-2132" name="line-2132"></a><span class="w"> </span><span class="n">EOM_CONF_FULLSCREEN_UPSCALE</span><span class="p">);</span> +<a id="line-2133" name="line-2133"></a> +<a id="line-2134" name="line-2134"></a><span class="w"> </span><span class="n">eom_scroll_view_set_zoom_upscale</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span> +<a id="line-2135" name="line-2135"></a><span class="w"> </span><span class="n">upscale</span><span class="p">);</span> +<a id="line-2136" name="line-2136"></a> +<a id="line-2137" name="line-2137"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">);</span> +<a id="line-2138" name="line-2138"></a> +<a id="line-2139" name="line-2139"></a><span class="w"> </span><span class="n">eom_scroll_view_override_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span> +<a id="line-2140" name="line-2140"></a><span class="w"> </span><span class="o">&</span><span class="n">black</span><span class="p">);</span> +<a id="line-2141" name="line-2141"></a> +<a id="line-2142" name="line-2142"></a><span class="w"> </span><span class="n">gtk_window_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-2143" name="line-2143"></a><span class="w"> </span><span class="n">eom_window_update_fullscreen_popup</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2144" name="line-2144"></a> +<a id="line-2145" name="line-2145"></a><span class="w"> </span><span class="n">eom_window_inhibit_screensaver</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2146" name="line-2146"></a> +<a id="line-2147" name="line-2147"></a><span class="w"> </span><span class="cm">/* Update both actions as we could've already been in one those modes */</span> +<a id="line-2148" name="line-2148"></a><span class="w"> </span><span class="n">eom_window_update_slideshow_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2149" name="line-2149"></a><span class="w"> </span><span class="n">eom_window_update_fullscreen_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2150" name="line-2150"></a><span class="w"> </span><span class="n">eom_window_update_pause_slideshow_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2151" name="line-2151"></a><span class="p">}</span> +<a id="line-2152" name="line-2152"></a> +<a id="line-2153" name="line-2153"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2154" name="line-2154"></a><span class="nf">eom_window_stop_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow</span><span class="p">)</span> +<a id="line-2155" name="line-2155"></a><span class="p">{</span> +<a id="line-2156" name="line-2156"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2157" name="line-2157"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menubar</span><span class="p">;</span> +<a id="line-2158" name="line-2158"></a> +<a id="line-2159" name="line-2159"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-2160" name="line-2160"></a> +<a id="line-2161" name="line-2161"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2162" name="line-2162"></a> +<a id="line-2163" name="line-2163"></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">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="w"> </span><span class="o">&&</span> +<a id="line-2164" name="line-2164"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-2165" name="line-2165"></a> +<a id="line-2166" name="line-2166"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_NORMAL</span><span class="p">;</span> +<a id="line-2167" name="line-2167"></a> +<a id="line-2168" name="line-2168"></a><span class="w"> </span><span class="n">fullscreen_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2169" name="line-2169"></a> +<a id="line-2170" name="line-2170"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slideshow</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2171" name="line-2171"></a><span class="w"> </span><span class="n">slideshow_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2172" name="line-2172"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2173" name="line-2173"></a> +<a id="line-2174" name="line-2174"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">,</span> +<a id="line-2175" name="line-2175"></a><span class="w"> </span><span class="n">fullscreen_motion_notify_cb</span><span class="p">,</span> +<a id="line-2176" name="line-2176"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2177" name="line-2177"></a> +<a id="line-2178" name="line-2178"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">,</span> +<a id="line-2179" name="line-2179"></a><span class="w"> </span><span class="n">fullscreen_leave_notify_cb</span><span class="p">,</span> +<a id="line-2180" name="line-2180"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2181" name="line-2181"></a> +<a id="line-2182" name="line-2182"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-2183" name="line-2183"></a><span class="w"> </span><span class="n">fullscreen_motion_notify_cb</span><span class="p">,</span> +<a id="line-2184" name="line-2184"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2185" name="line-2185"></a> +<a id="line-2186" name="line-2186"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-2187" name="line-2187"></a><span class="w"> </span><span class="n">fullscreen_leave_notify_cb</span><span class="p">,</span> +<a id="line-2188" name="line-2188"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2189" name="line-2189"></a> +<a id="line-2190" name="line-2190"></a><span class="w"> </span><span class="n">update_ui_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2191" name="line-2191"></a> +<a id="line-2192" name="line-2192"></a><span class="w"> </span><span class="n">menubar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/MainMenu"</span><span class="p">);</span> +<a id="line-2193" name="line-2193"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">menubar</span><span class="p">));</span> +<a id="line-2194" name="line-2194"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">menubar</span><span class="p">);</span> +<a id="line-2195" name="line-2195"></a> +<a id="line-2196" name="line-2196"></a><span class="w"> </span><span class="n">eom_scroll_view_set_zoom_upscale</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2197" name="line-2197"></a> +<a id="line-2198" name="line-2198"></a><span class="w"> </span><span class="n">eom_scroll_view_override_bg_color</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span> +<a id="line-2199" name="line-2199"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2200" name="line-2200"></a><span class="w"> </span><span class="n">gtk_window_unfullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-2201" name="line-2201"></a> +<a id="line-2202" name="line-2202"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slideshow</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2203" name="line-2203"></a><span class="w"> </span><span class="n">eom_window_update_slideshow_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2204" name="line-2204"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2205" name="line-2205"></a><span class="w"> </span><span class="n">eom_window_update_fullscreen_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2206" name="line-2206"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2207" name="line-2207"></a> +<a id="line-2208" name="line-2208"></a><span class="w"> </span><span class="n">eom_scroll_view_show_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">));</span> +<a id="line-2209" name="line-2209"></a> +<a id="line-2210" name="line-2210"></a><span class="w"> </span><span class="n">eom_window_uninhibit_screensaver</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2211" name="line-2211"></a><span class="p">}</span> +<a id="line-2212" name="line-2212"></a> +<a id="line-2213" name="line-2213"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2214" name="line-2214"></a><span class="nf">eom_window_print</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-2215" name="line-2215"></a><span class="p">{</span> +<a id="line-2216" name="line-2216"></a><span class="hll"><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'dialog' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'dialog' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-2217" name="line-2217"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2218" name="line-2218"></a><span class="w"> </span><span class="n">GtkPrintOperation</span><span class="w"> </span><span class="o">*</span><span class="n">print</span><span class="p">;</span> +<a id="line-2219" name="line-2219"></a><span class="w"> </span><span class="n">GtkPrintOperationResult</span><span class="w"> </span><span class="n">res</span><span class="p">;</span> +<a id="line-2220" name="line-2220"></a><span class="w"> </span><span class="n">GtkPageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">page_setup</span><span class="p">;</span> +<a id="line-2221" name="line-2221"></a><span class="w"> </span><span class="n">GtkPrintSettings</span><span class="w"> </span><span class="o">*</span><span class="n">print_settings</span><span class="p">;</span> +<a id="line-2222" name="line-2222"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">page_setup_disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2223" name="line-2223"></a> +<a id="line-2224" name="line-2224"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_PRINTING</span><span class="p">);</span> +<a id="line-2225" name="line-2225"></a> +<a id="line-2226" name="line-2226"></a><span class="w"> </span><span class="n">print_settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_get_print_settings</span><span class="w"> </span><span class="p">();</span> +<a id="line-2227" name="line-2227"></a> +<a id="line-2228" name="line-2228"></a><span class="w"> </span><span class="cm">/* Make sure the window stays valid while printing */</span> +<a id="line-2229" name="line-2229"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2230" name="line-2230"></a> +<a id="line-2231" name="line-2231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2232" name="line-2232"></a><span class="w"> </span><span class="n">page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-2233" name="line-2233"></a><span class="w"> </span><span class="k">else</span> +<a id="line-2234" name="line-2234"></a><span class="w"> </span><span class="n">page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_get_page_setup</span><span class="w"> </span><span class="p">();</span> +<a id="line-2235" name="line-2235"></a> +<a id="line-2236" name="line-2236"></a><span class="w"> </span><span class="n">print</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_print_operation_new</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-2237" name="line-2237"></a><span class="w"> </span><span class="n">print_settings</span><span class="p">,</span> +<a id="line-2238" name="line-2238"></a><span class="w"> </span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-2239" name="line-2239"></a> +<a id="line-2240" name="line-2240"></a><span class="w"> </span><span class="c1">// Disable page setup options if they are locked down</span> +<a id="line-2241" name="line-2241"></a><span class="w"> </span><span class="n">page_setup_disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">lockdown_settings</span><span class="p">,</span> +<a id="line-2242" name="line-2242"></a><span class="w"> </span><span class="n">EOM_CONF_LOCKDOWN_CAN_SETUP_PAGE</span><span class="p">);</span> +<a id="line-2243" name="line-2243"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">page_setup_disabled</span><span class="p">)</span> +<a id="line-2244" name="line-2244"></a><span class="w"> </span><span class="n">gtk_print_operation_set_embed_page_setup</span><span class="w"> </span><span class="p">(</span><span class="n">print</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2245" name="line-2245"></a> +<a id="line-2246" name="line-2246"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_print_operation_run</span><span class="w"> </span><span class="p">(</span><span class="n">print</span><span class="p">,</span> +<a id="line-2247" name="line-2247"></a><span class="w"> </span><span class="n">GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG</span><span class="p">,</span> +<a id="line-2248" name="line-2248"></a><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-2249" name="line-2249"></a> +<a id="line-2250" name="line-2250"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PRINT_OPERATION_RESULT_ERROR</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2251" name="line-2251"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_message_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-2252" name="line-2252"></a><span class="w"> </span><span class="n">GTK_DIALOG_DESTROY_WITH_PARENT</span><span class="p">,</span> +<a id="line-2253" name="line-2253"></a><span class="w"> </span><span class="n">GTK_MESSAGE_ERROR</span><span class="p">,</span> +<a id="line-2254" name="line-2254"></a><span class="w"> </span><span class="n">GTK_BUTTONS_CLOSE</span><span class="p">,</span> +<a id="line-2255" name="line-2255"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Error printing file:</span><span class="se">\n</span><span class="s">%s"</span><span class="p">),</span> +<a id="line-2256" name="line-2256"></a><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-2257" name="line-2257"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-2258" name="line-2258"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_destroy</span><span class="p">),</span> +<a id="line-2259" name="line-2259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2260" name="line-2260"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-2261" name="line-2261"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-2262" name="line-2262"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PRINT_OPERATION_RESULT_APPLY</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2263" name="line-2263"></a><span class="w"> </span><span class="n">GtkPageSetup</span><span class="w"> </span><span class="o">*</span><span class="n">new_page_setup</span><span class="p">;</span> +<a id="line-2264" name="line-2264"></a><span class="w"> </span><span class="n">eom_print_set_print_settings</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_print_operation_get_print_settings</span><span class="w"> </span><span class="p">(</span><span class="n">print</span><span class="p">));</span> +<a id="line-2265" name="line-2265"></a><span class="w"> </span><span class="n">new_page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_print_operation_get_default_page_setup</span><span class="w"> </span><span class="p">(</span><span class="n">print</span><span class="p">);</span> +<a id="line-2266" name="line-2266"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2267" name="line-2267"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-2268" name="line-2268"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">new_page_setup</span><span class="p">);</span> +<a id="line-2269" name="line-2269"></a><span class="w"> </span><span class="n">eom_print_set_page_setup</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-2270" name="line-2270"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2271" name="line-2271"></a> +<a id="line-2272" name="line-2272"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">page_setup</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2273" name="line-2273"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-2274" name="line-2274"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">print_settings</span><span class="p">);</span> +<a id="line-2275" name="line-2275"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2276" name="line-2276"></a><span class="p">}</span> +<a id="line-2277" name="line-2277"></a> +<a id="line-2278" name="line-2278"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2279" name="line-2279"></a><span class="nf">eom_window_cmd_file_open</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2280" name="line-2280"></a><span class="p">{</span> +<a id="line-2281" name="line-2281"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2282" name="line-2282"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2283" name="line-2283"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">current</span><span class="p">;</span> +<a id="line-2284" name="line-2284"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">;</span> +<a id="line-2285" name="line-2285"></a> +<a id="line-2286" name="line-2286"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-2287" name="line-2287"></a> +<a id="line-2288" name="line-2288"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2289" name="line-2289"></a> +<a id="line-2290" name="line-2290"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2291" name="line-2291"></a> +<a id="line-2292" name="line-2292"></a><span class="w"> </span><span class="n">dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_file_chooser_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER_ACTION_OPEN</span><span class="p">);</span> +<a id="line-2293" name="line-2293"></a><span class="w"> </span><span class="n">gtk_window_set_transient_for</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-2294" name="line-2294"></a> +<a id="line-2295" name="line-2295"></a><span class="w"> </span><span class="n">current</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_first_selected_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-2296" name="line-2296"></a> +<a id="line-2297" name="line-2297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">current</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2298" name="line-2298"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">dir_uri</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">file_uri</span><span class="p">;</span> +<a id="line-2299" name="line-2299"></a> +<a id="line-2300" name="line-2300"></a><span class="w"> </span><span class="n">file_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_uri_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">current</span><span class="p">);</span> +<a id="line-2301" name="line-2301"></a><span class="w"> </span><span class="n">dir_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_dirname</span><span class="w"> </span><span class="p">(</span><span class="n">file_uri</span><span class="p">);</span> +<a id="line-2302" name="line-2302"></a> +<a id="line-2303" name="line-2303"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_current_folder_uri</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-2304" name="line-2304"></a><span class="w"> </span><span class="n">dir_uri</span><span class="p">);</span> +<a id="line-2305" name="line-2305"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">file_uri</span><span class="p">);</span> +<a id="line-2306" name="line-2306"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dir_uri</span><span class="p">);</span> +<a id="line-2307" name="line-2307"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">current</span><span class="p">);</span> +<a id="line-2308" name="line-2308"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2309" name="line-2309"></a><span class="w"> </span><span class="cm">/* If desired by the user,</span> +<a id="line-2310" name="line-2310"></a><span class="cm"> fallback to the XDG_PICTURES_DIR (if available) */</span> +<a id="line-2311" name="line-2311"></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">pics_dir</span><span class="p">;</span> +<a id="line-2312" name="line-2312"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">use_fallback</span><span class="p">;</span> +<a id="line-2313" name="line-2313"></a> +<a id="line-2314" name="line-2314"></a><span class="w"> </span><span class="n">use_fallback</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">-></span><span class="n">ui_settings</span><span class="p">,</span> +<a id="line-2315" name="line-2315"></a><span class="w"> </span><span class="n">EOM_CONF_UI_FILECHOOSER_XDG_FALLBACK</span><span class="p">);</span> +<a id="line-2316" name="line-2316"></a><span class="w"> </span><span class="n">pics_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_user_special_dir</span><span class="w"> </span><span class="p">(</span><span class="n">G_USER_DIRECTORY_PICTURES</span><span class="p">);</span> +<a id="line-2317" name="line-2317"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">use_fallback</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">pics_dir</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2318" name="line-2318"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_current_folder</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-2319" name="line-2319"></a><span class="w"> </span><span class="n">pics_dir</span><span class="p">);</span> +<a id="line-2320" name="line-2320"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2321" name="line-2321"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2322" name="line-2322"></a> +<a id="line-2323" name="line-2323"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-2324" name="line-2324"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">file_open_dialog_response_cb</span><span class="p">),</span> +<a id="line-2325" name="line-2325"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2326" name="line-2326"></a> +<a id="line-2327" name="line-2327"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-2328" name="line-2328"></a><span class="p">}</span> +<a id="line-2329" name="line-2329"></a> +<a id="line-2330" name="line-2330"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2331" name="line-2331"></a><span class="nf">eom_job_close_save_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2332" name="line-2332"></a><span class="p">{</span> +<a id="line-2333" name="line-2333"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2334" name="line-2334"></a> +<a id="line-2335" name="line-2335"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span> +<a id="line-2336" name="line-2336"></a><span class="w"> </span><span class="n">eom_job_close_save_cb</span><span class="p">,</span> +<a id="line-2337" name="line-2337"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2338" name="line-2338"></a> +<a id="line-2339" name="line-2339"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-2340" name="line-2340"></a><span class="p">}</span> +<a id="line-2341" name="line-2341"></a> +<a id="line-2342" name="line-2342"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2343" name="line-2343"></a><span class="nf">close_confirmation_dialog_response_handler</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">,</span> +<a id="line-2344" name="line-2344"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response_id</span><span class="p">,</span> +<a id="line-2345" name="line-2345"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-2346" name="line-2346"></a><span class="p">{</span> +<a id="line-2347" name="line-2347"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">selected_images</span><span class="p">;</span> +<a id="line-2348" name="line-2348"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2349" name="line-2349"></a> +<a id="line-2350" name="line-2350"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2351" name="line-2351"></a> +<a id="line-2352" name="line-2352"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">response_id</span><span class="p">)</span> +<a id="line-2353" name="line-2353"></a><span class="w"> </span><span class="p">{</span> +<a id="line-2354" name="line-2354"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_RESPONSE_YES</span><span class="p">:</span> +<a id="line-2355" name="line-2355"></a><span class="w"> </span><span class="cm">/* save selected images */</span> +<a id="line-2356" name="line-2356"></a><span class="w"> </span><span class="n">selected_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog_get_selected_images</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-2357" name="line-2357"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_save_images</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">selected_images</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-2358" name="line-2358"></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">-></span><span class="n">save_job</span><span class="p">,</span><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-2359" name="line-2359"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_close_save_cb</span><span class="p">),</span> +<a id="line-2360" name="line-2360"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2361" name="line-2361"></a> +<a id="line-2362" name="line-2362"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="p">);</span> +<a id="line-2363" name="line-2363"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2364" name="line-2364"></a> +<a id="line-2365" name="line-2365"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2366" name="line-2366"></a> +<a id="line-2367" name="line-2367"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_RESPONSE_NO</span><span class="p">:</span> +<a id="line-2368" name="line-2368"></a><span class="w"> </span><span class="cm">/* dont save */</span> +<a id="line-2369" name="line-2369"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-2370" name="line-2370"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2371" name="line-2371"></a> +<a id="line-2372" name="line-2372"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-2373" name="line-2373"></a><span class="w"> </span><span class="cm">/* Cancel */</span> +<a id="line-2374" name="line-2374"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-2375" name="line-2375"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-2376" name="line-2376"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2377" name="line-2377"></a><span class="p">}</span> +<a id="line-2378" name="line-2378"></a> +<a id="line-2379" name="line-2379"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-2380" name="line-2380"></a><span class="nf">eom_window_unsaved_images_confirm</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-2381" name="line-2381"></a><span class="p">{</span> +<a id="line-2382" name="line-2382"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2383" name="line-2383"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">disabled</span><span class="p">;</span> +<a id="line-2384" name="line-2384"></a><span class="hll"><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'dialog' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'dialog' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-2385" name="line-2385"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span> +<a id="line-2386" name="line-2386"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-2387" name="line-2387"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-2388" name="line-2388"></a> +<a id="line-2389" name="line-2389"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2390" name="line-2390"></a> +<a id="line-2391" name="line-2391"></a><span class="w"> </span><span class="n">disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span> +<a id="line-2392" name="line-2392"></a><span class="w"> </span><span class="n">EOM_CONF_UI_DISABLE_CLOSE_CONFIRMATION</span><span class="p">);</span> +<a id="line-2393" name="line-2393"></a><span class="w"> </span><span class="n">disabled</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">save_disabled</span><span class="p">;</span> +<a id="line-2394" name="line-2394"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">disabled</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2395" name="line-2395"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2396" name="line-2396"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2397" name="line-2397"></a> +<a id="line-2398" name="line-2398"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2399" name="line-2399"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_model_get_iter_first</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-2400" name="line-2400"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span> +<a id="line-2401" name="line-2401"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-2402" name="line-2402"></a><span class="w"> </span><span class="n">EOM_LIST_STORE_EOM_IMAGE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">image</span><span class="p">,</span> +<a id="line-2403" name="line-2403"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-2404" name="line-2404"></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">image</span><span class="p">)</span> +<a id="line-2405" name="line-2405"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-2406" name="line-2406"></a> +<a id="line-2407" name="line-2407"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_image_is_modified</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-2408" name="line-2408"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-2409" name="line-2409"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2410" name="line-2410"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_model_iter_next</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">));</span> +<a id="line-2411" name="line-2411"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2412" name="line-2412"></a> +<a id="line-2413" name="line-2413"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2414" name="line-2414"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span> +<a id="line-2415" name="line-2415"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-2416" name="line-2416"></a><span class="w"> </span><span class="n">list</span><span class="p">);</span> +<a id="line-2417" name="line-2417"></a> +<a id="line-2418" name="line-2418"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span> +<a id="line-2419" name="line-2419"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-2420" name="line-2420"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">close_confirmation_dialog_response_handler</span><span class="p">),</span> +<a id="line-2421" name="line-2421"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2422" name="line-2422"></a><span class="w"> </span><span class="n">gtk_window_set_destroy_with_parent</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-2423" name="line-2423"></a> +<a id="line-2424" name="line-2424"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-2425" name="line-2425"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-2426" name="line-2426"></a> +<a id="line-2427" name="line-2427"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2428" name="line-2428"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2429" name="line-2429"></a><span class="p">}</span> +<a id="line-2430" name="line-2430"></a> +<a id="line-2431" name="line-2431"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2432" name="line-2432"></a><span class="nf">eom_window_cmd_close_window</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2433" name="line-2433"></a><span class="p">{</span> +<a id="line-2434" name="line-2434"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2435" name="line-2435"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2436" name="line-2436"></a> +<a id="line-2437" name="line-2437"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-2438" name="line-2438"></a> +<a id="line-2439" name="line-2439"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2440" name="line-2440"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2441" name="line-2441"></a> +<a id="line-2442" name="line-2442"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2443" name="line-2443"></a><span class="w"> </span><span class="n">eom_window_finish_saving</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2444" name="line-2444"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2445" name="line-2445"></a> +<a id="line-2446" name="line-2446"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eom_window_unsaved_images_confirm</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-2447" name="line-2447"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-2448" name="line-2448"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2449" name="line-2449"></a><span class="p">}</span> +<a id="line-2450" name="line-2450"></a> +<a id="line-2451" name="line-2451"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2452" name="line-2452"></a><span class="nf">eom_window_cmd_preferences</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2453" name="line-2453"></a><span class="p">{</span> +<a id="line-2454" name="line-2454"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2455" name="line-2455"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">pref_dlg</span><span class="p">;</span> +<a id="line-2456" name="line-2456"></a> +<a id="line-2457" name="line-2457"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-2458" name="line-2458"></a> +<a id="line-2459" name="line-2459"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2460" name="line-2460"></a> +<a id="line-2461" name="line-2461"></a><span class="w"> </span><span class="n">pref_dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_preferences_dialog_get_instance</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-2462" name="line-2462"></a> +<a id="line-2463" name="line-2463"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">pref_dlg</span><span class="p">);</span> +<a id="line-2464" name="line-2464"></a><span class="p">}</span> +<a id="line-2465" name="line-2465"></a> +<a id="line-2466" name="line-2466"></a><span class="cp">#define EOM_TB_EDITOR_DLG_RESET_RESPONSE 128</span> +<a id="line-2467" name="line-2467"></a> +<a id="line-2468" name="line-2468"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2469" name="line-2469"></a><span class="nf">eom_window_cmd_edit_toolbar_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-2470" name="line-2470"></a><span class="p">{</span> +<a id="line-2471" name="line-2471"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-2472" name="line-2472"></a> +<a id="line-2473" name="line-2473"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_TB_EDITOR_DLG_RESET_RESPONSE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2474" name="line-2474"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-2475" name="line-2475"></a><span class="w"> </span><span class="n">EggToolbarEditor</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">;</span> +<a id="line-2476" name="line-2476"></a> +<a id="line-2477" name="line-2477"></a><span class="w"> </span><span class="n">editor</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">dialog</span><span class="p">),</span> +<a id="line-2478" name="line-2478"></a><span class="w"> </span><span class="s">"EggToolbarEditor"</span><span class="p">);</span> +<a id="line-2479" name="line-2479"></a> +<a id="line-2480" name="line-2480"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2481" name="line-2481"></a> +<a id="line-2482" name="line-2482"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_edit_mode</span> +<a id="line-2483" name="line-2483"></a><span class="w"> </span><span class="p">(</span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2484" name="line-2484"></a> +<a id="line-2485" name="line-2485"></a><span class="w"> </span><span class="n">eom_application_reset_toolbars_model</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">);</span> +<a id="line-2486" name="line-2486"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_application_get_toolbars_model</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">);</span> +<a id="line-2487" name="line-2487"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_model</span> +<a id="line-2488" name="line-2488"></a><span class="w"> </span><span class="p">(</span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-2489" name="line-2489"></a><span class="w"> </span><span class="n">egg_toolbar_editor_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">,</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-2490" name="line-2490"></a> +<a id="line-2491" name="line-2491"></a><span class="w"> </span><span class="cm">/* Toolbar would be uneditable now otherwise */</span> +<a id="line-2492" name="line-2492"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_edit_mode</span> +<a id="line-2493" name="line-2493"></a><span class="w"> </span><span class="p">(</span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-2494" name="line-2494"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_HELP</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2495" name="line-2495"></a><span class="w"> </span><span class="n">eom_util_show_help</span><span class="w"> </span><span class="p">(</span><span class="s">"eom-toolbareditor"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2496" name="line-2496"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2497" name="line-2497"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_edit_mode</span> +<a id="line-2498" name="line-2498"></a><span class="w"> </span><span class="p">(</span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2499" name="line-2499"></a> +<a id="line-2500" name="line-2500"></a><span class="w"> </span><span class="n">eom_application_save_toolbars_model</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">);</span> +<a id="line-2501" name="line-2501"></a> +<a id="line-2502" name="line-2502"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">));</span> +<a id="line-2503" name="line-2503"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2504" name="line-2504"></a><span class="p">}</span> +<a id="line-2505" name="line-2505"></a> +<a id="line-2506" name="line-2506"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2507" name="line-2507"></a><span class="nf">eom_window_cmd_edit_toolbar</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="o">*</span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2508" name="line-2508"></a><span class="p">{</span> +<a id="line-2509" name="line-2509"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2510" name="line-2510"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span> +<a id="line-2511" name="line-2511"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">;</span> +<a id="line-2512" name="line-2512"></a> +<a id="line-2513" name="line-2513"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-2514" name="line-2514"></a> +<a id="line-2515" name="line-2515"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2516" name="line-2516"></a> +<a id="line-2517" name="line-2517"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_dialog_new_with_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Toolbar Editor"</span><span class="p">),</span> +<a id="line-2518" name="line-2518"></a><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-2519" name="line-2519"></a><span class="w"> </span><span class="n">GTK_DIALOG_DESTROY_WITH_PARENT</span><span class="p">,</span> +<a id="line-2520" name="line-2520"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Reset to Default"</span><span class="p">),</span> +<a id="line-2521" name="line-2521"></a><span class="w"> </span><span class="n">EOM_TB_EDITOR_DLG_RESET_RESPONSE</span><span class="p">,</span> +<a id="line-2522" name="line-2522"></a><span class="w"> </span><span class="s">"gtk-close"</span><span class="p">,</span> +<a id="line-2523" name="line-2523"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CLOSE</span><span class="p">,</span> +<a id="line-2524" name="line-2524"></a><span class="w"> </span><span class="s">"gtk-help"</span><span class="p">,</span> +<a id="line-2525" name="line-2525"></a><span class="w"> </span><span class="n">GTK_RESPONSE_HELP</span><span class="p">,</span> +<a id="line-2526" name="line-2526"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2527" name="line-2527"></a> +<a id="line-2528" name="line-2528"></a><span class="w"> </span><span class="n">gtk_dialog_set_default_response</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span> +<a id="line-2529" name="line-2529"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CLOSE</span><span class="p">);</span> +<a id="line-2530" name="line-2530"></a> +<a id="line-2531" name="line-2531"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> +<a id="line-2532" name="line-2532"></a> +<a id="line-2533" name="line-2533"></a><span class="w"> </span><span class="n">gtk_box_set_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">))),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-2534" name="line-2534"></a> +<a id="line-2535" name="line-2535"></a><span class="w"> </span><span class="n">gtk_window_set_default_size</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="mi">500</span><span class="p">,</span><span class="w"> </span><span class="mi">400</span><span class="p">);</span> +<a id="line-2536" name="line-2536"></a> +<a id="line-2537" name="line-2537"></a><span class="w"> </span><span class="n">editor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">egg_toolbar_editor_new</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-2538" name="line-2538"></a><span class="w"> </span><span class="n">eom_application_get_toolbars_model</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">));</span> +<a id="line-2539" name="line-2539"></a> +<a id="line-2540" name="line-2540"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">),</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> +<a id="line-2541" name="line-2541"></a> +<a id="line-2542" name="line-2542"></a><span class="w"> </span><span class="c1">// Use as much vertical space as available</span> +<a id="line-2543" name="line-2543"></a><span class="w"> </span><span class="n">gtk_widget_set_vexpand</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-2544" name="line-2544"></a> +<a id="line-2545" name="line-2545"></a><span class="w"> </span><span class="n">gtk_box_set_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TOOLBAR_EDITOR</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">)),</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> +<a id="line-2546" name="line-2546"></a> +<a id="line-2547" name="line-2547"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">))),</span><span class="w"> </span><span class="n">editor</span><span class="p">);</span> +<a id="line-2548" name="line-2548"></a> +<a id="line-2549" name="line-2549"></a><span class="w"> </span><span class="n">egg_editable_toolbar_set_edit_mode</span> +<a id="line-2550" name="line-2550"></a><span class="w"> </span><span class="p">(</span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-2551" name="line-2551"></a> +<a id="line-2552" name="line-2552"></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">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">"EggToolbarEditor"</span><span class="p">,</span><span class="w"> </span><span class="n">editor</span><span class="p">);</span> +<a id="line-2553" name="line-2553"></a> +<a id="line-2554" name="line-2554"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-2555" name="line-2555"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_edit_toolbar_cb</span><span class="p">),</span> +<a id="line-2556" name="line-2556"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2557" name="line-2557"></a> +<a id="line-2558" name="line-2558"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-2559" name="line-2559"></a><span class="p">}</span> +<a id="line-2560" name="line-2560"></a> +<a id="line-2561" name="line-2561"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2562" name="line-2562"></a><span class="nf">eom_window_cmd_help</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2563" name="line-2563"></a><span class="p">{</span> +<a id="line-2564" name="line-2564"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2565" name="line-2565"></a> +<a id="line-2566" name="line-2566"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-2567" name="line-2567"></a> +<a id="line-2568" name="line-2568"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2569" name="line-2569"></a> +<a id="line-2570" name="line-2570"></a><span class="w"> </span><span class="n">eom_util_show_help</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-2571" name="line-2571"></a><span class="p">}</span> +<a id="line-2572" name="line-2572"></a> +<a id="line-2573" name="line-2573"></a><span class="cp">#define ABOUT_GROUP "About"</span> +<a id="line-2574" name="line-2574"></a><span class="cp">#define EMAILIFY(string) (g_strdelimit ((string), "%", '@'))</span> +<a id="line-2575" name="line-2575"></a> +<a id="line-2576" name="line-2576"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2577" name="line-2577"></a><span class="nf">eom_window_cmd_about</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2578" name="line-2578"></a><span class="p">{</span> +<a id="line-2579" name="line-2579"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2580" name="line-2580"></a> +<a id="line-2581" name="line-2581"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-2582" name="line-2582"></a> +<a id="line-2583" name="line-2583"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">license</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-2584" name="line-2584"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"This program is free software; you can redistribute it and/or modify "</span> +<a id="line-2585" name="line-2585"></a><span class="w"> </span><span class="s">"it under the terms of the GNU General Public License as published by "</span> +<a id="line-2586" name="line-2586"></a><span class="w"> </span><span class="s">"the Free Software Foundation; either version 2 of the License, or "</span> +<a id="line-2587" name="line-2587"></a><span class="w"> </span><span class="s">"(at your option) any later version.</span><span class="se">\n</span><span class="s">"</span><span class="p">),</span> +<a id="line-2588" name="line-2588"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"This program is distributed in the hope that it will be useful, "</span> +<a id="line-2589" name="line-2589"></a><span class="w"> </span><span class="s">"but WITHOUT ANY WARRANTY; without even the implied warranty of "</span> +<a id="line-2590" name="line-2590"></a><span class="w"> </span><span class="s">"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "</span> +<a id="line-2591" name="line-2591"></a><span class="w"> </span><span class="s">"GNU General Public License for more details.</span><span class="se">\n</span><span class="s">"</span><span class="p">),</span> +<a id="line-2592" name="line-2592"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"You should have received a copy of the GNU General Public License "</span> +<a id="line-2593" name="line-2593"></a><span class="w"> </span><span class="s">"along with this program; if not, write to the Free Software "</span> +<a id="line-2594" name="line-2594"></a><span class="w"> </span><span class="s">"Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA."</span><span class="p">)</span> +<a id="line-2595" name="line-2595"></a><span class="w"> </span><span class="p">};</span> +<a id="line-2596" name="line-2596"></a> +<a id="line-2597" name="line-2597"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">license_trans</span><span class="p">;</span> +<a id="line-2598" name="line-2598"></a><span class="w"> </span><span class="n">GKeyFile</span><span class="w"> </span><span class="o">*</span><span class="n">key_file</span><span class="p">;</span> +<a id="line-2599" name="line-2599"></a><span class="w"> </span><span class="n">GBytes</span><span class="w"> </span><span class="o">*</span><span class="n">bytes</span><span class="p">;</span> +<a id="line-2600" name="line-2600"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">;</span> +<a id="line-2601" name="line-2601"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">data_len</span><span class="p">;</span> +<a id="line-2602" name="line-2602"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2603" name="line-2603"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">authors</span><span class="p">,</span><span class="w"> </span><span class="o">**</span><span class="n">documenters</span><span class="p">;</span> +<a id="line-2604" name="line-2604"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">n_authors</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">n_documenters</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-2605" name="line-2605"></a> +<a id="line-2606" name="line-2606"></a><span class="w"> </span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_resources_lookup_data</span><span class="w"> </span><span class="p">(</span><span class="s">"/org/mate/eom/ui/eom.about"</span><span class="p">,</span><span class="w"> </span><span class="n">G_RESOURCE_LOOKUP_FLAGS_NONE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-2607" name="line-2607"></a><span class="w"> </span><span class="n">g_assert_no_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-2608" name="line-2608"></a> +<a id="line-2609" name="line-2609"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_bytes_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">data_len</span><span class="p">);</span> +<a id="line-2610" name="line-2610"></a><span class="w"> </span><span class="n">key_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-2611" name="line-2611"></a><span class="w"> </span><span class="n">g_key_file_load_from_data</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">data_len</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">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-2612" name="line-2612"></a><span class="w"> </span><span class="n">g_assert_no_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-2613" name="line-2613"></a> +<a id="line-2614" name="line-2614"></a><span class="w"> </span><span class="n">authors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_get_string_list</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="n">ABOUT_GROUP</span><span class="p">,</span><span class="w"> </span><span class="s">"Authors"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_authors</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2615" name="line-2615"></a><span class="w"> </span><span class="n">documenters</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_get_string_list</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="n">ABOUT_GROUP</span><span class="p">,</span><span class="w"> </span><span class="s">"Documenters"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_documenters</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2616" name="line-2616"></a> +<a id="line-2617" name="line-2617"></a><span class="w"> </span><span class="n">g_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">);</span> +<a id="line-2618" name="line-2618"></a><span class="w"> </span><span class="n">g_bytes_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-2619" name="line-2619"></a> +<a id="line-2620" name="line-2620"></a><span class="w"> </span><span class="k">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"><</span><span class="w"> </span><span class="n">n_authors</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span> +<a id="line-2621" name="line-2621"></a><span class="w"> </span><span class="n">authors</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMAILIFY</span><span class="w"> </span><span class="p">(</span><span class="n">authors</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-2622" name="line-2622"></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"><</span><span class="w"> </span><span class="n">n_documenters</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span> +<a id="line-2623" name="line-2623"></a><span class="w"> </span><span class="n">documenters</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMAILIFY</span><span class="w"> </span><span class="p">(</span><span class="n">documenters</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-2624" name="line-2624"></a> +<a id="line-2625" name="line-2625"></a><span class="w"> </span><span class="n">license_trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="n">license</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">license</span><span class="p">[</span><span class="mi">1</span><span class="p">]),</span><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">license</span><span class="p">[</span><span class="mi">2</span><span class="p">]),</span><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2626" name="line-2626"></a> +<a id="line-2627" name="line-2627"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2628" name="line-2628"></a> +<a id="line-2629" name="line-2629"></a><span class="w"> </span><span class="n">gtk_show_about_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-2630" name="line-2630"></a><span class="w"> </span><span class="s">"program-name"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Eye of MATE"</span><span class="p">),</span> +<a id="line-2631" name="line-2631"></a><span class="w"> </span><span class="s">"title"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"About Eye of MATE"</span><span class="p">),</span> +<a id="line-2632" name="line-2632"></a><span class="w"> </span><span class="s">"version"</span><span class="p">,</span><span class="w"> </span><span class="n">VERSION</span><span class="p">,</span> +<a id="line-2633" name="line-2633"></a><span class="w"> </span><span class="s">"copyright"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Copyright </span><span class="se">\xc2\xa9</span><span class="s"> 2000-2010 Free Software Foundation, Inc.</span><span class="se">\n</span><span class="s">"</span> +<a id="line-2634" name="line-2634"></a><span class="w"> </span><span class="s">"Copyright </span><span class="se">\xc2\xa9</span><span class="s"> 2011 Perberos</span><span class="se">\n</span><span class="s">"</span> +<a id="line-2635" name="line-2635"></a><span class="w"> </span><span class="s">"Copyright </span><span class="se">\xc2\xa9</span><span class="s"> 2012-2021 MATE developers"</span><span class="p">),</span> +<a id="line-2636" name="line-2636"></a><span class="w"> </span><span class="s">"comments"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"Eye of MATE is a simple graphics viewer for the MATE Desktop Environment."</span><span class="p">),</span> +<a id="line-2637" name="line-2637"></a><span class="w"> </span><span class="s">"authors"</span><span class="p">,</span><span class="w"> </span><span class="n">authors</span><span class="p">,</span> +<a id="line-2638" name="line-2638"></a><span class="w"> </span><span class="s">"documenters"</span><span class="p">,</span><span class="w"> </span><span class="n">documenters</span><span class="p">,</span> +<a id="line-2639" name="line-2639"></a><span class="w"> </span><span class="s">"translator-credits"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"translator-credits"</span><span class="p">),</span> +<a id="line-2640" name="line-2640"></a><span class="w"> </span><span class="s">"website"</span><span class="p">,</span><span class="w"> </span><span class="n">PACKAGE_URL</span><span class="p">,</span> +<a id="line-2641" name="line-2641"></a><span class="w"> </span><span class="s">"logo-icon-name"</span><span class="p">,</span><span class="w"> </span><span class="s">"eom"</span><span class="p">,</span> +<a id="line-2642" name="line-2642"></a><span class="w"> </span><span class="s">"wrap-license"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-2643" name="line-2643"></a><span class="w"> </span><span class="s">"license"</span><span class="p">,</span><span class="w"> </span><span class="n">license_trans</span><span class="p">,</span> +<a id="line-2644" name="line-2644"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2645" name="line-2645"></a> +<a id="line-2646" name="line-2646"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">authors</span><span class="p">);</span> +<a id="line-2647" name="line-2647"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">documenters</span><span class="p">);</span> +<a id="line-2648" name="line-2648"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">license_trans</span><span class="p">);</span> +<a id="line-2649" name="line-2649"></a><span class="p">}</span> +<a id="line-2650" name="line-2650"></a> +<a id="line-2651" name="line-2651"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2652" name="line-2652"></a><span class="nf">eom_window_cmd_show_hide_bar</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2653" name="line-2653"></a><span class="p">{</span> +<a id="line-2654" name="line-2654"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2655" name="line-2655"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2656" name="line-2656"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">;</span> +<a id="line-2657" name="line-2657"></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">action_name</span><span class="p">;</span> +<a id="line-2658" name="line-2658"></a> +<a id="line-2659" name="line-2659"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-2660" name="line-2660"></a> +<a id="line-2661" name="line-2661"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2662" name="line-2662"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2663" name="line-2663"></a> +<a id="line-2664" name="line-2664"></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">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_NORMAL</span><span class="w"> </span><span class="o">&&</span> +<a id="line-2665" name="line-2665"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-2666" name="line-2666"></a> +<a id="line-2667" name="line-2667"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2668" name="line-2668"></a><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_action_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">));</span> +<a id="line-2669" name="line-2669"></a><span class="w"> </span><span class="n">action_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">);</span> +<a id="line-2670" name="line-2670"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2671" name="line-2671"></a> +<a id="line-2672" name="line-2672"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewToolbar"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2673" name="line-2673"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">),</span><span class="w"> </span><span class="s">"visible"</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2674" name="line-2674"></a> +<a id="line-2675" name="line-2675"></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">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_NORMAL</span><span class="p">)</span> +<a id="line-2676" name="line-2676"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_TOOLBAR</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-2677" name="line-2677"></a> +<a id="line-2678" name="line-2678"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewStatusbar"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2679" name="line-2679"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span><span class="w"> </span><span class="s">"visible"</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2680" name="line-2680"></a> +<a id="line-2681" name="line-2681"></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">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_NORMAL</span><span class="p">)</span> +<a id="line-2682" name="line-2682"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_STATUSBAR</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-2683" name="line-2683"></a> +<a id="line-2684" name="line-2684"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewImageCollection"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2685" name="line-2685"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">visible</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2686" name="line-2686"></a><span class="w"> </span><span class="cm">/* Make sure the focus widget is realized to</span> +<a id="line-2687" name="line-2687"></a><span class="cm"> * avoid warnings on keypress events */</span> +<a id="line-2688" name="line-2688"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_realized</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">))</span> +<a id="line-2689" name="line-2689"></a><span class="w"> </span><span class="n">gtk_widget_realize</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-2690" name="line-2690"></a> +<a id="line-2691" name="line-2691"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">);</span> +<a id="line-2692" name="line-2692"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-2693" name="line-2693"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2694" name="line-2694"></a><span class="w"> </span><span class="cm">/* Make sure the focus widget is realized to</span> +<a id="line-2695" name="line-2695"></a><span class="cm"> * avoid warnings on keypress events.</span> +<a id="line-2696" name="line-2696"></a><span class="cm"> * Don't do it during init phase or the view</span> +<a id="line-2697" name="line-2697"></a><span class="cm"> * will get a bogus allocation. */</span> +<a id="line-2698" name="line-2698"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_realized</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)</span> +<a id="line-2699" name="line-2699"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_NORMAL</span><span class="p">)</span> +<a id="line-2700" name="line-2700"></a><span class="w"> </span><span class="n">gtk_widget_realize</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">);</span> +<a id="line-2701" name="line-2701"></a> +<a id="line-2702" name="line-2702"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">);</span> +<a id="line-2703" name="line-2703"></a> +<a id="line-2704" name="line-2704"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_realized</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">))</span> +<a id="line-2705" name="line-2705"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">);</span> +<a id="line-2706" name="line-2706"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2707" name="line-2707"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_IMAGE_COLLECTION</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-2708" name="line-2708"></a> +<a id="line-2709" name="line-2709"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewSidebar"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2710" name="line-2710"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">visible</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2711" name="line-2711"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-2712" name="line-2712"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2713" name="line-2713"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-2714" name="line-2714"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2715" name="line-2715"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_SIDEBAR</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-2716" name="line-2716"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2717" name="line-2717"></a><span class="p">}</span> +<a id="line-2718" name="line-2718"></a> +<a id="line-2719" name="line-2719"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2720" name="line-2720"></a><span class="nf">wallpaper_info_bar_response</span><span class="w"> </span><span class="p">(</span><span class="n">GtkInfoBar</span><span class="w"> </span><span class="o">*</span><span class="n">bar</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-2721" name="line-2721"></a><span class="p">{</span> +<a id="line-2722" name="line-2722"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_YES</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2723" name="line-2723"></a><span class="w"> </span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span><span class="n">app_info</span><span class="p">;</span> +<a id="line-2724" name="line-2724"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2725" name="line-2725"></a> +<a id="line-2726" name="line-2726"></a><span class="w"> </span><span class="n">app_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_app_info_create_from_commandline</span><span class="w"> </span><span class="p">(</span><span class="s">"mate-appearance-properties --show-page=background"</span><span class="p">,</span> +<a id="line-2727" name="line-2727"></a><span class="w"> </span><span class="s">"mate-appearance-properties"</span><span class="p">,</span> +<a id="line-2728" name="line-2728"></a><span class="w"> </span><span class="n">G_APP_INFO_CREATE_NONE</span><span class="p">,</span> +<a id="line-2729" name="line-2729"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-2730" name="line-2730"></a> +<a id="line-2731" name="line-2731"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2732" name="line-2732"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"%s%s"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Error launching appearance preferences dialog: "</span><span class="p">),</span> +<a id="line-2733" name="line-2733"></a><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-2734" name="line-2734"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-2735" name="line-2735"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2736" name="line-2736"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2737" name="line-2737"></a> +<a id="line-2738" name="line-2738"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2739" name="line-2739"></a><span class="w"> </span><span class="n">GdkAppLaunchContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span> +<a id="line-2740" name="line-2740"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span> +<a id="line-2741" name="line-2741"></a> +<a id="line-2742" name="line-2742"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-2743" name="line-2743"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_app_launch_context</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span> +<a id="line-2744" name="line-2744"></a><span class="w"> </span><span class="n">g_app_info_launch</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">G_APP_LAUNCH_CONTEXT</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-2745" name="line-2745"></a> +<a id="line-2746" name="line-2746"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2747" name="line-2747"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"%s%s"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Error launching appearance preferences dialog: "</span><span class="p">),</span> +<a id="line-2748" name="line-2748"></a><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-2749" name="line-2749"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-2750" name="line-2750"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2751" name="line-2751"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2752" name="line-2752"></a> +<a id="line-2753" name="line-2753"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span> +<a id="line-2754" name="line-2754"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="p">);</span> +<a id="line-2755" name="line-2755"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2756" name="line-2756"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2757" name="line-2757"></a> +<a id="line-2758" name="line-2758"></a><span class="w"> </span><span class="cm">/* Close message area on every response */</span> +<a id="line-2759" name="line-2759"></a><span class="w"> </span><span class="n">eom_window_set_message_area</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2760" name="line-2760"></a><span class="p">}</span> +<a id="line-2761" name="line-2761"></a> +<a id="line-2762" name="line-2762"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2763" name="line-2763"></a><span class="nf">eom_window_set_wallpaper</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</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><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">visible_filename</span><span class="p">)</span> +<a id="line-2764" name="line-2764"></a><span class="p">{</span> +<a id="line-2765" name="line-2765"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_bar</span><span class="p">;</span> +<a id="line-2766" name="line-2766"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-2767" name="line-2767"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-2768" name="line-2768"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">;</span> +<a id="line-2769" name="line-2769"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">markup</span><span class="p">;</span> +<a id="line-2770" name="line-2770"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-2771" name="line-2771"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">basename</span><span class="p">;</span> +<a id="line-2772" name="line-2772"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">wallpaper_settings</span><span class="p">;</span> +<a id="line-2773" name="line-2773"></a> +<a id="line-2774" name="line-2774"></a><span class="w"> </span><span class="n">wallpaper_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">EOM_CONF_BACKGROUND_SCHEMA</span><span class="p">);</span> +<a id="line-2775" name="line-2775"></a><span class="w"> </span><span class="n">g_settings_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">wallpaper_settings</span><span class="p">,</span> +<a id="line-2776" name="line-2776"></a><span class="w"> </span><span class="n">EOM_CONF_BACKGROUND_FILE</span><span class="p">,</span> +<a id="line-2777" name="line-2777"></a><span class="w"> </span><span class="n">filename</span><span class="p">);</span> +<a id="line-2778" name="line-2778"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">wallpaper_settings</span><span class="p">);</span> +<a id="line-2779" name="line-2779"></a> +<a id="line-2780" name="line-2780"></a><span class="w"> </span><span class="cm">/* I18N: When setting mnemonics for these strings, watch out to not</span> +<a id="line-2781" name="line-2781"></a><span class="cm"> clash with mnemonics from eom's menubar */</span> +<a id="line-2782" name="line-2782"></a><span class="w"> </span><span class="n">info_bar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_info_bar_new_with_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"_Open Background Preferences"</span><span class="p">),</span> +<a id="line-2783" name="line-2783"></a><span class="w"> </span><span class="n">GTK_RESPONSE_YES</span><span class="p">,</span> +<a id="line-2784" name="line-2784"></a><span class="w"> </span><span class="n">C_</span><span class="p">(</span><span class="s">"MessageArea"</span><span class="p">,</span><span class="s">"Hi_de"</span><span class="p">),</span> +<a id="line-2785" name="line-2785"></a><span class="w"> </span><span class="n">GTK_RESPONSE_NO</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2786" name="line-2786"></a><span class="w"> </span><span class="n">gtk_info_bar_set_message_type</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">),</span> +<a id="line-2787" name="line-2787"></a><span class="w"> </span><span class="n">GTK_MESSAGE_QUESTION</span><span class="p">);</span> +<a id="line-2788" name="line-2788"></a> +<a id="line-2789" name="line-2789"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">"dialog-question"</span><span class="p">,</span> +<a id="line-2790" name="line-2790"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span> +<a id="line-2791" name="line-2791"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2792" name="line-2792"></a> +<a id="line-2793" name="line-2793"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">visible_filename</span><span class="p">)</span> +<a id="line-2794" name="line-2794"></a><span class="w"> </span><span class="n">basename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-2795" name="line-2795"></a> +<a id="line-2796" name="line-2796"></a><span class="w"> </span><span class="cm">/* The newline character is currently necessary due to a problem</span> +<a id="line-2797" name="line-2797"></a><span class="cm"> * with the automatic line break. */</span> +<a id="line-2798" name="line-2798"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"The image </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s"> has been set as Desktop Background."</span> +<a id="line-2799" name="line-2799"></a><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">Would you like to modify its appearance?"</span><span class="p">),</span> +<a id="line-2800" name="line-2800"></a><span class="w"> </span><span class="n">visible_filename</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">visible_filename</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">basename</span><span class="p">);</span> +<a id="line-2801" name="line-2801"></a><span class="w"> </span><span class="n">markup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="s">"<b>%s</b>"</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span> +<a id="line-2802" name="line-2802"></a><span class="w"> </span><span class="n">gtk_label_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">markup</span><span class="p">);</span> +<a id="line-2803" name="line-2803"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">markup</span><span class="p">);</span> +<a id="line-2804" name="line-2804"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-2805" name="line-2805"></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">visible_filename</span><span class="p">)</span> +<a id="line-2806" name="line-2806"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">);</span> +<a id="line-2807" name="line-2807"></a> +<a id="line-2808" name="line-2808"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span> +<a id="line-2809" name="line-2809"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-2810" name="line-2810"></a><span class="w"> </span><span class="n">gtk_widget_set_halign</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_START</span><span class="p">);</span> +<a id="line-2811" name="line-2811"></a><span class="w"> </span><span class="n">gtk_widget_set_valign</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_END</span><span class="p">);</span> +<a id="line-2812" name="line-2812"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-2813" name="line-2813"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-2814" name="line-2814"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_info_bar_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">))),</span><span class="w"> </span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-2815" name="line-2815"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">);</span> +<a id="line-2816" name="line-2816"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">);</span> +<a id="line-2817" name="line-2817"></a> +<a id="line-2818" name="line-2818"></a><span class="w"> </span><span class="n">eom_window_set_message_area</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">info_bar</span><span class="p">);</span> +<a id="line-2819" name="line-2819"></a><span class="w"> </span><span class="n">gtk_info_bar_set_default_response</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">),</span> +<a id="line-2820" name="line-2820"></a><span class="w"> </span><span class="n">GTK_RESPONSE_YES</span><span class="p">);</span> +<a id="line-2821" name="line-2821"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">info_bar</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-2822" name="line-2822"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">wallpaper_info_bar_response</span><span class="p">),</span> +<a id="line-2823" name="line-2823"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2824" name="line-2824"></a><span class="p">}</span> +<a id="line-2825" name="line-2825"></a> +<a id="line-2826" name="line-2826"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2827" name="line-2827"></a><span class="nf">eom_job_save_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobSave</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2828" name="line-2828"></a><span class="p">{</span> +<a id="line-2829" name="line-2829"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2830" name="line-2830"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_save</span><span class="p">;</span> +<a id="line-2831" name="line-2831"></a> +<a id="line-2832" name="line-2832"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span> +<a id="line-2833" name="line-2833"></a><span class="w"> </span><span class="n">eom_job_save_cb</span><span class="p">,</span> +<a id="line-2834" name="line-2834"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2835" name="line-2835"></a> +<a id="line-2836" name="line-2836"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span> +<a id="line-2837" name="line-2837"></a><span class="w"> </span><span class="n">eom_job_save_progress_cb</span><span class="p">,</span> +<a id="line-2838" name="line-2838"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2839" name="line-2839"></a> +<a id="line-2840" name="line-2840"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="p">);</span> +<a id="line-2841" name="line-2841"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2842" name="line-2842"></a> +<a id="line-2843" name="line-2843"></a><span class="w"> </span><span class="n">update_status_bar</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-2844" name="line-2844"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2845" name="line-2845"></a><span class="w"> </span><span class="n">action_save</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-2846" name="line-2846"></a><span class="w"> </span><span class="s">"ImageSave"</span><span class="p">);</span> +<a id="line-2847" name="line-2847"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_save</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-2848" name="line-2848"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2849" name="line-2849"></a><span class="p">}</span> +<a id="line-2850" name="line-2850"></a> +<a id="line-2851" name="line-2851"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2852" name="line-2852"></a><span class="nf">eom_job_copy_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobCopy</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2853" name="line-2853"></a><span class="p">{</span> +<a id="line-2854" name="line-2854"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2855" name="line-2855"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filepath</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">basename</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">extension</span><span class="p">;</span> +<a id="line-2856" name="line-2856"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-2857" name="line-2857"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">source_file</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dest_file</span><span class="p">;</span> +<a id="line-2858" name="line-2858"></a> +<a id="line-2859" name="line-2859"></a><span class="w"> </span><span class="cm">/* Create source GFile */</span> +<a id="line-2860" name="line-2860"></a><span class="w"> </span><span class="n">basename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-2861" name="line-2861"></a><span class="w"> </span><span class="n">filepath</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">basename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2862" name="line-2862"></a><span class="w"> </span><span class="n">source_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">filepath</span><span class="p">);</span> +<a id="line-2863" name="line-2863"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filepath</span><span class="p">);</span> +<a id="line-2864" name="line-2864"></a> +<a id="line-2865" name="line-2865"></a><span class="w"> </span><span class="cm">/* Create destination GFile */</span> +<a id="line-2866" name="line-2866"></a><span class="w"> </span><span class="n">extension</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_util_filename_get_extension</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">);</span> +<a id="line-2867" name="line-2867"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"%s.%s"</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_WALLPAPER_FILENAME</span><span class="p">,</span><span class="w"> </span><span class="n">extension</span><span class="p">);</span> +<a id="line-2868" name="line-2868"></a><span class="w"> </span><span class="n">filepath</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2869" name="line-2869"></a><span class="w"> </span><span class="n">dest_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">filepath</span><span class="p">);</span> +<a id="line-2870" name="line-2870"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-2871" name="line-2871"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">extension</span><span class="p">);</span> +<a id="line-2872" name="line-2872"></a> +<a id="line-2873" name="line-2873"></a><span class="w"> </span><span class="cm">/* Move the file */</span> +<a id="line-2874" name="line-2874"></a><span class="w"> </span><span class="n">g_file_move</span><span class="w"> </span><span class="p">(</span><span class="n">source_file</span><span class="p">,</span><span class="w"> </span><span class="n">dest_file</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_COPY_OVERWRITE</span><span class="p">,</span> +<a id="line-2875" name="line-2875"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2876" name="line-2876"></a> +<a id="line-2877" name="line-2877"></a><span class="w"> </span><span class="cm">/* Set the wallpaper */</span> +<a id="line-2878" name="line-2878"></a><span class="w"> </span><span class="n">eom_window_set_wallpaper</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">filepath</span><span class="p">,</span><span class="w"> </span><span class="n">basename</span><span class="p">);</span> +<a id="line-2879" name="line-2879"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">);</span> +<a id="line-2880" name="line-2880"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filepath</span><span class="p">);</span> +<a id="line-2881" name="line-2881"></a> +<a id="line-2882" name="line-2882"></a><span class="w"> </span><span class="n">gtk_statusbar_pop</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-2883" name="line-2883"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">copy_file_cid</span><span class="p">);</span> +<a id="line-2884" name="line-2884"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2885" name="line-2885"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-2886" name="line-2886"></a><span class="w"> </span><span class="s">"ImageSetAsWallpaper"</span><span class="p">);</span> +<a id="line-2887" name="line-2887"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-2888" name="line-2888"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-2889" name="line-2889"></a> +<a id="line-2890" name="line-2890"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">copy_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2891" name="line-2891"></a> +<a id="line-2892" name="line-2892"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">source_file</span><span class="p">);</span> +<a id="line-2893" name="line-2893"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dest_file</span><span class="p">);</span> +<a id="line-2894" name="line-2894"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="o">-></span><span class="n">data</span><span class="p">));</span> +<a id="line-2895" name="line-2895"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">images</span><span class="p">);</span> +<a id="line-2896" name="line-2896"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-2897" name="line-2897"></a><span class="p">}</span> +<a id="line-2898" name="line-2898"></a> +<a id="line-2899" name="line-2899"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-2900" name="line-2900"></a><span class="nf">eom_window_save_images</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">images</span><span class="p">)</span> +<a id="line-2901" name="line-2901"></a><span class="p">{</span> +<a id="line-2902" name="line-2902"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2903" name="line-2903"></a> +<a id="line-2904" name="line-2904"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2905" name="line-2905"></a> +<a id="line-2906" name="line-2906"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2907" name="line-2907"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-2908" name="line-2908"></a> +<a id="line-2909" name="line-2909"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_save_new</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">);</span> +<a id="line-2910" name="line-2910"></a> +<a id="line-2911" name="line-2911"></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">-></span><span class="n">save_job</span><span class="p">,</span><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-2912" name="line-2912"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_save_cb</span><span class="p">),</span> +<a id="line-2913" name="line-2913"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2914" name="line-2914"></a> +<a id="line-2915" name="line-2915"></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">-></span><span class="n">save_job</span><span class="p">,</span><span class="w"> </span><span class="s">"progress"</span><span class="p">,</span> +<a id="line-2916" name="line-2916"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_save_progress_cb</span><span class="p">),</span> +<a id="line-2917" name="line-2917"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-2918" name="line-2918"></a> +<a id="line-2919" name="line-2919"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-2920" name="line-2920"></a><span class="p">}</span> +<a id="line-2921" name="line-2921"></a> +<a id="line-2922" name="line-2922"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2923" name="line-2923"></a><span class="nf">eom_window_cmd_save</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2924" name="line-2924"></a><span class="p">{</span> +<a id="line-2925" name="line-2925"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2926" name="line-2926"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2927" name="line-2927"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">images</span><span class="p">;</span> +<a id="line-2928" name="line-2928"></a> +<a id="line-2929" name="line-2929"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2930" name="line-2930"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2931" name="line-2931"></a> +<a id="line-2932" name="line-2932"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2933" name="line-2933"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-2934" name="line-2934"></a> +<a id="line-2935" name="line-2935"></a><span class="w"> </span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_selected_images</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-2936" name="line-2936"></a> +<a id="line-2937" name="line-2937"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_save_images</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">images</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-2938" name="line-2938"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="p">);</span> +<a id="line-2939" name="line-2939"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2940" name="line-2940"></a><span class="p">}</span> +<a id="line-2941" name="line-2941"></a> +<a id="line-2942" name="line-2942"></a><span class="k">static</span><span class="w"> </span><span class="n">GFile</span><span class="o">*</span> +<a id="line-2943" name="line-2943"></a><span class="nf">eom_window_retrieve_save_as_file</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-2944" name="line-2944"></a><span class="p">{</span> +<a id="line-2945" name="line-2945"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span> +<a id="line-2946" name="line-2946"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">save_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-2947" name="line-2947"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">last_dest_folder</span><span class="p">;</span> +<a id="line-2948" name="line-2948"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">;</span> +<a id="line-2949" name="line-2949"></a> +<a id="line-2950" name="line-2950"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2951" name="line-2951"></a> +<a id="line-2952" name="line-2952"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_file_chooser_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER_ACTION_SAVE</span><span class="p">);</span> +<a id="line-2953" name="line-2953"></a> +<a id="line-2954" name="line-2954"></a><span class="w"> </span><span class="n">last_dest_folder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">last_save_as_folder</span><span class="p">;</span> +<a id="line-2955" name="line-2955"></a> +<a id="line-2956" name="line-2956"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">last_dest_folder</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">g_file_query_exists</span><span class="w"> </span><span class="p">(</span><span class="n">last_dest_folder</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-2957" name="line-2957"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_current_folder_file</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">last_dest_folder</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2958" name="line-2958"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_current_name</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span> +<a id="line-2959" name="line-2959"></a><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-2960" name="line-2960"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-2961" name="line-2961"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">image_file</span><span class="p">;</span> +<a id="line-2962" name="line-2962"></a> +<a id="line-2963" name="line-2963"></a><span class="w"> </span><span class="n">image_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-2964" name="line-2964"></a><span class="w"> </span><span class="cm">/* Setting the file will also navigate to its parent folder */</span> +<a id="line-2965" name="line-2965"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_file</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span> +<a id="line-2966" name="line-2966"></a><span class="w"> </span><span class="n">image_file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-2967" name="line-2967"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image_file</span><span class="p">);</span> +<a id="line-2968" name="line-2968"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2969" name="line-2969"></a> +<a id="line-2970" name="line-2970"></a><span class="w"> </span><span class="n">response</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_dialog_run</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">));</span> +<a id="line-2971" name="line-2971"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-2972" name="line-2972"></a> +<a id="line-2973" name="line-2973"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-2974" name="line-2974"></a><span class="w"> </span><span class="n">save_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_chooser_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">));</span> +<a id="line-2975" name="line-2975"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">last_save_as_folder</span><span class="p">)</span> +<a id="line-2976" name="line-2976"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">last_save_as_folder</span><span class="p">);</span> +<a id="line-2977" name="line-2977"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">last_save_as_folder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">save_file</span><span class="p">);</span> +<a id="line-2978" name="line-2978"></a><span class="w"> </span><span class="p">}</span> +<a id="line-2979" name="line-2979"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-2980" name="line-2980"></a> +<a id="line-2981" name="line-2981"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">save_file</span><span class="p">;</span> +<a id="line-2982" name="line-2982"></a><span class="p">}</span> +<a id="line-2983" name="line-2983"></a> +<a id="line-2984" name="line-2984"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-2985" name="line-2985"></a><span class="nf">eom_window_cmd_save_as</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-2986" name="line-2986"></a><span class="p">{</span> +<a id="line-2987" name="line-2987"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-2988" name="line-2988"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-2989" name="line-2989"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">images</span><span class="p">;</span> +<a id="line-2990" name="line-2990"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-2991" name="line-2991"></a> +<a id="line-2992" name="line-2992"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-2993" name="line-2993"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-2994" name="line-2994"></a> +<a id="line-2995" name="line-2995"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-2996" name="line-2996"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-2997" name="line-2997"></a> +<a id="line-2998" name="line-2998"></a><span class="w"> </span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_selected_images</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-2999" name="line-2999"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">);</span> +<a id="line-3000" name="line-3000"></a> +<a id="line-3001" name="line-3001"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3002" name="line-3002"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-3003" name="line-3003"></a> +<a id="line-3004" name="line-3004"></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">eom_window_retrieve_save_as_file</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">images</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-3005" name="line-3005"></a> +<a id="line-3006" name="line-3006"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">file</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3007" name="line-3007"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">);</span> +<a id="line-3008" name="line-3008"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-3009" name="line-3009"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3010" name="line-3010"></a> +<a id="line-3011" name="line-3011"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_save_as_new</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">);</span> +<a id="line-3012" name="line-3012"></a> +<a id="line-3013" name="line-3013"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-3014" name="line-3014"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3015" name="line-3015"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">base_file</span><span class="p">;</span> +<a id="line-3016" name="line-3016"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span> +<a id="line-3017" name="line-3017"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">basedir</span><span class="p">;</span> +<a id="line-3018" name="line-3018"></a><span class="w"> </span><span class="n">EomURIConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">;</span> +<a id="line-3019" name="line-3019"></a> +<a id="line-3020" name="line-3020"></a><span class="w"> </span><span class="n">basedir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_current_dir</span><span class="w"> </span><span class="p">();</span> +<a id="line-3021" name="line-3021"></a><span class="w"> </span><span class="n">base_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">basedir</span><span class="p">);</span> +<a id="line-3022" name="line-3022"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">basedir</span><span class="p">);</span> +<a id="line-3023" name="line-3023"></a> +<a id="line-3024" name="line-3024"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_save_as_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-3025" name="line-3025"></a><span class="w"> </span><span class="n">images</span><span class="p">,</span> +<a id="line-3026" name="line-3026"></a><span class="w"> </span><span class="n">base_file</span><span class="p">);</span> +<a id="line-3027" name="line-3027"></a> +<a id="line-3028" name="line-3028"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-3029" name="line-3029"></a> +<a id="line-3030" name="line-3030"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_run</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3031" name="line-3031"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">base_file</span><span class="p">);</span> +<a id="line-3032" name="line-3032"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">);</span> +<a id="line-3033" name="line-3033"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-3034" name="line-3034"></a> +<a id="line-3035" name="line-3035"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-3036" name="line-3036"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3037" name="line-3037"></a> +<a id="line-3038" name="line-3038"></a><span class="w"> </span><span class="n">converter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_save_as_dialog_get_converter</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-3039" name="line-3039"></a> +<a id="line-3040" name="line-3040"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3041" name="line-3041"></a> +<a id="line-3042" name="line-3042"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_save_as_new</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">,</span><span class="w"> </span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3043" name="line-3043"></a> +<a id="line-3044" name="line-3044"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-3045" name="line-3045"></a> +<a id="line-3046" name="line-3046"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="p">);</span> +<a id="line-3047" name="line-3047"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">base_file</span><span class="p">);</span> +<a id="line-3048" name="line-3048"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3049" name="line-3049"></a><span class="w"> </span><span class="cm">/* n_images = 0 -- No Image selected */</span> +<a id="line-3050" name="line-3050"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-3051" name="line-3051"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3052" name="line-3052"></a> +<a id="line-3053" name="line-3053"></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">-></span><span class="n">save_job</span><span class="p">,</span><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-3054" name="line-3054"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_save_cb</span><span class="p">),</span> +<a id="line-3055" name="line-3055"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3056" name="line-3056"></a> +<a id="line-3057" name="line-3057"></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">-></span><span class="n">save_job</span><span class="p">,</span><span class="w"> </span><span class="s">"progress"</span><span class="p">,</span> +<a id="line-3058" name="line-3058"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_save_progress_cb</span><span class="p">),</span> +<a id="line-3059" name="line-3059"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3060" name="line-3060"></a> +<a id="line-3061" name="line-3061"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="p">);</span> +<a id="line-3062" name="line-3062"></a><span class="p">}</span> +<a id="line-3063" name="line-3063"></a> +<a id="line-3064" name="line-3064"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3065" name="line-3065"></a><span class="nf">eom_window_cmd_open_containing_folder</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3066" name="line-3066"></a><span class="p">{</span> +<a id="line-3067" name="line-3067"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3068" name="line-3068"></a> +<a id="line-3069" name="line-3069"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-3070" name="line-3070"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3071" name="line-3071"></a> +<a id="line-3072" name="line-3072"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3073" name="line-3073"></a> +<a id="line-3074" name="line-3074"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3075" name="line-3075"></a> +<a id="line-3076" name="line-3076"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-3077" name="line-3077"></a> +<a id="line-3078" name="line-3078"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3079" name="line-3079"></a> +<a id="line-3080" name="line-3080"></a><span class="w"> </span><span class="n">eom_util_show_file_in_filemanager</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-3081" name="line-3081"></a><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3082" name="line-3082"></a><span class="p">}</span> +<a id="line-3083" name="line-3083"></a> +<a id="line-3084" name="line-3084"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3085" name="line-3085"></a><span class="nf">eom_window_cmd_print</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3086" name="line-3086"></a><span class="p">{</span> +<a id="line-3087" name="line-3087"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-3088" name="line-3088"></a> +<a id="line-3089" name="line-3089"></a><span class="w"> </span><span class="n">eom_window_print</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-3090" name="line-3090"></a><span class="p">}</span> +<a id="line-3091" name="line-3091"></a> +<a id="line-3092" name="line-3092"></a><span class="cm">/**</span> +<a id="line-3093" name="line-3093"></a><span class="cm"> * eom_window_get_properties_dialog:</span> +<a id="line-3094" name="line-3094"></a><span class="cm"> * @window: a #EomWindow</span> +<a id="line-3095" name="line-3095"></a><span class="cm"> *</span> +<a id="line-3096" name="line-3096"></a><span class="cm"> * Gets the @window property dialog. The widget will be built on the first call to this function.</span> +<a id="line-3097" name="line-3097"></a><span class="cm"> *</span> +<a id="line-3098" name="line-3098"></a><span class="cm"> * Returns: (transfer none): a #GtkDialog.</span> +<a id="line-3099" name="line-3099"></a><span class="cm"> */</span> +<a id="line-3100" name="line-3100"></a> +<a id="line-3101" name="line-3101"></a><span class="n">GtkWidget</span><span class="o">*</span> +<a id="line-3102" name="line-3102"></a><span class="nf">eom_window_get_properties_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-3103" name="line-3103"></a><span class="p">{</span> +<a id="line-3104" name="line-3104"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3105" name="line-3105"></a> +<a id="line-3106" name="line-3106"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-3107" name="line-3107"></a> +<a id="line-3108" name="line-3108"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3109" name="line-3109"></a> +<a id="line-3110" name="line-3110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">properties_dlg</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3111" name="line-3111"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">next_image_action</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">previous_image_action</span><span class="p">;</span> +<a id="line-3112" name="line-3112"></a> +<a id="line-3113" name="line-3113"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3114" name="line-3114"></a><span class="w"> </span><span class="n">next_image_action</span><span class="w"> </span><span class="o">=</span> +<a id="line-3115" name="line-3115"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span> +<a id="line-3116" name="line-3116"></a><span class="w"> </span><span class="s">"GoNext"</span><span class="p">);</span> +<a id="line-3117" name="line-3117"></a> +<a id="line-3118" name="line-3118"></a><span class="w"> </span><span class="n">previous_image_action</span><span class="w"> </span><span class="o">=</span> +<a id="line-3119" name="line-3119"></a><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span> +<a id="line-3120" name="line-3120"></a><span class="w"> </span><span class="s">"GoPrevious"</span><span class="p">);</span> +<a id="line-3121" name="line-3121"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3122" name="line-3122"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">properties_dlg</span><span class="w"> </span><span class="o">=</span> +<a id="line-3123" name="line-3123"></a><span class="w"> </span><span class="n">eom_properties_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-3124" name="line-3124"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-3125" name="line-3125"></a><span class="w"> </span><span class="n">next_image_action</span><span class="p">,</span> +<a id="line-3126" name="line-3126"></a><span class="w"> </span><span class="n">previous_image_action</span><span class="p">);</span> +<a id="line-3127" name="line-3127"></a> +<a id="line-3128" name="line-3128"></a><span class="w"> </span><span class="n">eom_properties_dialog_update</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_PROPERTIES_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">properties_dlg</span><span class="p">),</span> +<a id="line-3129" name="line-3129"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-3130" name="line-3130"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span> +<a id="line-3131" name="line-3131"></a><span class="w"> </span><span class="n">EOM_CONF_UI_PROPSDIALOG_NETBOOK_MODE</span><span class="p">,</span> +<a id="line-3132" name="line-3132"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">properties_dlg</span><span class="p">,</span><span class="w"> </span><span class="s">"netbook-mode"</span><span class="p">,</span> +<a id="line-3133" name="line-3133"></a><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-3134" name="line-3134"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3135" name="line-3135"></a> +<a id="line-3136" name="line-3136"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">properties_dlg</span><span class="p">;</span> +<a id="line-3137" name="line-3137"></a><span class="p">}</span> +<a id="line-3138" name="line-3138"></a> +<a id="line-3139" name="line-3139"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3140" name="line-3140"></a><span class="nf">eom_window_cmd_properties</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3141" name="line-3141"></a><span class="p">{</span> +<a id="line-3142" name="line-3142"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-3143" name="line-3143"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span> +<a id="line-3144" name="line-3144"></a> +<a id="line-3145" name="line-3145"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_properties_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-3146" name="line-3146"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-3147" name="line-3147"></a><span class="p">}</span> +<a id="line-3148" name="line-3148"></a> +<a id="line-3149" name="line-3149"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3150" name="line-3150"></a><span class="nf">eom_window_cmd_undo</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3151" name="line-3151"></a><span class="p">{</span> +<a id="line-3152" name="line-3152"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3153" name="line-3153"></a> +<a id="line-3154" name="line-3154"></a><span class="w"> </span><span class="n">apply_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3155" name="line-3155"></a><span class="p">}</span> +<a id="line-3156" name="line-3156"></a> +<a id="line-3157" name="line-3157"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3158" name="line-3158"></a><span class="nf">eom_window_cmd_flip_horizontal</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3159" name="line-3159"></a><span class="p">{</span> +<a id="line-3160" name="line-3160"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3161" name="line-3161"></a> +<a id="line-3162" name="line-3162"></a><span class="w"> </span><span class="n">apply_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-3163" name="line-3163"></a><span class="w"> </span><span class="n">eom_transform_flip_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSFORM_FLIP_HORIZONTAL</span><span class="p">));</span> +<a id="line-3164" name="line-3164"></a><span class="p">}</span> +<a id="line-3165" name="line-3165"></a> +<a id="line-3166" name="line-3166"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3167" name="line-3167"></a><span class="nf">eom_window_cmd_flip_vertical</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3168" name="line-3168"></a><span class="p">{</span> +<a id="line-3169" name="line-3169"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3170" name="line-3170"></a> +<a id="line-3171" name="line-3171"></a><span class="w"> </span><span class="n">apply_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-3172" name="line-3172"></a><span class="w"> </span><span class="n">eom_transform_flip_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TRANSFORM_FLIP_VERTICAL</span><span class="p">));</span> +<a id="line-3173" name="line-3173"></a><span class="p">}</span> +<a id="line-3174" name="line-3174"></a> +<a id="line-3175" name="line-3175"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3176" name="line-3176"></a><span class="nf">eom_window_cmd_rotate_90</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3177" name="line-3177"></a><span class="p">{</span> +<a id="line-3178" name="line-3178"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3179" name="line-3179"></a> +<a id="line-3180" name="line-3180"></a><span class="w"> </span><span class="n">apply_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-3181" name="line-3181"></a><span class="w"> </span><span class="n">eom_transform_rotate_new</span><span class="w"> </span><span class="p">(</span><span class="mi">90</span><span class="p">));</span> +<a id="line-3182" name="line-3182"></a><span class="p">}</span> +<a id="line-3183" name="line-3183"></a> +<a id="line-3184" name="line-3184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3185" name="line-3185"></a><span class="nf">eom_window_cmd_rotate_270</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3186" name="line-3186"></a><span class="p">{</span> +<a id="line-3187" name="line-3187"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3188" name="line-3188"></a> +<a id="line-3189" name="line-3189"></a><span class="w"> </span><span class="n">apply_transformation</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">),</span> +<a id="line-3190" name="line-3190"></a><span class="w"> </span><span class="n">eom_transform_rotate_new</span><span class="w"> </span><span class="p">(</span><span class="mi">270</span><span class="p">));</span> +<a id="line-3191" name="line-3191"></a><span class="p">}</span> +<a id="line-3192" name="line-3192"></a> +<a id="line-3193" name="line-3193"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3194" name="line-3194"></a><span class="nf">eom_window_cmd_wallpaper</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3195" name="line-3195"></a><span class="p">{</span> +<a id="line-3196" name="line-3196"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-3197" name="line-3197"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3198" name="line-3198"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-3199" name="line-3199"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-3200" name="line-3200"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-3201" name="line-3201"></a> +<a id="line-3202" name="line-3202"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3203" name="line-3203"></a> +<a id="line-3204" name="line-3204"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-3205" name="line-3205"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3206" name="line-3206"></a> +<a id="line-3207" name="line-3207"></a><span class="w"> </span><span class="cm">/* If currently copying an image to set it as wallpaper, return. */</span> +<a id="line-3208" name="line-3208"></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">-></span><span class="n">copy_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-3209" name="line-3209"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-3210" name="line-3210"></a> +<a id="line-3211" name="line-3211"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_first_selected_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-3212" name="line-3212"></a> +<a id="line-3213" name="line-3213"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-3214" name="line-3214"></a> +<a id="line-3215" name="line-3215"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-3216" name="line-3216"></a> +<a id="line-3217" name="line-3217"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-3218" name="line-3218"></a> +<a id="line-3219" name="line-3219"></a><span class="w"> </span><span class="cm">/* Currently only local files can be set as wallpaper */</span> +<a id="line-3220" name="line-3220"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">eom_util_file_is_persistent</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">))</span> +<a id="line-3221" name="line-3221"></a><span class="w"> </span><span class="p">{</span> +<a id="line-3222" name="line-3222"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">files</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-3223" name="line-3223"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action_set_as_wp</span><span class="p">;</span> +<a id="line-3224" name="line-3224"></a> +<a id="line-3225" name="line-3225"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3226" name="line-3226"></a><span class="w"> </span><span class="n">action_set_as_wp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-3227" name="line-3227"></a><span class="w"> </span><span class="s">"ImageSetAsWallpaper"</span><span class="p">);</span> +<a id="line-3228" name="line-3228"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action_set_as_wp</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-3229" name="line-3229"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3230" name="line-3230"></a> +<a id="line-3231" name="line-3231"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">copy_file_cid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_statusbar_get_context_id</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-3232" name="line-3232"></a><span class="w"> </span><span class="s">"copy_file_cid"</span><span class="p">);</span> +<a id="line-3233" name="line-3233"></a><span class="w"> </span><span class="n">gtk_statusbar_push</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-3234" name="line-3234"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">copy_file_cid</span><span class="p">,</span> +<a id="line-3235" name="line-3235"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Saving image locally…"</span><span class="p">));</span> +<a id="line-3236" name="line-3236"></a> +<a id="line-3237" name="line-3237"></a><span class="w"> </span><span class="n">files</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">files</span><span class="p">,</span><span class="w"> </span><span class="n">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-3238" name="line-3238"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">copy_job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_copy_new</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="p">,</span><span class="w"> </span><span class="n">g_get_user_data_dir</span><span class="w"> </span><span class="p">());</span> +<a id="line-3239" name="line-3239"></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">-></span><span class="n">copy_job</span><span class="p">,</span><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-3240" name="line-3240"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_copy_cb</span><span class="p">),</span> +<a id="line-3241" name="line-3241"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3242" name="line-3242"></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">-></span><span class="n">copy_job</span><span class="p">,</span><span class="w"> </span><span class="s">"progress"</span><span class="p">,</span> +<a id="line-3243" name="line-3243"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_progress_cb</span><span class="p">),</span> +<a id="line-3244" name="line-3244"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3245" name="line-3245"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">copy_job</span><span class="p">);</span> +<a id="line-3246" name="line-3246"></a> +<a id="line-3247" name="line-3247"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-3248" name="line-3248"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-3249" name="line-3249"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-3250" name="line-3250"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3251" name="line-3251"></a> +<a id="line-3252" name="line-3252"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-3253" name="line-3253"></a> +<a id="line-3254" name="line-3254"></a><span class="w"> </span><span class="n">eom_window_set_wallpaper</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">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3255" name="line-3255"></a> +<a id="line-3256" name="line-3256"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-3257" name="line-3257"></a><span class="p">}</span> +<a id="line-3258" name="line-3258"></a> +<a id="line-3259" name="line-3259"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-3260" name="line-3260"></a><span class="nf">eom_window_all_images_trasheable</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">images</span><span class="p">)</span> +<a id="line-3261" name="line-3261"></a><span class="p">{</span> +<a id="line-3262" name="line-3262"></a><span class="hll"><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'file' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'file' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-3263" name="line-3263"></a><span class="hll"><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'file_info' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'file_info' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-3264" name="line-3264"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-3265" name="line-3265"></a><span class="hll"><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'image' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'image' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-3266" name="line-3266"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">can_trash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-3267" name="line-3267"></a> +<a id="line-3268" name="line-3268"></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">images</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">g_list_next</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-3269" name="line-3269"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</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">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-3270" name="line-3270"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-3271" name="line-3271"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-3272" name="line-3272"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH</span><span class="p">,</span> +<a id="line-3273" name="line-3273"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3274" name="line-3274"></a><span class="w"> </span><span class="n">can_trash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">,</span> +<a id="line-3275" name="line-3275"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH</span><span class="p">);</span> +<a id="line-3276" name="line-3276"></a> +<a id="line-3277" name="line-3277"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-3278" name="line-3278"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-3279" name="line-3279"></a> +<a id="line-3280" name="line-3280"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">can_trash</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span> +<a id="line-3281" name="line-3281"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-3282" name="line-3282"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3283" name="line-3283"></a> +<a id="line-3284" name="line-3284"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">can_trash</span><span class="p">;</span> +<a id="line-3285" name="line-3285"></a><span class="p">}</span> +<a id="line-3286" name="line-3286"></a> +<a id="line-3287" name="line-3287"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-3288" name="line-3288"></a><span class="nf">show_move_to_trash_confirm_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">images</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">can_trash</span><span class="p">)</span> +<a id="line-3289" name="line-3289"></a><span class="p">{</span> +<a id="line-3290" name="line-3290"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">;</span> +<a id="line-3291" name="line-3291"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">prompt</span><span class="p">;</span> +<a id="line-3292" name="line-3292"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">response</span><span class="p">;</span> +<a id="line-3293" name="line-3293"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-3294" name="line-3294"></a><span class="hll"><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'image' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'image' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-3295" name="line-3295"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">dontaskagain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-3296" name="line-3296"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">neverask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-3297" name="line-3297"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="n">dontask_cbutton</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-3298" name="line-3298"></a> +<a id="line-3299" name="line-3299"></a><span class="w"> </span><span class="cm">/* Check if the user never wants to be bugged. */</span> +<a id="line-3300" name="line-3300"></a><span class="w"> </span><span class="n">neverask</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">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span> +<a id="line-3301" name="line-3301"></a><span class="w"> </span><span class="n">EOM_CONF_UI_DISABLE_TRASH_CONFIRMATION</span><span class="p">);</span> +<a id="line-3302" name="line-3302"></a> +<a id="line-3303" name="line-3303"></a><span class="w"> </span><span class="cm">/* Assume agreement, if the user doesn't want to be</span> +<a id="line-3304" name="line-3304"></a><span class="cm"> * asked and the trash is available */</span> +<a id="line-3305" name="line-3305"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">can_trash</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">dontaskagain</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">neverask</span><span class="p">))</span> +<a id="line-3306" name="line-3306"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">;</span> +<a id="line-3307" name="line-3307"></a> +<a id="line-3308" name="line-3308"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">);</span> +<a id="line-3309" name="line-3309"></a> +<a id="line-3310" name="line-3310"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3311" name="line-3311"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-3312" name="line-3312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">can_trash</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3313" name="line-3313"></a><span class="w"> </span><span class="n">prompt</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Are you sure you want to move</span><span class="se">\n\"</span><span class="s">%s</span><span class="se">\"</span><span class="s"> to the trash?"</span><span class="p">),</span> +<a id="line-3314" name="line-3314"></a><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-3315" name="line-3315"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3316" name="line-3316"></a><span class="w"> </span><span class="n">prompt</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"A trash for </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s"> couldn't be found. Do you want to remove "</span> +<a id="line-3317" name="line-3317"></a><span class="w"> </span><span class="s">"this image permanently?"</span><span class="p">),</span><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-3318" name="line-3318"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3319" name="line-3319"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3320" name="line-3320"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">can_trash</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3321" name="line-3321"></a><span class="w"> </span><span class="n">prompt</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">ngettext</span><span class="p">(</span><span class="s">"Are you sure you want to move</span><span class="se">\n</span><span class="s">"</span> +<a id="line-3322" name="line-3322"></a><span class="w"> </span><span class="s">"the %d selected image to the trash?"</span><span class="p">,</span> +<a id="line-3323" name="line-3323"></a><span class="w"> </span><span class="s">"Are you sure you want to move</span><span class="se">\n</span><span class="s">"</span> +<a id="line-3324" name="line-3324"></a><span class="w"> </span><span class="s">"the %d selected images to the trash?"</span><span class="p">,</span><span class="w"> </span><span class="n">n_images</span><span class="p">),</span><span class="w"> </span><span class="n">n_images</span><span class="p">);</span> +<a id="line-3325" name="line-3325"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3326" name="line-3326"></a><span class="w"> </span><span class="n">prompt</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Some of the selected images can't be moved to the trash "</span> +<a id="line-3327" name="line-3327"></a><span class="w"> </span><span class="s">"and will be removed permanently. Are you sure you want "</span> +<a id="line-3328" name="line-3328"></a><span class="w"> </span><span class="s">"to proceed?"</span><span class="p">));</span> +<a id="line-3329" name="line-3329"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3330" name="line-3330"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3331" name="line-3331"></a> +<a id="line-3332" name="line-3332"></a><span class="w"> </span><span class="n">dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_message_dialog_new_with_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-3333" name="line-3333"></a><span class="w"> </span><span class="n">GTK_DIALOG_MODAL</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GTK_DIALOG_DESTROY_WITH_PARENT</span><span class="p">,</span> +<a id="line-3334" name="line-3334"></a><span class="w"> </span><span class="n">GTK_MESSAGE_WARNING</span><span class="p">,</span> +<a id="line-3335" name="line-3335"></a><span class="w"> </span><span class="n">GTK_BUTTONS_NONE</span><span class="p">,</span> +<a id="line-3336" name="line-3336"></a><span class="w"> </span><span class="s">"<span weight=</span><span class="se">\"</span><span class="s">bold</span><span class="se">\"</span><span class="s"> size=</span><span class="se">\"</span><span class="s">larger</span><span class="se">\"</span><span class="s">>%s</span>"</span><span class="p">,</span> +<a id="line-3337" name="line-3337"></a><span class="w"> </span><span class="n">prompt</span><span class="p">);</span> +<a id="line-3338" name="line-3338"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">prompt</span><span class="p">);</span> +<a id="line-3339" name="line-3339"></a> +<a id="line-3340" name="line-3340"></a><span class="w"> </span><span class="n">gtk_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="s">"gtk-cancel"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span> +<a id="line-3341" name="line-3341"></a> +<a id="line-3342" name="line-3342"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">can_trash</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3343" name="line-3343"></a><span class="w"> </span><span class="n">gtk_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Move to _Trash"</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span> +<a id="line-3344" name="line-3344"></a> +<a id="line-3345" name="line-3345"></a><span class="w"> </span><span class="n">dontask_cbutton</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_check_button_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"_Do not ask again during this session"</span><span class="p">));</span> +<a id="line-3346" name="line-3346"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">dontask_cbutton</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-3347" name="line-3347"></a> +<a id="line-3348" name="line-3348"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">))),</span><span class="w"> </span><span class="n">dontask_cbutton</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-3349" name="line-3349"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3350" name="line-3350"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3351" name="line-3351"></a><span class="w"> </span><span class="n">gtk_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="s">"gtk-delete"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span> +<a id="line-3352" name="line-3352"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3353" name="line-3353"></a><span class="w"> </span><span class="n">gtk_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="s">"gtk-yes"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span> +<a id="line-3354" name="line-3354"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3355" name="line-3355"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3356" name="line-3356"></a> +<a id="line-3357" name="line-3357"></a><span class="w"> </span><span class="n">gtk_dialog_set_default_response</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span> +<a id="line-3358" name="line-3358"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-3359" name="line-3359"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-3360" name="line-3360"></a> +<a id="line-3361" name="line-3361"></a><span class="w"> </span><span class="n">response</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_dialog_run</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-3362" name="line-3362"></a> +<a id="line-3363" name="line-3363"></a><span class="w"> </span><span class="cm">/* Only update the property if the user has accepted */</span> +<a id="line-3364" name="line-3364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">can_trash</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span> +<a id="line-3365" name="line-3365"></a><span class="w"> </span><span class="n">dontaskagain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_button_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">dontask_cbutton</span><span class="p">));</span> +<a id="line-3366" name="line-3366"></a> +<a id="line-3367" name="line-3367"></a><span class="w"> </span><span class="cm">/* The checkbutton is destroyed together with the dialog */</span> +<a id="line-3368" name="line-3368"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-3369" name="line-3369"></a> +<a id="line-3370" name="line-3370"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">response</span><span class="p">;</span> +<a id="line-3371" name="line-3371"></a><span class="p">}</span> +<a id="line-3372" name="line-3372"></a> +<a id="line-3373" name="line-3373"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-3374" name="line-3374"></a><span class="nf">move_to_trash_real</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span> +<a id="line-3375" name="line-3375"></a><span class="p">{</span> +<a id="line-3376" name="line-3376"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-3377" name="line-3377"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-3378" name="line-3378"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">can_trash</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-3379" name="line-3379"></a> +<a id="line-3380" name="line-3380"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-3381" name="line-3381"></a> +<a id="line-3382" name="line-3382"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-3383" name="line-3383"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-3384" name="line-3384"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH</span><span class="p">,</span> +<a id="line-3385" name="line-3385"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3386" name="line-3386"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3387" name="line-3387"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-3388" name="line-3388"></a><span class="w"> </span><span class="n">EOM_WINDOW_ERROR</span><span class="p">,</span> +<a id="line-3389" name="line-3389"></a><span class="w"> </span><span class="n">EOM_WINDOW_ERROR_TRASH_NOT_FOUND</span><span class="p">,</span> +<a id="line-3390" name="line-3390"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Couldn't access trash."</span><span class="p">));</span> +<a id="line-3391" name="line-3391"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-3392" name="line-3392"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3393" name="line-3393"></a> +<a id="line-3394" name="line-3394"></a><span class="w"> </span><span class="n">can_trash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">,</span> +<a id="line-3395" name="line-3395"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH</span><span class="p">);</span> +<a id="line-3396" name="line-3396"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-3397" name="line-3397"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">can_trash</span><span class="p">)</span> +<a id="line-3398" name="line-3398"></a><span class="w"> </span><span class="p">{</span> +<a id="line-3399" name="line-3399"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_trash</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3400" name="line-3400"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3401" name="line-3401"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-3402" name="line-3402"></a><span class="w"> </span><span class="n">EOM_WINDOW_ERROR</span><span class="p">,</span> +<a id="line-3403" name="line-3403"></a><span class="w"> </span><span class="n">EOM_WINDOW_ERROR_TRASH_NOT_FOUND</span><span class="p">,</span> +<a id="line-3404" name="line-3404"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Couldn't access trash."</span><span class="p">));</span> +<a id="line-3405" name="line-3405"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3406" name="line-3406"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3407" name="line-3407"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_delete</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3408" name="line-3408"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3409" name="line-3409"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span> +<a id="line-3410" name="line-3410"></a><span class="w"> </span><span class="n">EOM_WINDOW_ERROR</span><span class="p">,</span> +<a id="line-3411" name="line-3411"></a><span class="w"> </span><span class="n">EOM_WINDOW_ERROR_IO</span><span class="p">,</span> +<a id="line-3412" name="line-3412"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Couldn't delete file"</span><span class="p">));</span> +<a id="line-3413" name="line-3413"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3414" name="line-3414"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3415" name="line-3415"></a> +<a id="line-3416" name="line-3416"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-3417" name="line-3417"></a> +<a id="line-3418" name="line-3418"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-3419" name="line-3419"></a><span class="p">}</span> +<a id="line-3420" name="line-3420"></a> +<a id="line-3421" name="line-3421"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3422" name="line-3422"></a><span class="nf">eom_window_cmd_copy_image</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3423" name="line-3423"></a><span class="p">{</span> +<a id="line-3424" name="line-3424"></a><span class="w"> </span><span class="n">GtkClipboard</span><span class="w"> </span><span class="o">*</span><span class="n">clipboard</span><span class="p">;</span> +<a id="line-3425" name="line-3425"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-3426" name="line-3426"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3427" name="line-3427"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-3428" name="line-3428"></a><span class="w"> </span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">cbhandler</span><span class="p">;</span> +<a id="line-3429" name="line-3429"></a> +<a id="line-3430" name="line-3430"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3431" name="line-3431"></a> +<a id="line-3432" name="line-3432"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-3433" name="line-3433"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3434" name="line-3434"></a> +<a id="line-3435" name="line-3435"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_first_selected_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-3436" name="line-3436"></a> +<a id="line-3437" name="line-3437"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-3438" name="line-3438"></a> +<a id="line-3439" name="line-3439"></a><span class="w"> </span><span class="n">clipboard</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_clipboard_get</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_SELECTION_CLIPBOARD</span><span class="p">);</span> +<a id="line-3440" name="line-3440"></a> +<a id="line-3441" name="line-3441"></a><span class="w"> </span><span class="n">cbhandler</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_clipboard_handler_new</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-3442" name="line-3442"></a><span class="w"> </span><span class="c1">// cbhandler will self-destruct when it's not needed anymore</span> +<a id="line-3443" name="line-3443"></a><span class="w"> </span><span class="n">eom_clipboard_handler_copy_to_clipboard</span><span class="w"> </span><span class="p">(</span><span class="n">cbhandler</span><span class="p">,</span><span class="w"> </span><span class="n">clipboard</span><span class="p">);</span> +<a id="line-3444" name="line-3444"></a> +<a id="line-3445" name="line-3445"></a><span class="p">}</span> +<a id="line-3446" name="line-3446"></a> +<a id="line-3447" name="line-3447"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3448" name="line-3448"></a><span class="nf">eom_window_cmd_move_to_trash</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3449" name="line-3449"></a><span class="p">{</span> +<a id="line-3450" name="line-3450"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">images</span><span class="p">;</span> +<a id="line-3451" name="line-3451"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-3452" name="line-3452"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3453" name="line-3453"></a><span class="w"> </span><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span> +<a id="line-3454" name="line-3454"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span> +<a id="line-3455" name="line-3455"></a><span class="hll"><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'img' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'img' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-3456" name="line-3456"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-3457" name="line-3457"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">response</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'response' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'response' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-3458" name="line-3458"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-3459" name="line-3459"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="p">;</span> +<a id="line-3460" name="line-3460"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">can_trash</span><span class="p">;</span> +<a id="line-3461" name="line-3461"></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">action_name</span><span class="p">;</span> +<a id="line-3462" name="line-3462"></a> +<a id="line-3463" name="line-3463"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3464" name="line-3464"></a> +<a id="line-3465" name="line-3465"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-3466" name="line-3466"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3467" name="line-3467"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">;</span> +<a id="line-3468" name="line-3468"></a> +<a id="line-3469" name="line-3469"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_n_selected</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-3470" name="line-3470"></a> +<a id="line-3471" name="line-3471"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-3472" name="line-3472"></a> +<a id="line-3473" name="line-3473"></a><span class="w"> </span><span class="cm">/* save position of selected image after the deletion */</span> +<a id="line-3474" name="line-3474"></a><span class="w"> </span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_view_get_selected_images</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-3475" name="line-3475"></a> +<a id="line-3476" name="line-3476"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3477" name="line-3477"></a> +<a id="line-3478" name="line-3478"></a><span class="w"> </span><span class="cm">/* HACK: eom_list_store_get_n_selected return list in reverse order */</span> +<a id="line-3479" name="line-3479"></a><span class="w"> </span><span class="n">images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">);</span> +<a id="line-3480" name="line-3480"></a> +<a id="line-3481" name="line-3481"></a><span class="w"> </span><span class="n">can_trash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_all_images_trasheable</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">);</span> +<a id="line-3482" name="line-3482"></a> +<a id="line-3483" name="line-3483"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3484" name="line-3484"></a><span class="w"> </span><span class="n">action_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">);</span> +<a id="line-3485" name="line-3485"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3486" name="line-3486"></a> +<a id="line-3487" name="line-3487"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_strcasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="s">"Delete"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-3488" name="line-3488"></a><span class="w"> </span><span class="n">can_trash</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3489" name="line-3489"></a><span class="w"> </span><span class="n">response</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">show_move_to_trash_confirm_dialog</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">images</span><span class="p">,</span><span class="w"> </span><span class="n">can_trash</span><span class="p">);</span> +<a id="line-3490" name="line-3490"></a> +<a id="line-3491" name="line-3491"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-3492" name="line-3492"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3493" name="line-3493"></a> +<a id="line-3494" name="line-3494"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_pos_by_image</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="o">-></span><span class="n">data</span><span class="p">));</span> +<a id="line-3495" name="line-3495"></a> +<a id="line-3496" name="line-3496"></a><span class="w"> </span><span class="cm">/* FIXME: make a nice progress dialog */</span> +<a id="line-3497" name="line-3497"></a><span class="w"> </span><span class="cm">/* Do the work actually. First try to delete the image from the disk. If this</span> +<a id="line-3498" name="line-3498"></a><span class="cm"> * is successful, remove it from the screen. Otherwise show error dialog.</span> +<a id="line-3499" name="line-3499"></a><span class="cm"> */</span> +<a id="line-3500" name="line-3500"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">images</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3501" name="line-3501"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-3502" name="line-3502"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-3503" name="line-3503"></a> +<a id="line-3504" name="line-3504"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-3505" name="line-3505"></a> +<a id="line-3506" name="line-3506"></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">move_to_trash_real</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-3507" name="line-3507"></a> +<a id="line-3508" name="line-3508"></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> +<a id="line-3509" name="line-3509"></a><span class="w"> </span><span class="n">eom_list_store_remove_image</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-3510" name="line-3510"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3511" name="line-3511"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">header</span><span class="p">;</span> +<a id="line-3512" name="line-3512"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">;</span> +<a id="line-3513" name="line-3513"></a> +<a id="line-3514" name="line-3514"></a><span class="w"> </span><span class="n">header</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Error on deleting image %s"</span><span class="p">),</span> +<a id="line-3515" name="line-3515"></a><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">));</span> +<a id="line-3516" name="line-3516"></a> +<a id="line-3517" name="line-3517"></a><span class="w"> </span><span class="n">dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_message_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-3518" name="line-3518"></a><span class="w"> </span><span class="n">GTK_DIALOG_MODAL</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GTK_DIALOG_DESTROY_WITH_PARENT</span><span class="p">,</span> +<a id="line-3519" name="line-3519"></a><span class="w"> </span><span class="n">GTK_MESSAGE_ERROR</span><span class="p">,</span> +<a id="line-3520" name="line-3520"></a><span class="w"> </span><span class="n">GTK_BUTTONS_OK</span><span class="p">,</span> +<a id="line-3521" name="line-3521"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">header</span><span class="p">);</span> +<a id="line-3522" name="line-3522"></a> +<a id="line-3523" name="line-3523"></a><span class="w"> </span><span class="n">gtk_message_dialog_format_secondary_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MESSAGE_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-3524" name="line-3524"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-3525" name="line-3525"></a> +<a id="line-3526" name="line-3526"></a><span class="w"> </span><span class="n">gtk_dialog_run</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-3527" name="line-3527"></a> +<a id="line-3528" name="line-3528"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-3529" name="line-3529"></a> +<a id="line-3530" name="line-3530"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">header</span><span class="p">);</span> +<a id="line-3531" name="line-3531"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3532" name="line-3532"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3533" name="line-3533"></a> +<a id="line-3534" name="line-3534"></a><span class="w"> </span><span class="cm">/* free list */</span> +<a id="line-3535" name="line-3535"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">images</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-3536" name="line-3536"></a> +<a id="line-3537" name="line-3537"></a><span class="w"> </span><span class="cm">/* select image at previously saved position */</span> +<a id="line-3538" name="line-3538"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">pos</span><span class="p">,</span><span class="w"> </span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-3539" name="line-3539"></a> +<a id="line-3540" name="line-3540"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pos</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3541" name="line-3541"></a><span class="w"> </span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_image_by_pos</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">pos</span><span class="p">);</span> +<a id="line-3542" name="line-3542"></a> +<a id="line-3543" name="line-3543"></a><span class="w"> </span><span class="n">eom_thumb_view_set_current_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-3544" name="line-3544"></a><span class="w"> </span><span class="n">img</span><span class="p">,</span> +<a id="line-3545" name="line-3545"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-3546" name="line-3546"></a> +<a id="line-3547" name="line-3547"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3548" name="line-3548"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-3549" name="line-3549"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3550" name="line-3550"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3551" name="line-3551"></a><span class="p">}</span> +<a id="line-3552" name="line-3552"></a> +<a id="line-3553" name="line-3553"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3554" name="line-3554"></a><span class="nf">eom_window_cmd_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3555" name="line-3555"></a><span class="p">{</span> +<a id="line-3556" name="line-3556"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-3557" name="line-3557"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">fullscreen</span><span class="p">;</span> +<a id="line-3558" name="line-3558"></a> +<a id="line-3559" name="line-3559"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3560" name="line-3560"></a> +<a id="line-3561" name="line-3561"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3562" name="line-3562"></a> +<a id="line-3563" name="line-3563"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-3564" name="line-3564"></a> +<a id="line-3565" name="line-3565"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3566" name="line-3566"></a><span class="w"> </span><span class="n">fullscreen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_action_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">));</span> +<a id="line-3567" name="line-3567"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3568" name="line-3568"></a> +<a id="line-3569" name="line-3569"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fullscreen</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3570" name="line-3570"></a><span class="w"> </span><span class="n">eom_window_run_fullscreen</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> +<a id="line-3571" name="line-3571"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3572" name="line-3572"></a><span class="w"> </span><span class="n">eom_window_stop_fullscreen</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> +<a id="line-3573" name="line-3573"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3574" name="line-3574"></a><span class="p">}</span> +<a id="line-3575" name="line-3575"></a> +<a id="line-3576" name="line-3576"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3577" name="line-3577"></a><span class="nf">eom_window_cmd_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3578" name="line-3578"></a><span class="p">{</span> +<a id="line-3579" name="line-3579"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-3580" name="line-3580"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow</span><span class="p">;</span> +<a id="line-3581" name="line-3581"></a> +<a id="line-3582" name="line-3582"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3583" name="line-3583"></a> +<a id="line-3584" name="line-3584"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3585" name="line-3585"></a> +<a id="line-3586" name="line-3586"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-3587" name="line-3587"></a> +<a id="line-3588" name="line-3588"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3589" name="line-3589"></a><span class="w"> </span><span class="n">slideshow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_action_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">));</span> +<a id="line-3590" name="line-3590"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3591" name="line-3591"></a> +<a id="line-3592" name="line-3592"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slideshow</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3593" name="line-3593"></a><span class="w"> </span><span class="n">eom_window_run_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-3594" name="line-3594"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-3595" name="line-3595"></a><span class="w"> </span><span class="n">eom_window_stop_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-3596" name="line-3596"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3597" name="line-3597"></a><span class="p">}</span> +<a id="line-3598" name="line-3598"></a> +<a id="line-3599" name="line-3599"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3600" name="line-3600"></a><span class="nf">eom_window_cmd_pause_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3601" name="line-3601"></a><span class="p">{</span> +<a id="line-3602" name="line-3602"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-3603" name="line-3603"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow</span><span class="p">;</span> +<a id="line-3604" name="line-3604"></a> +<a id="line-3605" name="line-3605"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3606" name="line-3606"></a> +<a id="line-3607" name="line-3607"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3608" name="line-3608"></a> +<a id="line-3609" name="line-3609"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-3610" name="line-3610"></a> +<a id="line-3611" name="line-3611"></a><span class="w"> </span><span class="n">slideshow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">;</span> +<a id="line-3612" name="line-3612"></a> +<a id="line-3613" name="line-3613"></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">slideshow</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="p">)</span> +<a id="line-3614" name="line-3614"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-3615" name="line-3615"></a> +<a id="line-3616" name="line-3616"></a><span class="w"> </span><span class="n">eom_window_run_fullscreen</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="n">slideshow</span><span class="p">);</span> +<a id="line-3617" name="line-3617"></a><span class="p">}</span> +<a id="line-3618" name="line-3618"></a> +<a id="line-3619" name="line-3619"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3620" name="line-3620"></a><span class="nf">eom_window_cmd_zoom_in</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3621" name="line-3621"></a><span class="p">{</span> +<a id="line-3622" name="line-3622"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3623" name="line-3623"></a> +<a id="line-3624" name="line-3624"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3625" name="line-3625"></a> +<a id="line-3626" name="line-3626"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3627" name="line-3627"></a> +<a id="line-3628" name="line-3628"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3629" name="line-3629"></a> +<a id="line-3630" name="line-3630"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3631" name="line-3631"></a><span class="w"> </span><span class="n">eom_scroll_view_zoom_in</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-3632" name="line-3632"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3633" name="line-3633"></a><span class="p">}</span> +<a id="line-3634" name="line-3634"></a> +<a id="line-3635" name="line-3635"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3636" name="line-3636"></a><span class="nf">eom_window_cmd_zoom_out</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3637" name="line-3637"></a><span class="p">{</span> +<a id="line-3638" name="line-3638"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3639" name="line-3639"></a> +<a id="line-3640" name="line-3640"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3641" name="line-3641"></a> +<a id="line-3642" name="line-3642"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3643" name="line-3643"></a> +<a id="line-3644" name="line-3644"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3645" name="line-3645"></a> +<a id="line-3646" name="line-3646"></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">-></span><span class="n">view</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3647" name="line-3647"></a><span class="w"> </span><span class="n">eom_scroll_view_zoom_out</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-3648" name="line-3648"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3649" name="line-3649"></a><span class="p">}</span> +<a id="line-3650" name="line-3650"></a> +<a id="line-3651" name="line-3651"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3652" name="line-3652"></a><span class="nf">eom_window_cmd_zoom_normal</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3653" name="line-3653"></a><span class="p">{</span> +<a id="line-3654" name="line-3654"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3655" name="line-3655"></a> +<a id="line-3656" name="line-3656"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3657" name="line-3657"></a> +<a id="line-3658" name="line-3658"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3659" name="line-3659"></a> +<a id="line-3660" name="line-3660"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3661" name="line-3661"></a> +<a id="line-3662" name="line-3662"></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">-></span><span class="n">view</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3663" name="line-3663"></a><span class="w"> </span><span class="n">eom_scroll_view_set_zoom</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span> +<a id="line-3664" name="line-3664"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3665" name="line-3665"></a><span class="p">}</span> +<a id="line-3666" name="line-3666"></a> +<a id="line-3667" name="line-3667"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3668" name="line-3668"></a><span class="nf">eom_window_cmd_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3669" name="line-3669"></a><span class="p">{</span> +<a id="line-3670" name="line-3670"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3671" name="line-3671"></a> +<a id="line-3672" name="line-3672"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3673" name="line-3673"></a> +<a id="line-3674" name="line-3674"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3675" name="line-3675"></a> +<a id="line-3676" name="line-3676"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3677" name="line-3677"></a> +<a id="line-3678" name="line-3678"></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">-></span><span class="n">view</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3679" name="line-3679"></a><span class="w"> </span><span class="n">eom_scroll_view_zoom_fit</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">));</span> +<a id="line-3680" name="line-3680"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3681" name="line-3681"></a><span class="p">}</span> +<a id="line-3682" name="line-3682"></a> +<a id="line-3683" name="line-3683"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3684" name="line-3684"></a><span class="nf">eom_window_cmd_go_prev</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3685" name="line-3685"></a><span class="p">{</span> +<a id="line-3686" name="line-3686"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3687" name="line-3687"></a> +<a id="line-3688" name="line-3688"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3689" name="line-3689"></a> +<a id="line-3690" name="line-3690"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3691" name="line-3691"></a> +<a id="line-3692" name="line-3692"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3693" name="line-3693"></a> +<a id="line-3694" name="line-3694"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-3695" name="line-3695"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_LEFT</span><span class="p">);</span> +<a id="line-3696" name="line-3696"></a><span class="p">}</span> +<a id="line-3697" name="line-3697"></a> +<a id="line-3698" name="line-3698"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3699" name="line-3699"></a><span class="nf">eom_window_cmd_go_next</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3700" name="line-3700"></a><span class="p">{</span> +<a id="line-3701" name="line-3701"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3702" name="line-3702"></a> +<a id="line-3703" name="line-3703"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3704" name="line-3704"></a> +<a id="line-3705" name="line-3705"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3706" name="line-3706"></a> +<a id="line-3707" name="line-3707"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3708" name="line-3708"></a> +<a id="line-3709" name="line-3709"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-3710" name="line-3710"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_RIGHT</span><span class="p">);</span> +<a id="line-3711" name="line-3711"></a><span class="p">}</span> +<a id="line-3712" name="line-3712"></a> +<a id="line-3713" name="line-3713"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3714" name="line-3714"></a><span class="nf">eom_window_cmd_go_first</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3715" name="line-3715"></a><span class="p">{</span> +<a id="line-3716" name="line-3716"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3717" name="line-3717"></a> +<a id="line-3718" name="line-3718"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3719" name="line-3719"></a> +<a id="line-3720" name="line-3720"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3721" name="line-3721"></a> +<a id="line-3722" name="line-3722"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3723" name="line-3723"></a> +<a id="line-3724" name="line-3724"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-3725" name="line-3725"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_FIRST</span><span class="p">);</span> +<a id="line-3726" name="line-3726"></a><span class="p">}</span> +<a id="line-3727" name="line-3727"></a> +<a id="line-3728" name="line-3728"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3729" name="line-3729"></a><span class="nf">eom_window_cmd_go_last</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3730" name="line-3730"></a><span class="p">{</span> +<a id="line-3731" name="line-3731"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3732" name="line-3732"></a> +<a id="line-3733" name="line-3733"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3734" name="line-3734"></a> +<a id="line-3735" name="line-3735"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3736" name="line-3736"></a> +<a id="line-3737" name="line-3737"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3738" name="line-3738"></a> +<a id="line-3739" name="line-3739"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-3740" name="line-3740"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_LAST</span><span class="p">);</span> +<a id="line-3741" name="line-3741"></a><span class="p">}</span> +<a id="line-3742" name="line-3742"></a> +<a id="line-3743" name="line-3743"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3744" name="line-3744"></a><span class="nf">eom_window_cmd_go_random</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-3745" name="line-3745"></a><span class="p">{</span> +<a id="line-3746" name="line-3746"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-3747" name="line-3747"></a> +<a id="line-3748" name="line-3748"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">));</span> +<a id="line-3749" name="line-3749"></a> +<a id="line-3750" name="line-3750"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-3751" name="line-3751"></a> +<a id="line-3752" name="line-3752"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-3753" name="line-3753"></a> +<a id="line-3754" name="line-3754"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-3755" name="line-3755"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_RANDOM</span><span class="p">);</span> +<a id="line-3756" name="line-3756"></a><span class="p">}</span> +<a id="line-3757" name="line-3757"></a> +<a id="line-3758" name="line-3758"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkActionEntry</span><span class="w"> </span><span class="n">action_entries_window</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-3759" name="line-3759"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"Image"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Image"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">},</span> +<a id="line-3760" name="line-3760"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"Edit"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Edit"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">},</span> +<a id="line-3761" name="line-3761"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"View"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_View"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">},</span> +<a id="line-3762" name="line-3762"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"Go"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Go"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">},</span> +<a id="line-3763" name="line-3763"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"Tools"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Tools"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">},</span> +<a id="line-3764" name="line-3764"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"Help"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Help"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">},</span> +<a id="line-3765" name="line-3765"></a> +<a id="line-3766" name="line-3766"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImageOpen"</span><span class="p">,</span><span class="w"> </span><span class="s">"document-open"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Open…"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>O"</span><span class="p">,</span> +<a id="line-3767" name="line-3767"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Open a file"</span><span class="p">),</span> +<a id="line-3768" name="line-3768"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_file_open</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3769" name="line-3769"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImageClose"</span><span class="p">,</span><span class="w"> </span><span class="s">"window-close"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Close"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>W"</span><span class="p">,</span> +<a id="line-3770" name="line-3770"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Close window"</span><span class="p">),</span> +<a id="line-3771" name="line-3771"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_close_window</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3772" name="line-3772"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditToolbar"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"T_oolbar"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3773" name="line-3773"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Edit the application toolbar"</span><span class="p">),</span> +<a id="line-3774" name="line-3774"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_edit_toolbar</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3775" name="line-3775"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditPreferences"</span><span class="p">,</span><span class="w"> </span><span class="s">"preferences-desktop"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Prefere_nces"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3776" name="line-3776"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Preferences for Eye of MATE"</span><span class="p">),</span> +<a id="line-3777" name="line-3777"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_preferences</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3778" name="line-3778"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"HelpManual"</span><span class="p">,</span><span class="w"> </span><span class="s">"help-browser"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Contents"</span><span class="p">),</span><span class="w"> </span><span class="s">"F1"</span><span class="p">,</span> +<a id="line-3779" name="line-3779"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Help on this application"</span><span class="p">),</span> +<a id="line-3780" name="line-3780"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_help</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3781" name="line-3781"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"HelpAbout"</span><span class="p">,</span><span class="w"> </span><span class="s">"help-about"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_About"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3782" name="line-3782"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"About this application"</span><span class="p">),</span> +<a id="line-3783" name="line-3783"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_about</span><span class="p">)</span><span class="w"> </span><span class="p">}</span> +<a id="line-3784" name="line-3784"></a><span class="p">};</span> +<a id="line-3785" name="line-3785"></a> +<a id="line-3786" name="line-3786"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkToggleActionEntry</span><span class="w"> </span><span class="n">toggle_entries_window</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-3787" name="line-3787"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewToolbar"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Toolbar"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3788" name="line-3788"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Changes the visibility of the toolbar in the current window"</span><span class="p">),</span> +<a id="line-3789" name="line-3789"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_show_hide_bar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="p">},</span> +<a id="line-3790" name="line-3790"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewStatusbar"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Statusbar"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3791" name="line-3791"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Changes the visibility of the statusbar in the current window"</span><span class="p">),</span> +<a id="line-3792" name="line-3792"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_show_hide_bar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="p">},</span> +<a id="line-3793" name="line-3793"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewImageCollection"</span><span class="p">,</span><span class="w"> </span><span class="s">"eom-image-collection"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Image Collection"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>F9"</span><span class="p">,</span> +<a id="line-3794" name="line-3794"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Changes the visibility of the image collection pane in the current window"</span><span class="p">),</span> +<a id="line-3795" name="line-3795"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_show_hide_bar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="p">},</span> +<a id="line-3796" name="line-3796"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewSidebar"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Side _Pane"</span><span class="p">),</span><span class="w"> </span><span class="s">"F9"</span><span class="p">,</span> +<a id="line-3797" name="line-3797"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Changes the visibility of the side pane in the current window"</span><span class="p">),</span> +<a id="line-3798" name="line-3798"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_show_hide_bar</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="p">},</span> +<a id="line-3799" name="line-3799"></a><span class="p">};</span> +<a id="line-3800" name="line-3800"></a> +<a id="line-3801" name="line-3801"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkActionEntry</span><span class="w"> </span><span class="n">action_entries_image</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-3802" name="line-3802"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImageSave"</span><span class="p">,</span><span class="w"> </span><span class="s">"document-save"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Save"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>s"</span><span class="p">,</span> +<a id="line-3803" name="line-3803"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Save changes in currently selected images"</span><span class="p">),</span> +<a id="line-3804" name="line-3804"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_save</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3805" name="line-3805"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImageOpenWith"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Open _with"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3806" name="line-3806"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Open the selected image with a different application"</span><span class="p">),</span> +<a id="line-3807" name="line-3807"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-3808" name="line-3808"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImageSaveAs"</span><span class="p">,</span><span class="w"> </span><span class="s">"document-save-as"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Save _As…"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control><shift>s"</span><span class="p">,</span> +<a id="line-3809" name="line-3809"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Save the selected images with a different name"</span><span class="p">),</span> +<a id="line-3810" name="line-3810"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_save_as</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3811" name="line-3811"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImageOpenContainingFolder"</span><span class="p">,</span><span class="w"> </span><span class="s">"folder"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Open Containing _Folder"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3812" name="line-3812"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Show the folder which contains this file in the file manager"</span><span class="p">),</span> +<a id="line-3813" name="line-3813"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_open_containing_folder</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3814" name="line-3814"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImagePrint"</span><span class="p">,</span><span class="w"> </span><span class="s">"document-print"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Print…"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>p"</span><span class="p">,</span> +<a id="line-3815" name="line-3815"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Print the selected image"</span><span class="p">),</span> +<a id="line-3816" name="line-3816"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_print</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3817" name="line-3817"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImageProperties"</span><span class="p">,</span><span class="w"> </span><span class="s">"document-properties"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Prope_rties"</span><span class="p">),</span><span class="w"> </span><span class="s">"<alt>Return"</span><span class="p">,</span> +<a id="line-3818" name="line-3818"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Show the properties and metadata of the selected image"</span><span class="p">),</span> +<a id="line-3819" name="line-3819"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_properties</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3820" name="line-3820"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditUndo"</span><span class="p">,</span><span class="w"> </span><span class="s">"edit-undo"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Undo"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>z"</span><span class="p">,</span> +<a id="line-3821" name="line-3821"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Undo the last change in the image"</span><span class="p">),</span> +<a id="line-3822" name="line-3822"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_undo</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3823" name="line-3823"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditFlipHorizontal"</span><span class="p">,</span><span class="w"> </span><span class="s">"object-flip-horizontal"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Flip _Horizontal"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3824" name="line-3824"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Mirror the image horizontally"</span><span class="p">),</span> +<a id="line-3825" name="line-3825"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_flip_horizontal</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3826" name="line-3826"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditFlipVertical"</span><span class="p">,</span><span class="w"> </span><span class="s">"object-flip-vertical"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Flip _Vertical"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3827" name="line-3827"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Mirror the image vertically"</span><span class="p">),</span> +<a id="line-3828" name="line-3828"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_flip_vertical</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3829" name="line-3829"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditRotate90"</span><span class="p">,</span><span class="w"> </span><span class="s">"object-rotate-right"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Rotate Clockwise"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>r"</span><span class="p">,</span> +<a id="line-3830" name="line-3830"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Rotate the image 90 degrees to the right"</span><span class="p">),</span> +<a id="line-3831" name="line-3831"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_rotate_90</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3832" name="line-3832"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditRotate270"</span><span class="p">,</span><span class="w"> </span><span class="s">"object-rotate-left"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Rotate Counterc_lockwise"</span><span class="p">),</span><span class="w"> </span><span class="s">"<ctrl><shift>r"</span><span class="p">,</span> +<a id="line-3833" name="line-3833"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Rotate the image 90 degrees to the left"</span><span class="p">),</span> +<a id="line-3834" name="line-3834"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_rotate_270</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3835" name="line-3835"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ImageSetAsWallpaper"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Set as _Desktop Background"</span><span class="p">),</span> +<a id="line-3836" name="line-3836"></a><span class="w"> </span><span class="s">"<control>F8"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Set the selected image as the desktop background"</span><span class="p">),</span> +<a id="line-3837" name="line-3837"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_wallpaper</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3838" name="line-3838"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditMoveToTrash"</span><span class="p">,</span><span class="w"> </span><span class="s">"user-trash"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Move to _Trash"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3839" name="line-3839"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Move the selected image to the trash folder"</span><span class="p">),</span> +<a id="line-3840" name="line-3840"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_move_to_trash</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3841" name="line-3841"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"EditCopyImage"</span><span class="p">,</span><span class="w"> </span><span class="s">"edit-copy"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Copy"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>C"</span><span class="p">,</span> +<a id="line-3842" name="line-3842"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Copy the selected image to the clipboard"</span><span class="p">),</span> +<a id="line-3843" name="line-3843"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_copy_image</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3844" name="line-3844"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewZoomIn"</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom-in"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Zoom In"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>plus"</span><span class="p">,</span> +<a id="line-3845" name="line-3845"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Enlarge the image"</span><span class="p">),</span> +<a id="line-3846" name="line-3846"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_zoom_in</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3847" name="line-3847"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewZoomOut"</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom-out"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Zoom _Out"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>minus"</span><span class="p">,</span> +<a id="line-3848" name="line-3848"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Shrink the image"</span><span class="p">),</span> +<a id="line-3849" name="line-3849"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_zoom_out</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3850" name="line-3850"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewZoomNormal"</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom-original"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Normal Size"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>0"</span><span class="p">,</span> +<a id="line-3851" name="line-3851"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Show the image at its normal size"</span><span class="p">),</span> +<a id="line-3852" name="line-3852"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_zoom_normal</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3853" name="line-3853"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewZoomFit"</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom-fit-best"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Best Fit"</span><span class="p">),</span><span class="w"> </span><span class="s">"F"</span><span class="p">,</span> +<a id="line-3854" name="line-3854"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Fit the image to the window"</span><span class="p">),</span> +<a id="line-3855" name="line-3855"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_zoom_fit</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3856" name="line-3856"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ControlEqual"</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom-in"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Zoom In"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>equal"</span><span class="p">,</span> +<a id="line-3857" name="line-3857"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Enlarge the image"</span><span class="p">),</span> +<a id="line-3858" name="line-3858"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_zoom_in</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3859" name="line-3859"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ControlKpAdd"</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom-in"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Zoom In"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>KP_Add"</span><span class="p">,</span> +<a id="line-3860" name="line-3860"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Shrink the image"</span><span class="p">),</span> +<a id="line-3861" name="line-3861"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_zoom_in</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3862" name="line-3862"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ControlKpSub"</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom-out"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Zoom _Out"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>KP_Subtract"</span><span class="p">,</span> +<a id="line-3863" name="line-3863"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Shrink the image"</span><span class="p">),</span> +<a id="line-3864" name="line-3864"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_zoom_out</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3865" name="line-3865"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"Delete"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Move to _Trash"</span><span class="p">),</span><span class="w"> </span><span class="s">"Delete"</span><span class="p">,</span> +<a id="line-3866" name="line-3866"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3867" name="line-3867"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_move_to_trash</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3868" name="line-3868"></a><span class="p">};</span> +<a id="line-3869" name="line-3869"></a> +<a id="line-3870" name="line-3870"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkToggleActionEntry</span><span class="w"> </span><span class="n">toggle_entries_image</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-3871" name="line-3871"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewFullscreen"</span><span class="p">,</span><span class="w"> </span><span class="s">"view-fullscreen"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Fullscreen"</span><span class="p">),</span><span class="w"> </span><span class="s">"F11"</span><span class="p">,</span> +<a id="line-3872" name="line-3872"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Show the current image in fullscreen mode"</span><span class="p">),</span> +<a id="line-3873" name="line-3873"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_fullscreen</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="w"> </span><span class="p">},</span> +<a id="line-3874" name="line-3874"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"PauseSlideshow"</span><span class="p">,</span><span class="w"> </span><span class="s">"media-playback-pause"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Pause Slideshow"</span><span class="p">),</span> +<a id="line-3875" name="line-3875"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Pause or resume the slideshow"</span><span class="p">),</span> +<a id="line-3876" name="line-3876"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_pause_slideshow</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="w"> </span><span class="p">},</span> +<a id="line-3877" name="line-3877"></a><span class="p">};</span> +<a id="line-3878" name="line-3878"></a> +<a id="line-3879" name="line-3879"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkActionEntry</span><span class="w"> </span><span class="n">action_entries_collection</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-3880" name="line-3880"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"GoPrevious"</span><span class="p">,</span><span class="w"> </span><span class="s">"go-previous"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Previous Image"</span><span class="p">),</span><span class="w"> </span><span class="s">"<Alt>Left"</span><span class="p">,</span> +<a id="line-3881" name="line-3881"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Go to the previous image of the collection"</span><span class="p">),</span> +<a id="line-3882" name="line-3882"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_go_prev</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3883" name="line-3883"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"GoNext"</span><span class="p">,</span><span class="w"> </span><span class="s">"go-next"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Next Image"</span><span class="p">),</span><span class="w"> </span><span class="s">"<Alt>Right"</span><span class="p">,</span> +<a id="line-3884" name="line-3884"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Go to the next image of the collection"</span><span class="p">),</span> +<a id="line-3885" name="line-3885"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_go_next</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3886" name="line-3886"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"GoFirst"</span><span class="p">,</span><span class="w"> </span><span class="s">"go-first"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_First Image"</span><span class="p">),</span><span class="w"> </span><span class="s">"<Alt>Home"</span><span class="p">,</span> +<a id="line-3887" name="line-3887"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Go to the first image of the collection"</span><span class="p">),</span> +<a id="line-3888" name="line-3888"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_go_first</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3889" name="line-3889"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"GoLast"</span><span class="p">,</span><span class="w"> </span><span class="s">"go-last"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Last Image"</span><span class="p">),</span><span class="w"> </span><span class="s">"<Alt>End"</span><span class="p">,</span> +<a id="line-3890" name="line-3890"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Go to the last image of the collection"</span><span class="p">),</span> +<a id="line-3891" name="line-3891"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_go_last</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3892" name="line-3892"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"GoRandom"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Random Image"</span><span class="p">),</span><span class="w"> </span><span class="s">"<control>M"</span><span class="p">,</span> +<a id="line-3893" name="line-3893"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Go to a random image of the collection"</span><span class="p">),</span> +<a id="line-3894" name="line-3894"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_go_random</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3895" name="line-3895"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"BackSpace"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Previous Image"</span><span class="p">),</span><span class="w"> </span><span class="s">"BackSpace"</span><span class="p">,</span> +<a id="line-3896" name="line-3896"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3897" name="line-3897"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_go_prev</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3898" name="line-3898"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"Home"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_First Image"</span><span class="p">),</span><span class="w"> </span><span class="s">"Home"</span><span class="p">,</span> +<a id="line-3899" name="line-3899"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3900" name="line-3900"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_go_first</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3901" name="line-3901"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"End"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"_Last Image"</span><span class="p">),</span><span class="w"> </span><span class="s">"End"</span><span class="p">,</span> +<a id="line-3902" name="line-3902"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-3903" name="line-3903"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_go_last</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-3904" name="line-3904"></a><span class="p">};</span> +<a id="line-3905" name="line-3905"></a> +<a id="line-3906" name="line-3906"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkToggleActionEntry</span><span class="w"> </span><span class="n">toggle_entries_collection</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-3907" name="line-3907"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"ViewSlideshow"</span><span class="p">,</span><span class="w"> </span><span class="s">"slideshow-play"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"S_lideshow"</span><span class="p">),</span><span class="w"> </span><span class="s">"F5"</span><span class="p">,</span> +<a id="line-3908" name="line-3908"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Start a slideshow view of the images"</span><span class="p">),</span> +<a id="line-3909" name="line-3909"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_cmd_slideshow</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="w"> </span><span class="p">},</span> +<a id="line-3910" name="line-3910"></a><span class="p">};</span> +<a id="line-3911" name="line-3911"></a> +<a id="line-3912" name="line-3912"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3913" name="line-3913"></a><span class="nf">menu_item_select_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-3914" name="line-3914"></a><span class="p">{</span> +<a id="line-3915" name="line-3915"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-3916" name="line-3916"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span> +<a id="line-3917" name="line-3917"></a> +<a id="line-3918" name="line-3918"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3919" name="line-3919"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_activatable_get_related_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACTIVATABLE</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">));</span> +<a id="line-3920" name="line-3920"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3921" name="line-3921"></a> +<a id="line-3922" name="line-3922"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3923" name="line-3923"></a> +<a id="line-3924" name="line-3924"></a><span class="w"> </span><span class="n">g_object_get</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">action</span><span class="p">),</span><span class="w"> </span><span class="s">"tooltip"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">message</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3925" name="line-3925"></a> +<a id="line-3926" name="line-3926"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">message</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-3927" name="line-3927"></a><span class="w"> </span><span class="n">gtk_statusbar_push</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-3928" name="line-3928"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tip_message_cid</span><span class="p">,</span><span class="w"> </span><span class="n">message</span><span class="p">);</span> +<a id="line-3929" name="line-3929"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">message</span><span class="p">);</span> +<a id="line-3930" name="line-3930"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3931" name="line-3931"></a><span class="p">}</span> +<a id="line-3932" name="line-3932"></a> +<a id="line-3933" name="line-3933"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3934" name="line-3934"></a><span class="nf">menu_item_deselect_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-3935" name="line-3935"></a><span class="p">{</span> +<a id="line-3936" name="line-3936"></a><span class="w"> </span><span class="n">gtk_statusbar_pop</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-3937" name="line-3937"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tip_message_cid</span><span class="p">);</span> +<a id="line-3938" name="line-3938"></a><span class="p">}</span> +<a id="line-3939" name="line-3939"></a> +<a id="line-3940" name="line-3940"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3941" name="line-3941"></a><span class="nf">connect_proxy_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span> +<a id="line-3942" name="line-3942"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-3943" name="line-3943"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">proxy</span><span class="p">,</span> +<a id="line-3944" name="line-3944"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-3945" name="line-3945"></a><span class="p">{</span> +<a id="line-3946" name="line-3946"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-3947" name="line-3947"></a><span class="w"> </span><span class="n">disconnect_proxy_cb</span><span class="w"> </span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3948" name="line-3948"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="s">"select"</span><span class="p">,</span> +<a id="line-3949" name="line-3949"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item_select_cb</span><span class="p">),</span> +<a id="line-3950" name="line-3950"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3951" name="line-3951"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span><span class="w"> </span><span class="s">"deselect"</span><span class="p">,</span> +<a id="line-3952" name="line-3952"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item_deselect_cb</span><span class="p">),</span> +<a id="line-3953" name="line-3953"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3954" name="line-3954"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3955" name="line-3955"></a><span class="p">}</span> +<a id="line-3956" name="line-3956"></a> +<a id="line-3957" name="line-3957"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3958" name="line-3958"></a><span class="nf">disconnect_proxy_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span> +<a id="line-3959" name="line-3959"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-3960" name="line-3960"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">proxy</span><span class="p">,</span> +<a id="line-3961" name="line-3961"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-3962" name="line-3962"></a><span class="p">{</span> +<a id="line-3963" name="line-3963"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-3964" name="line-3964"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span> +<a id="line-3965" name="line-3965"></a><span class="w"> </span><span class="n">menu_item_select_cb</span><span class="p">,</span> +<a id="line-3966" name="line-3966"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3967" name="line-3967"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">proxy</span><span class="p">,</span> +<a id="line-3968" name="line-3968"></a><span class="w"> </span><span class="n">menu_item_deselect_cb</span><span class="p">,</span> +<a id="line-3969" name="line-3969"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-3970" name="line-3970"></a><span class="w"> </span><span class="p">}</span> +<a id="line-3971" name="line-3971"></a><span class="p">}</span> +<a id="line-3972" name="line-3972"></a> +<a id="line-3973" name="line-3973"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-3974" name="line-3974"></a><span class="nf">set_action_properties</span><span class="w"> </span><span class="p">(</span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">window_group</span><span class="p">,</span> +<a id="line-3975" name="line-3975"></a><span class="w"> </span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">image_group</span><span class="p">,</span> +<a id="line-3976" name="line-3976"></a><span class="w"> </span><span class="n">GtkActionGroup</span><span class="w"> </span><span class="o">*</span><span class="n">collection_group</span><span class="p">)</span> +<a id="line-3977" name="line-3977"></a><span class="p">{</span> +<a id="line-3978" name="line-3978"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-3979" name="line-3979"></a> +<a id="line-3980" name="line-3980"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-3981" name="line-3981"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">collection_group</span><span class="p">,</span><span class="w"> </span><span class="s">"GoPrevious"</span><span class="p">);</span> +<a id="line-3982" name="line-3982"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Previous"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3983" name="line-3983"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"is-important"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3984" name="line-3984"></a> +<a id="line-3985" name="line-3985"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">collection_group</span><span class="p">,</span><span class="w"> </span><span class="s">"GoNext"</span><span class="p">);</span> +<a id="line-3986" name="line-3986"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"_Next"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3987" name="line-3987"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"is-important"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3988" name="line-3988"></a> +<a id="line-3989" name="line-3989"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">image_group</span><span class="p">,</span><span class="w"> </span><span class="s">"EditRotate90"</span><span class="p">);</span> +<a id="line-3990" name="line-3990"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Right"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3991" name="line-3991"></a> +<a id="line-3992" name="line-3992"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">image_group</span><span class="p">,</span><span class="w"> </span><span class="s">"EditRotate270"</span><span class="p">);</span> +<a id="line-3993" name="line-3993"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Left"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3994" name="line-3994"></a> +<a id="line-3995" name="line-3995"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">image_group</span><span class="p">,</span><span class="w"> </span><span class="s">"ImageOpenContainingFolder"</span><span class="p">);</span> +<a id="line-3996" name="line-3996"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Open Folder"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-3997" name="line-3997"></a> +<a id="line-3998" name="line-3998"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">image_group</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewZoomIn"</span><span class="p">);</span> +<a id="line-3999" name="line-3999"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"In"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4000" name="line-4000"></a> +<a id="line-4001" name="line-4001"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">image_group</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewZoomOut"</span><span class="p">);</span> +<a id="line-4002" name="line-4002"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Out"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4003" name="line-4003"></a> +<a id="line-4004" name="line-4004"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">image_group</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewZoomNormal"</span><span class="p">);</span> +<a id="line-4005" name="line-4005"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Normal"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4006" name="line-4006"></a> +<a id="line-4007" name="line-4007"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">image_group</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewZoomFit"</span><span class="p">);</span> +<a id="line-4008" name="line-4008"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Fit"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4009" name="line-4009"></a> +<a id="line-4010" name="line-4010"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window_group</span><span class="p">,</span><span class="w"> </span><span class="s">"ViewImageCollection"</span><span class="p">);</span> +<a id="line-4011" name="line-4011"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Collection"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4012" name="line-4012"></a> +<a id="line-4013" name="line-4013"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">image_group</span><span class="p">,</span><span class="w"> </span><span class="s">"EditMoveToTrash"</span><span class="p">);</span> +<a id="line-4014" name="line-4014"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"short_label"</span><span class="p">,</span><span class="w"> </span><span class="n">C_</span><span class="p">(</span><span class="s">"action (to trash)"</span><span class="p">,</span><span class="w"> </span><span class="s">"Trash"</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4015" name="line-4015"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4016" name="line-4016"></a><span class="p">}</span> +<a id="line-4017" name="line-4017"></a> +<a id="line-4018" name="line-4018"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-4019" name="line-4019"></a><span class="nf">sort_recents_mru</span><span class="w"> </span><span class="p">(</span><span class="n">GtkRecentInfo</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">GtkRecentInfo</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">)</span> +<a id="line-4020" name="line-4020"></a><span class="p">{</span> +<a id="line-4021" name="line-4021"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_eom_a</span><span class="p">,</span><span class="w"> </span><span class="n">has_eom_b</span><span class="p">;</span> +<a id="line-4022" name="line-4022"></a> +<a id="line-4023" name="line-4023"></a><span class="w"> </span><span class="cm">/* We need to check this first as gtk_recent_info_get_application_info</span> +<a id="line-4024" name="line-4024"></a><span class="cm"> * will treat it as a non-fatal error when the GtkRecentInfo doesn't</span> +<a id="line-4025" name="line-4025"></a><span class="cm"> * have the application registered. */</span> +<a id="line-4026" name="line-4026"></a><span class="w"> </span><span class="n">has_eom_a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_recent_info_has_application</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span> +<a id="line-4027" name="line-4027"></a><span class="w"> </span><span class="n">EOM_RECENT_FILES_APP_NAME</span><span class="p">);</span> +<a id="line-4028" name="line-4028"></a><span class="w"> </span><span class="n">has_eom_b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_recent_info_has_application</span><span class="w"> </span><span class="p">(</span><span class="n">b</span><span class="p">,</span> +<a id="line-4029" name="line-4029"></a><span class="w"> </span><span class="n">EOM_RECENT_FILES_APP_NAME</span><span class="p">);</span> +<a id="line-4030" name="line-4030"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">has_eom_a</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">has_eom_b</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4031" name="line-4031"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">time_a</span><span class="p">,</span><span class="w"> </span><span class="n">time_b</span><span class="p">;</span> +<a id="line-4032" name="line-4032"></a> +<a id="line-4033" name="line-4033"></a><span class="w"> </span><span class="cm">/* These should not fail as we already checked that</span> +<a id="line-4034" name="line-4034"></a><span class="cm"> * the application is registered with the info objects */</span> +<a id="line-4035" name="line-4035"></a><span class="w"> </span><span class="n">gtk_recent_info_get_application_info</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span> +<a id="line-4036" name="line-4036"></a><span class="w"> </span><span class="n">EOM_RECENT_FILES_APP_NAME</span><span class="p">,</span> +<a id="line-4037" name="line-4037"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-4038" name="line-4038"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-4039" name="line-4039"></a><span class="w"> </span><span class="o">&</span><span class="n">time_a</span><span class="p">);</span> +<a id="line-4040" name="line-4040"></a><span class="w"> </span><span class="n">gtk_recent_info_get_application_info</span><span class="w"> </span><span class="p">(</span><span class="n">b</span><span class="p">,</span> +<a id="line-4041" name="line-4041"></a><span class="w"> </span><span class="n">EOM_RECENT_FILES_APP_NAME</span><span class="p">,</span> +<a id="line-4042" name="line-4042"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-4043" name="line-4043"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-4044" name="line-4044"></a><span class="w"> </span><span class="o">&</span><span class="n">time_b</span><span class="p">);</span> +<a id="line-4045" name="line-4045"></a> +<a id="line-4046" name="line-4046"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">time_b</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">time_a</span><span class="p">);</span> +<a id="line-4047" name="line-4047"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">has_eom_a</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4048" name="line-4048"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-4049" name="line-4049"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">has_eom_b</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4050" name="line-4050"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-4051" name="line-4051"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4052" name="line-4052"></a> +<a id="line-4053" name="line-4053"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-4054" name="line-4054"></a><span class="p">}</span> +<a id="line-4055" name="line-4055"></a> +<a id="line-4056" name="line-4056"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4057" name="line-4057"></a><span class="nf">eom_window_update_recent_files_menu</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4058" name="line-4058"></a><span class="p">{</span> +<a id="line-4059" name="line-4059"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-4060" name="line-4060"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">actions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4061" name="line-4061"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">count_recent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-4062" name="line-4062"></a> +<a id="line-4063" name="line-4063"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-4064" name="line-4064"></a> +<a id="line-4065" name="line-4065"></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">-></span><span class="n">recent_menu_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-4066" name="line-4066"></a><span class="w"> </span><span class="n">gtk_ui_manager_remove_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">recent_menu_id</span><span class="p">);</span> +<a id="line-4067" name="line-4067"></a> +<a id="line-4068" name="line-4068"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4069" name="line-4069"></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">gtk_action_group_list_actions</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_recent</span><span class="p">);</span> +<a id="line-4070" name="line-4070"></a> +<a id="line-4071" name="line-4071"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">actions</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4072" name="line-4072"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-></span><span class="n">data</span><span class="p">,</span> +<a id="line-4073" name="line-4073"></a><span class="w"> </span><span class="n">eom_window_open_recent_cb</span><span class="p">,</span> +<a id="line-4074" name="line-4074"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4075" name="line-4075"></a> +<a id="line-4076" name="line-4076"></a><span class="w"> </span><span class="n">gtk_action_group_remove_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_recent</span><span class="p">,</span> +<a id="line-4077" name="line-4077"></a><span class="w"> </span><span class="n">GTK_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-></span><span class="n">data</span><span class="p">));</span> +<a id="line-4078" name="line-4078"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4079" name="line-4079"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4080" name="line-4080"></a> +<a id="line-4081" name="line-4081"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">actions</span><span class="p">);</span> +<a id="line-4082" name="line-4082"></a> +<a id="line-4083" name="line-4083"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">recent_menu_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_new_merge_id</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">);</span> +<a id="line-4084" name="line-4084"></a><span class="w"> </span><span class="n">items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_recent_manager_get_items</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_recent_manager_get_default</span><span class="p">());</span> +<a id="line-4085" name="line-4085"></a><span class="w"> </span><span class="n">items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_sort</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GCompareFunc</span><span class="p">)</span><span class="w"> </span><span class="n">sort_recents_mru</span><span class="p">);</span> +<a id="line-4086" name="line-4086"></a> +<a id="line-4087" name="line-4087"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">items</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">count_recent</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">EOM_RECENT_FILES_LIMIT</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4088" name="line-4088"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_name</span><span class="p">;</span> +<a id="line-4089" name="line-4089"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-4090" name="line-4090"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">tip</span><span class="p">;</span> +<a id="line-4091" name="line-4091"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">display_name</span><span class="p">;</span> +<a id="line-4092" name="line-4092"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label_filename</span><span class="p">;</span> +<a id="line-4093" name="line-4093"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-4094" name="line-4094"></a><span class="w"> </span><span class="n">GtkRecentInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-4095" name="line-4095"></a> +<a id="line-4096" name="line-4096"></a><span class="w"> </span><span class="cm">/* Sorting moves non-EOM files to the end of the list.</span> +<a id="line-4097" name="line-4097"></a><span class="cm"> * So no file of interest will follow if this test fails */</span> +<a id="line-4098" name="line-4098"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_recent_info_has_application</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_RECENT_FILES_APP_NAME</span><span class="p">))</span> +<a id="line-4099" name="line-4099"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4100" name="line-4100"></a> +<a id="line-4101" name="line-4101"></a><span class="w"> </span><span class="n">count_recent</span><span class="o">++</span><span class="p">;</span> +<a id="line-4102" name="line-4102"></a> +<a id="line-4103" name="line-4103"></a><span class="w"> </span><span class="n">action_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"recent-info-%d"</span><span class="p">,</span><span class="w"> </span><span class="n">count_recent</span><span class="p">);</span> +<a id="line-4104" name="line-4104"></a><span class="w"> </span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_recent_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">),</span><span class="w"> </span><span class="s">"_"</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-4105" name="line-4105"></a><span class="w"> </span><span class="n">label_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strjoinv</span><span class="w"> </span><span class="p">(</span><span class="s">"__"</span><span class="p">,</span><span class="w"> </span><span class="n">display_name</span><span class="p">);</span> +<a id="line-4106" name="line-4106"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"%s_%d. %s"</span><span class="p">,</span> +<a id="line-4107" name="line-4107"></a><span class="w"> </span><span class="p">(</span><span class="n">is_rtl</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"</span><span class="se">\xE2\x80\x8F</span><span class="s">"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">""</span><span class="p">),</span><span class="w"> </span><span class="n">count_recent</span><span class="p">,</span><span class="w"> </span><span class="n">label_filename</span><span class="p">);</span> +<a id="line-4108" name="line-4108"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">label_filename</span><span class="p">);</span> +<a id="line-4109" name="line-4109"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">display_name</span><span class="p">);</span> +<a id="line-4110" name="line-4110"></a> +<a id="line-4111" name="line-4111"></a><span class="w"> </span><span class="n">tip</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_recent_info_get_uri_display</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span> +<a id="line-4112" name="line-4112"></a> +<a id="line-4113" name="line-4113"></a><span class="w"> </span><span class="cm">/* This is a workaround for a bug (#351945) regarding</span> +<a id="line-4114" name="line-4114"></a><span class="cm"> * gtk_recent_info_get_uri_display() and remote URIs.</span> +<a id="line-4115" name="line-4115"></a><span class="cm"> * mate_vfs_format_uri_for_display is sufficient here</span> +<a id="line-4116" name="line-4116"></a><span class="cm"> * since the password gets stripped when adding the</span> +<a id="line-4117" name="line-4117"></a><span class="cm"> * file to the recently used list. */</span> +<a id="line-4118" name="line-4118"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tip</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-4119" name="line-4119"></a><span class="w"> </span><span class="n">tip</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_uri_unescape_string</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_recent_info_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4120" name="line-4120"></a> +<a id="line-4121" name="line-4121"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4122" name="line-4122"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_new</span><span class="w"> </span><span class="p">(</span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">tip</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4123" name="line-4123"></a><span class="w"> </span><span class="n">gtk_action_set_always_show_image</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4124" name="line-4124"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4125" name="line-4125"></a> +<a id="line-4126" name="line-4126"></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">action</span><span class="p">),</span><span class="w"> </span><span class="s">"gtk-recent-info"</span><span class="p">,</span> +<a id="line-4127" name="line-4127"></a><span class="w"> </span><span class="n">gtk_recent_info_ref</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">),</span> +<a id="line-4128" name="line-4128"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">gtk_recent_info_unref</span><span class="p">);</span> +<a id="line-4129" name="line-4129"></a> +<a id="line-4130" name="line-4130"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="s">"icon-name"</span><span class="p">,</span><span class="w"> </span><span class="s">"image-x-generic"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4131" name="line-4131"></a> +<a id="line-4132" name="line-4132"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span> +<a id="line-4133" name="line-4133"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_open_recent_cb</span><span class="p">),</span> +<a id="line-4134" name="line-4134"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4135" name="line-4135"></a> +<a id="line-4136" name="line-4136"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4137" name="line-4137"></a><span class="w"> </span><span class="n">gtk_action_group_add_action</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_recent</span><span class="p">,</span><span class="w"> </span><span class="n">action</span><span class="p">);</span> +<a id="line-4138" name="line-4138"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4139" name="line-4139"></a> +<a id="line-4140" name="line-4140"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">);</span> +<a id="line-4141" name="line-4141"></a> +<a id="line-4142" name="line-4142"></a><span class="w"> </span><span class="n">gtk_ui_manager_add_ui</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">recent_menu_id</span><span class="p">,</span> +<a id="line-4143" name="line-4143"></a><span class="w"> </span><span class="s">"/MainMenu/Image/RecentDocuments"</span><span class="p">,</span> +<a id="line-4144" name="line-4144"></a><span class="w"> </span><span class="n">action_name</span><span class="p">,</span><span class="w"> </span><span class="n">action_name</span><span class="p">,</span> +<a id="line-4145" name="line-4145"></a><span class="w"> </span><span class="n">GTK_UI_MANAGER_AUTO</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-4146" name="line-4146"></a> +<a id="line-4147" name="line-4147"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">action_name</span><span class="p">);</span> +<a id="line-4148" name="line-4148"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">);</span> +<a id="line-4149" name="line-4149"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tip</span><span class="p">);</span> +<a id="line-4150" name="line-4150"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4151" name="line-4151"></a> +<a id="line-4152" name="line-4152"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">gtk_recent_info_unref</span><span class="p">);</span> +<a id="line-4153" name="line-4153"></a><span class="p">}</span> +<a id="line-4154" name="line-4154"></a> +<a id="line-4155" name="line-4155"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4156" name="line-4156"></a><span class="nf">eom_window_recent_manager_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkRecentManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4157" name="line-4157"></a><span class="p">{</span> +<a id="line-4158" name="line-4158"></a><span class="w"> </span><span class="n">eom_window_update_recent_files_menu</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4159" name="line-4159"></a><span class="p">}</span> +<a id="line-4160" name="line-4160"></a> +<a id="line-4161" name="line-4161"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4162" name="line-4162"></a><span class="nf">eom_window_drag_data_received</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span> +<a id="line-4163" name="line-4163"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span> +<a id="line-4164" name="line-4164"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span> +<a id="line-4165" name="line-4165"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection_data</span><span class="p">,</span> +<a id="line-4166" name="line-4166"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">)</span> +<a id="line-4167" name="line-4167"></a><span class="p">{</span> +<a id="line-4168" name="line-4168"></a><span class="hll"><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'file_list' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'file_list' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-4169" name="line-4169"></a><span class="hll"><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'window' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'window' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-4170" name="line-4170"></a><span class="w"> </span><span class="n">GdkAtom</span><span class="w"> </span><span class="n">target</span><span class="p">;</span> +<a id="line-4171" name="line-4171"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">;</span> +<a id="line-4172" name="line-4172"></a> +<a id="line-4173" name="line-4173"></a><span class="w"> </span><span class="n">target</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_selection_data_get_target</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">);</span> +<a id="line-4174" name="line-4174"></a> +<a id="line-4175" name="line-4175"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_targets_include_uri</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">target</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">))</span> +<a id="line-4176" name="line-4176"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-4177" name="line-4177"></a> +<a id="line-4178" name="line-4178"></a><span class="w"> </span><span class="cm">/* if the request is from another process this will return NULL */</span> +<a id="line-4179" name="line-4179"></a><span class="w"> </span><span class="n">src</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_drag_get_source_widget</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span> +<a id="line-4180" name="line-4180"></a> +<a id="line-4181" name="line-4181"></a><span class="w"> </span><span class="cm">/* if the drag request originates from the current eom instance, ignore</span> +<a id="line-4182" name="line-4182"></a><span class="cm"> the request if the source window is the same as the dest window */</span> +<a id="line-4183" name="line-4183"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="w"> </span><span class="o">&&</span> +<a id="line-4184" name="line-4184"></a><span class="w"> </span><span class="n">gtk_widget_get_toplevel</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">gtk_widget_get_toplevel</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">))</span> +<a id="line-4185" name="line-4185"></a><span class="w"> </span><span class="p">{</span> +<a id="line-4186" name="line-4186"></a><span class="w"> </span><span class="n">gdk_drag_status</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">time</span><span class="p">);</span> +<a id="line-4187" name="line-4187"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-4188" name="line-4188"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4189" name="line-4189"></a> +<a id="line-4190" name="line-4190"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_drag_context_get_suggested_action</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">==</span><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4191" name="line-4191"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-4192" name="line-4192"></a> +<a id="line-4193" name="line-4193"></a><span class="w"> </span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_util_parse_uri_string_list_to_file_list</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="p">)</span><span class="w"> </span><span class="n">gtk_selection_data_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">));</span> +<a id="line-4194" name="line-4194"></a> +<a id="line-4195" name="line-4195"></a><span class="w"> </span><span class="n">eom_window_open_file_list</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">file_list</span><span class="p">);</span> +<a id="line-4196" name="line-4196"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4197" name="line-4197"></a><span class="p">}</span> +<a id="line-4198" name="line-4198"></a> +<a id="line-4199" name="line-4199"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4200" name="line-4200"></a><span class="nf">eom_window_set_drag_dest</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4201" name="line-4201"></a><span class="p">{</span> +<a id="line-4202" name="line-4202"></a><span class="w"> </span><span class="n">gtk_drag_dest_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-4203" name="line-4203"></a><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_MOTION</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_DROP</span><span class="p">,</span> +<a id="line-4204" name="line-4204"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-4205" name="line-4205"></a><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ACTION_ASK</span><span class="p">);</span> +<a id="line-4206" name="line-4206"></a><span class="w"> </span><span class="n">gtk_drag_dest_add_uri_targets</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-4207" name="line-4207"></a><span class="p">}</span> +<a id="line-4208" name="line-4208"></a> +<a id="line-4209" name="line-4209"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4210" name="line-4210"></a><span class="nf">eom_window_sidebar_visibility_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4211" name="line-4211"></a><span class="p">{</span> +<a id="line-4212" name="line-4212"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-4213" name="line-4213"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">;</span> +<a id="line-4214" name="line-4214"></a> +<a id="line-4215" name="line-4215"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4216" name="line-4216"></a><span class="w"> </span><span class="n">visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">);</span> +<a id="line-4217" name="line-4217"></a> +<a id="line-4218" name="line-4218"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-4219" name="line-4219"></a><span class="w"> </span><span class="s">"ViewSidebar"</span><span class="p">);</span> +<a id="line-4220" name="line-4220"></a> +<a id="line-4221" name="line-4221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_toggle_action_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-4222" name="line-4222"></a><span class="w"> </span><span class="n">gtk_toggle_action_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">),</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-4223" name="line-4223"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4224" name="line-4224"></a> +<a id="line-4225" name="line-4225"></a><span class="w"> </span><span class="cm">/* Focus the image */</span> +<a id="line-4226" name="line-4226"></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">visible</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-4227" name="line-4227"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">);</span> +<a id="line-4228" name="line-4228"></a><span class="p">}</span> +<a id="line-4229" name="line-4229"></a> +<a id="line-4230" name="line-4230"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4231" name="line-4231"></a><span class="nf">eom_window_sidebar_page_added</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">,</span> +<a id="line-4232" name="line-4232"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_widget</span><span class="p">,</span> +<a id="line-4233" name="line-4233"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4234" name="line-4234"></a><span class="p">{</span> +<a id="line-4235" name="line-4235"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_get_n_pages</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4236" name="line-4236"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-4237" name="line-4237"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">show</span><span class="p">;</span> +<a id="line-4238" name="line-4238"></a> +<a id="line-4239" name="line-4239"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4240" name="line-4240"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-4241" name="line-4241"></a><span class="w"> </span><span class="s">"ViewSidebar"</span><span class="p">);</span> +<a id="line-4242" name="line-4242"></a> +<a id="line-4243" name="line-4243"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4244" name="line-4244"></a> +<a id="line-4245" name="line-4245"></a><span class="w"> </span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_action_get_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TOGGLE_ACTION</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">));</span> +<a id="line-4246" name="line-4246"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4247" name="line-4247"></a> +<a id="line-4248" name="line-4248"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">)</span> +<a id="line-4249" name="line-4249"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">));</span> +<a id="line-4250" name="line-4250"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4251" name="line-4251"></a><span class="p">}</span> +<a id="line-4252" name="line-4252"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4253" name="line-4253"></a><span class="nf">eom_window_sidebar_page_removed</span><span class="w"> </span><span class="p">(</span><span class="n">EomSidebar</span><span class="w"> </span><span class="o">*</span><span class="n">sidebar</span><span class="p">,</span> +<a id="line-4254" name="line-4254"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_widget</span><span class="p">,</span> +<a id="line-4255" name="line-4255"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4256" name="line-4256"></a><span class="p">{</span> +<a id="line-4257" name="line-4257"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_sidebar_is_empty</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-4258" name="line-4258"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-4259" name="line-4259"></a> +<a id="line-4260" name="line-4260"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">sidebar</span><span class="p">));</span> +<a id="line-4261" name="line-4261"></a> +<a id="line-4262" name="line-4262"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4263" name="line-4263"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-4264" name="line-4264"></a><span class="w"> </span><span class="s">"ViewSidebar"</span><span class="p">);</span> +<a id="line-4265" name="line-4265"></a> +<a id="line-4266" name="line-4266"></a><span class="w"> </span><span class="n">gtk_action_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-4267" name="line-4267"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4268" name="line-4268"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4269" name="line-4269"></a><span class="p">}</span> +<a id="line-4270" name="line-4270"></a> +<a id="line-4271" name="line-4271"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4272" name="line-4272"></a><span class="nf">eom_window_finish_saving</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4273" name="line-4273"></a><span class="p">{</span> +<a id="line-4274" name="line-4274"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-4275" name="line-4275"></a> +<a id="line-4276" name="line-4276"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-4277" name="line-4277"></a> +<a id="line-4278" name="line-4278"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span> +<a id="line-4279" name="line-4279"></a><span class="w"> </span><span class="n">gtk_main_iteration</span><span class="w"> </span><span class="p">();</span> +<a id="line-4280" name="line-4280"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4281" name="line-4281"></a><span class="p">}</span> +<a id="line-4282" name="line-4282"></a> +<a id="line-4283" name="line-4283"></a><span class="k">static</span><span class="w"> </span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span> +<a id="line-4284" name="line-4284"></a><span class="nf">get_appinfo_for_editor</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4285" name="line-4285"></a><span class="p">{</span> +<a id="line-4286" name="line-4286"></a><span class="w"> </span><span class="cm">/* We want this function to always return the same thing, not</span> +<a id="line-4287" name="line-4287"></a><span class="cm"> * just for performance reasons, but because if someone edits</span> +<a id="line-4288" name="line-4288"></a><span class="cm"> * GConf while eom is running, the application could get into an</span> +<a id="line-4289" name="line-4289"></a><span class="cm"> * inconsistent state. If the editor exists once, it gets added</span> +<a id="line-4290" name="line-4290"></a><span class="cm"> * to the "available" list of the EggToolbarsModel (for which</span> +<a id="line-4291" name="line-4291"></a><span class="cm"> * there is no API to remove it). If later the editor no longer</span> +<a id="line-4292" name="line-4292"></a><span class="cm"> * existed when constructing a new window, we'd be unable to</span> +<a id="line-4293" name="line-4293"></a><span class="cm"> * construct a GtkAction for the editor for that window, causing</span> +<a id="line-4294" name="line-4294"></a><span class="cm"> * assertion failures when viewing the "Edit Toolbars" dialog</span> +<a id="line-4295" name="line-4295"></a><span class="cm"> * (item is available, but can't find the GtkAction for it).</span> +<a id="line-4296" name="line-4296"></a><span class="cm"> *</span> +<a id="line-4297" name="line-4297"></a><span class="cm"> * By ensuring we keep the GAppInfo around, we avoid the</span> +<a id="line-4298" name="line-4298"></a><span class="cm"> * possibility of that situation occurring.</span> +<a id="line-4299" name="line-4299"></a><span class="cm"> */</span> +<a id="line-4300" name="line-4300"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GDesktopAppInfo</span><span class="w"> </span><span class="o">*</span><span class="n">app_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4301" name="line-4301"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">initialised</span><span class="p">;</span> +<a id="line-4302" name="line-4302"></a> +<a id="line-4303" name="line-4303"></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">initialised</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4304" name="line-4304"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">editor</span><span class="p">;</span> +<a id="line-4305" name="line-4305"></a> +<a id="line-4306" name="line-4306"></a><span class="w"> </span><span class="n">editor</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">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span> +<a id="line-4307" name="line-4307"></a><span class="w"> </span><span class="n">EOM_CONF_UI_EXTERNAL_EDITOR</span><span class="p">);</span> +<a id="line-4308" name="line-4308"></a> +<a id="line-4309" name="line-4309"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4310" name="line-4310"></a><span class="w"> </span><span class="n">app_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_desktop_app_info_new</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">);</span> +<a id="line-4311" name="line-4311"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4312" name="line-4312"></a> +<a id="line-4313" name="line-4313"></a><span class="w"> </span><span class="n">initialised</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-4314" name="line-4314"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">editor</span><span class="p">);</span> +<a id="line-4315" name="line-4315"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4316" name="line-4316"></a> +<a id="line-4317" name="line-4317"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">app_info</span><span class="p">;</span> +<a id="line-4318" name="line-4318"></a><span class="p">}</span> +<a id="line-4319" name="line-4319"></a> +<a id="line-4320" name="line-4320"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4321" name="line-4321"></a><span class="nf">eom_window_open_editor</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">,</span> +<a id="line-4322" name="line-4322"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4323" name="line-4323"></a><span class="p">{</span> +<a id="line-4324" name="line-4324"></a><span class="w"> </span><span class="n">GdkAppLaunchContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span> +<a id="line-4325" name="line-4325"></a><span class="w"> </span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span><span class="n">app_info</span><span class="p">;</span> +<a id="line-4326" name="line-4326"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">files</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4327" name="line-4327"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-4328" name="line-4328"></a> +<a id="line-4329" name="line-4329"></a><span class="w"> </span><span class="n">app_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_appinfo_for_editor</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4330" name="line-4330"></a> +<a id="line-4331" name="line-4331"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-4332" name="line-4332"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-4333" name="line-4333"></a> +<a id="line-4334" name="line-4334"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_app_launch_context</span><span class="w"> </span><span class="p">(</span> +<a id="line-4335" name="line-4335"></a><span class="w"> </span><span class="n">gtk_widget_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">)));</span> +<a id="line-4336" name="line-4336"></a><span class="w"> </span><span class="n">gdk_app_launch_context_set_screen</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span> +<a id="line-4337" name="line-4337"></a><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">)));</span> +<a id="line-4338" name="line-4338"></a><span class="w"> </span><span class="n">gdk_app_launch_context_set_icon</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span> +<a id="line-4339" name="line-4339"></a><span class="w"> </span><span class="n">g_app_info_get_icon</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="p">));</span> +<a id="line-4340" name="line-4340"></a><span class="w"> </span><span class="n">gdk_app_launch_context_set_timestamp</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span> +<a id="line-4341" name="line-4341"></a><span class="w"> </span><span class="n">gtk_get_current_event_time</span><span class="w"> </span><span class="p">());</span> +<a id="line-4342" name="line-4342"></a> +<a id="line-4343" name="line-4343"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-4344" name="line-4344"></a><span class="w"> </span><span class="n">files</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">files</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">);</span> +<a id="line-4345" name="line-4345"></a> +<a id="line-4346" name="line-4346"></a><span class="w"> </span><span class="n">g_app_info_launch</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="p">,</span><span class="w"> </span><span class="n">files</span><span class="p">,</span> +<a id="line-4347" name="line-4347"></a><span class="w"> </span><span class="n">G_APP_LAUNCH_CONTEXT</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4348" name="line-4348"></a> +<a id="line-4349" name="line-4349"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">files</span><span class="p">);</span> +<a id="line-4350" name="line-4350"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-4351" name="line-4351"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span> +<a id="line-4352" name="line-4352"></a><span class="p">}</span> +<a id="line-4353" name="line-4353"></a> +<a id="line-4354" name="line-4354"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4355" name="line-4355"></a><span class="nf">eom_window_add_open_editor_action</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4356" name="line-4356"></a><span class="p">{</span> +<a id="line-4357" name="line-4357"></a><span class="w"> </span><span class="n">EggToolbarsModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-4358" name="line-4358"></a><span class="w"> </span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span><span class="n">app_info</span><span class="p">;</span> +<a id="line-4359" name="line-4359"></a><span class="w"> </span><span class="n">GtkAction</span><span class="w"> </span><span class="o">*</span><span class="n">action</span><span class="p">;</span> +<a id="line-4360" name="line-4360"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip</span><span class="p">;</span> +<a id="line-4361" name="line-4361"></a> +<a id="line-4362" name="line-4362"></a><span class="w"> </span><span class="n">app_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_appinfo_for_editor</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4363" name="line-4363"></a> +<a id="line-4364" name="line-4364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-4365" name="line-4365"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-4366" name="line-4366"></a> +<a id="line-4367" name="line-4367"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_application_get_toolbars_model</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">);</span> +<a id="line-4368" name="line-4368"></a><span class="w"> </span><span class="n">egg_toolbars_model_set_name_flags</span><span class="w"> </span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="s">"OpenEditor"</span><span class="p">,</span> +<a id="line-4369" name="line-4369"></a><span class="w"> </span><span class="n">EGG_TB_MODEL_NAME_KNOWN</span><span class="p">);</span> +<a id="line-4370" name="line-4370"></a> +<a id="line-4371" name="line-4371"></a><span class="w"> </span><span class="n">tooltip</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Edit the current image using %s"</span><span class="p">),</span> +<a id="line-4372" name="line-4372"></a><span class="w"> </span><span class="n">g_app_info_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="p">));</span> +<a id="line-4373" name="line-4373"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4374" name="line-4374"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_new</span><span class="w"> </span><span class="p">(</span><span class="s">"OpenEditor"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Edit Image"</span><span class="p">),</span><span class="w"> </span><span class="n">tooltip</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4375" name="line-4375"></a><span class="w"> </span><span class="n">gtk_action_set_gicon</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">g_app_info_get_icon</span><span class="w"> </span><span class="p">(</span><span class="n">app_info</span><span class="p">));</span> +<a id="line-4376" name="line-4376"></a><span class="w"> </span><span class="n">gtk_action_set_is_important</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4377" name="line-4377"></a> +<a id="line-4378" name="line-4378"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span> +<a id="line-4379" name="line-4379"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_open_editor</span><span class="p">),</span> +<a id="line-4380" name="line-4380"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4381" name="line-4381"></a> +<a id="line-4382" name="line-4382"></a><span class="w"> </span><span class="n">gtk_action_group_add_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="n">action</span><span class="p">);</span> +<a id="line-4383" name="line-4383"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4384" name="line-4384"></a> +<a id="line-4385" name="line-4385"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">);</span> +<a id="line-4386" name="line-4386"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tooltip</span><span class="p">);</span> +<a id="line-4387" name="line-4387"></a><span class="p">}</span> +<a id="line-4388" name="line-4388"></a> +<a id="line-4389" name="line-4389"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4390" name="line-4390"></a><span class="nf">eom_window_construct_ui</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4391" name="line-4391"></a><span class="p">{</span> +<a id="line-4392" name="line-4392"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-4393" name="line-4393"></a> +<a id="line-4394" name="line-4394"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4395" name="line-4395"></a> +<a id="line-4396" name="line-4396"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menubar</span><span class="p">;</span> +<a id="line-4397" name="line-4397"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">thumb_popup</span><span class="p">;</span> +<a id="line-4398" name="line-4398"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">view_popup</span><span class="p">;</span> +<a id="line-4399" name="line-4399"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hpaned</span><span class="p">;</span> +<a id="line-4400" name="line-4400"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menuitem</span><span class="p">;</span> +<a id="line-4401" name="line-4401"></a> +<a id="line-4402" name="line-4402"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-4403" name="line-4403"></a> +<a id="line-4404" name="line-4404"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-4405" name="line-4405"></a> +<a id="line-4406" name="line-4406"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">box</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4407" name="line-4407"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">box</span><span class="p">);</span> +<a id="line-4408" name="line-4408"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">box</span><span class="p">);</span> +<a id="line-4409" name="line-4409"></a> +<a id="line-4410" name="line-4410"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-4411" name="line-4411"></a> +<a id="line-4412" name="line-4412"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4413" name="line-4413"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_new</span><span class="w"> </span><span class="p">(</span><span class="s">"MenuActionsWindow"</span><span class="p">);</span> +<a id="line-4414" name="line-4414"></a> +<a id="line-4415" name="line-4415"></a><span class="cp">#ifdef ENABLE_NLS</span> +<a id="line-4416" name="line-4416"></a><span class="w"> </span><span class="n">gtk_action_group_set_translation_domain</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-4417" name="line-4417"></a><span class="w"> </span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span> +<a id="line-4418" name="line-4418"></a><span class="cp">#endif </span><span class="cm">/* ENABLE_NLS */</span> +<a id="line-4419" name="line-4419"></a> +<a id="line-4420" name="line-4420"></a><span class="w"> </span><span class="n">gtk_action_group_add_actions</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-4421" name="line-4421"></a><span class="w"> </span><span class="n">action_entries_window</span><span class="p">,</span> +<a id="line-4422" name="line-4422"></a><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">action_entries_window</span><span class="p">),</span> +<a id="line-4423" name="line-4423"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4424" name="line-4424"></a> +<a id="line-4425" name="line-4425"></a><span class="w"> </span><span class="n">gtk_action_group_add_toggle_actions</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-4426" name="line-4426"></a><span class="w"> </span><span class="n">toggle_entries_window</span><span class="p">,</span> +<a id="line-4427" name="line-4427"></a><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_entries_window</span><span class="p">),</span> +<a id="line-4428" name="line-4428"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4429" name="line-4429"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4430" name="line-4430"></a> +<a id="line-4431" name="line-4431"></a><span class="w"> </span><span class="n">gtk_ui_manager_insert_action_group</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4432" name="line-4432"></a> +<a id="line-4433" name="line-4433"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4434" name="line-4434"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_new</span><span class="w"> </span><span class="p">(</span><span class="s">"MenuActionsImage"</span><span class="p">);</span> +<a id="line-4435" name="line-4435"></a><span class="cp">#ifdef ENABLE_NLS</span> +<a id="line-4436" name="line-4436"></a><span class="w"> </span><span class="n">gtk_action_group_set_translation_domain</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-4437" name="line-4437"></a><span class="w"> </span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span> +<a id="line-4438" name="line-4438"></a><span class="cp">#endif </span><span class="cm">/* ENABLE_NLS */</span> +<a id="line-4439" name="line-4439"></a> +<a id="line-4440" name="line-4440"></a><span class="w"> </span><span class="n">gtk_action_group_add_actions</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-4441" name="line-4441"></a><span class="w"> </span><span class="n">action_entries_image</span><span class="p">,</span> +<a id="line-4442" name="line-4442"></a><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">action_entries_image</span><span class="p">),</span> +<a id="line-4443" name="line-4443"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4444" name="line-4444"></a> +<a id="line-4445" name="line-4445"></a><span class="w"> </span><span class="n">eom_window_add_open_editor_action</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4446" name="line-4446"></a> +<a id="line-4447" name="line-4447"></a><span class="w"> </span><span class="n">gtk_action_group_add_toggle_actions</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-4448" name="line-4448"></a><span class="w"> </span><span class="n">toggle_entries_image</span><span class="p">,</span> +<a id="line-4449" name="line-4449"></a><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_entries_image</span><span class="p">),</span> +<a id="line-4450" name="line-4450"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4451" name="line-4451"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4452" name="line-4452"></a> +<a id="line-4453" name="line-4453"></a><span class="w"> </span><span class="n">gtk_ui_manager_insert_action_group</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4454" name="line-4454"></a> +<a id="line-4455" name="line-4455"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4456" name="line-4456"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_new</span><span class="w"> </span><span class="p">(</span><span class="s">"MenuActionsCollection"</span><span class="p">);</span> +<a id="line-4457" name="line-4457"></a><span class="cp">#ifdef ENABLE_NLS</span> +<a id="line-4458" name="line-4458"></a><span class="w"> </span><span class="n">gtk_action_group_set_translation_domain</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span> +<a id="line-4459" name="line-4459"></a><span class="w"> </span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span> +<a id="line-4460" name="line-4460"></a><span class="cp">#endif </span><span class="cm">/* ENABLE_NLS */</span> +<a id="line-4461" name="line-4461"></a> +<a id="line-4462" name="line-4462"></a><span class="w"> </span><span class="n">gtk_action_group_add_actions</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span> +<a id="line-4463" name="line-4463"></a><span class="w"> </span><span class="n">action_entries_collection</span><span class="p">,</span> +<a id="line-4464" name="line-4464"></a><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">action_entries_collection</span><span class="p">),</span> +<a id="line-4465" name="line-4465"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4466" name="line-4466"></a> +<a id="line-4467" name="line-4467"></a><span class="w"> </span><span class="n">gtk_action_group_add_toggle_actions</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span> +<a id="line-4468" name="line-4468"></a><span class="w"> </span><span class="n">toggle_entries_collection</span><span class="p">,</span> +<a id="line-4469" name="line-4469"></a><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_entries_collection</span><span class="p">),</span> +<a id="line-4470" name="line-4470"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4471" name="line-4471"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4472" name="line-4472"></a> +<a id="line-4473" name="line-4473"></a><span class="w"> </span><span class="n">set_action_properties</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">,</span> +<a id="line-4474" name="line-4474"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">,</span> +<a id="line-4475" name="line-4475"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">);</span> +<a id="line-4476" name="line-4476"></a> +<a id="line-4477" name="line-4477"></a><span class="w"> </span><span class="n">gtk_ui_manager_insert_action_group</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4478" name="line-4478"></a> +<a id="line-4479" name="line-4479"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_ui_manager_add_ui_from_resource</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-4480" name="line-4480"></a><span class="w"> </span><span class="s">"/org/mate/eom/ui/eom-ui.xml"</span><span class="p">,</span> +<a id="line-4481" name="line-4481"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-4482" name="line-4482"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"building menus failed: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-4483" name="line-4483"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-4484" name="line-4484"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4485" name="line-4485"></a> +<a id="line-4486" name="line-4486"></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">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"connect_proxy"</span><span class="p">,</span> +<a id="line-4487" name="line-4487"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">connect_proxy_cb</span><span class="p">),</span> +<a id="line-4488" name="line-4488"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4489" name="line-4489"></a> +<a id="line-4490" name="line-4490"></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">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"disconnect_proxy"</span><span class="p">,</span> +<a id="line-4491" name="line-4491"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">disconnect_proxy_cb</span><span class="p">),</span> +<a id="line-4492" name="line-4492"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4493" name="line-4493"></a> +<a id="line-4494" name="line-4494"></a><span class="w"> </span><span class="n">menubar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/MainMenu"</span><span class="p">);</span> +<a id="line-4495" name="line-4495"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">menubar</span><span class="p">));</span> +<a id="line-4496" name="line-4496"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">box</span><span class="p">),</span><span class="w"> </span><span class="n">menubar</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4497" name="line-4497"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">menubar</span><span class="p">);</span> +<a id="line-4498" name="line-4498"></a> +<a id="line-4499" name="line-4499"></a><span class="w"> </span><span class="n">menuitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-4500" name="line-4500"></a><span class="w"> </span><span class="s">"/MainMenu/Edit/EditFlipHorizontal"</span><span class="p">);</span> +<a id="line-4501" name="line-4501"></a><span class="w"> </span><span class="n">gtk_image_menu_item_set_always_show_image</span><span class="w"> </span><span class="p">(</span> +<a id="line-4502" name="line-4502"></a><span class="w"> </span><span class="n">GTK_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">menuitem</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4503" name="line-4503"></a> +<a id="line-4504" name="line-4504"></a><span class="w"> </span><span class="n">menuitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-4505" name="line-4505"></a><span class="w"> </span><span class="s">"/MainMenu/Edit/EditFlipVertical"</span><span class="p">);</span> +<a id="line-4506" name="line-4506"></a><span class="w"> </span><span class="n">gtk_image_menu_item_set_always_show_image</span><span class="w"> </span><span class="p">(</span> +<a id="line-4507" name="line-4507"></a><span class="w"> </span><span class="n">GTK_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">menuitem</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4508" name="line-4508"></a> +<a id="line-4509" name="line-4509"></a><span class="w"> </span><span class="n">menuitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-4510" name="line-4510"></a><span class="w"> </span><span class="s">"/MainMenu/Edit/EditRotate90"</span><span class="p">);</span> +<a id="line-4511" name="line-4511"></a><span class="w"> </span><span class="n">gtk_image_menu_item_set_always_show_image</span><span class="w"> </span><span class="p">(</span> +<a id="line-4512" name="line-4512"></a><span class="w"> </span><span class="n">GTK_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">menuitem</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4513" name="line-4513"></a> +<a id="line-4514" name="line-4514"></a><span class="w"> </span><span class="n">menuitem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-4515" name="line-4515"></a><span class="w"> </span><span class="s">"/MainMenu/Edit/EditRotate270"</span><span class="p">);</span> +<a id="line-4516" name="line-4516"></a><span class="w"> </span><span class="n">gtk_image_menu_item_set_always_show_image</span><span class="w"> </span><span class="p">(</span> +<a id="line-4517" name="line-4517"></a><span class="w"> </span><span class="n">GTK_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">menuitem</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4518" name="line-4518"></a> +<a id="line-4519" name="line-4519"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span> +<a id="line-4520" name="line-4520"></a><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_TYPE_EDITABLE_TOOLBAR</span><span class="p">,</span> +<a id="line-4521" name="line-4521"></a><span class="w"> </span><span class="s">"ui-manager"</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span> +<a id="line-4522" name="line-4522"></a><span class="w"> </span><span class="s">"popup-path"</span><span class="p">,</span><span class="w"> </span><span class="s">"/ToolbarPopup"</span><span class="p">,</span> +<a id="line-4523" name="line-4523"></a><span class="w"> </span><span class="s">"model"</span><span class="p">,</span><span class="w"> </span><span class="n">eom_application_get_toolbars_model</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">),</span> +<a id="line-4524" name="line-4524"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-4525" name="line-4525"></a> +<a id="line-4526" name="line-4526"></a><span class="w"> </span><span class="n">gtk_style_context_add_class</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">)),</span> +<a id="line-4527" name="line-4527"></a><span class="w"> </span><span class="n">GTK_STYLE_CLASS_PRIMARY_TOOLBAR</span><span class="p">);</span> +<a id="line-4528" name="line-4528"></a> +<a id="line-4529" name="line-4529"></a><span class="w"> </span><span class="n">egg_editable_toolbar_show</span><span class="w"> </span><span class="p">(</span><span class="n">EGG_EDITABLE_TOOLBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">),</span> +<a id="line-4530" name="line-4530"></a><span class="w"> </span><span class="s">"Toolbar"</span><span class="p">);</span> +<a id="line-4531" name="line-4531"></a> +<a id="line-4532" name="line-4532"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">box</span><span class="p">),</span> +<a id="line-4533" name="line-4533"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">,</span> +<a id="line-4534" name="line-4534"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-4535" name="line-4535"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-4536" name="line-4536"></a><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4537" name="line-4537"></a> +<a id="line-4538" name="line-4538"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">);</span> +<a id="line-4539" name="line-4539"></a> +<a id="line-4540" name="line-4540"></a><span class="w"> </span><span class="n">gtk_window_add_accel_group</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-4541" name="line-4541"></a><span class="w"> </span><span class="n">gtk_ui_manager_get_accel_group</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">));</span> +<a id="line-4542" name="line-4542"></a> +<a id="line-4543" name="line-4543"></a><span class="w"> </span><span class="n">G_GNUC_BEGIN_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4544" name="line-4544"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_recent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_action_group_new</span><span class="w"> </span><span class="p">(</span><span class="s">"RecentFilesActions"</span><span class="p">);</span> +<a id="line-4545" name="line-4545"></a><span class="cp">#ifdef ENABLE_NLS</span> +<a id="line-4546" name="line-4546"></a><span class="w"> </span><span class="n">gtk_action_group_set_translation_domain</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_recent</span><span class="p">,</span> +<a id="line-4547" name="line-4547"></a><span class="w"> </span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span> +<a id="line-4548" name="line-4548"></a><span class="cp">#endif </span><span class="cm">/* ENABLE_NLS */</span> +<a id="line-4549" name="line-4549"></a><span class="w"> </span><span class="n">G_GNUC_END_IGNORE_DEPRECATIONS</span><span class="p">;</span> +<a id="line-4550" name="line-4550"></a> +<a id="line-4551" name="line-4551"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_recent_manager_get_default</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-4552" name="line-4552"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_recent_manager_changed_cb</span><span class="p">),</span> +<a id="line-4553" name="line-4553"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4554" name="line-4554"></a> +<a id="line-4555" name="line-4555"></a><span class="w"> </span><span class="n">eom_window_update_recent_files_menu</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4556" name="line-4556"></a> +<a id="line-4557" name="line-4557"></a><span class="w"> </span><span class="n">gtk_ui_manager_insert_action_group</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_recent</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4558" name="line-4558"></a> +<a id="line-4559" name="line-4559"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4560" name="line-4560"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">box</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">cbox</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4561" name="line-4561"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cbox</span><span class="p">);</span> +<a id="line-4562" name="line-4562"></a> +<a id="line-4563" name="line-4563"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_statusbar_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-4564" name="line-4564"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">box</span><span class="p">),</span> +<a id="line-4565" name="line-4565"></a><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-4566" name="line-4566"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4567" name="line-4567"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">);</span> +<a id="line-4568" name="line-4568"></a> +<a id="line-4569" name="line-4569"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image_info_message_cid</span><span class="w"> </span><span class="o">=</span> +<a id="line-4570" name="line-4570"></a><span class="w"> </span><span class="n">gtk_statusbar_get_context_id</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-4571" name="line-4571"></a><span class="w"> </span><span class="s">"image_info_message"</span><span class="p">);</span> +<a id="line-4572" name="line-4572"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">tip_message_cid</span><span class="w"> </span><span class="o">=</span> +<a id="line-4573" name="line-4573"></a><span class="w"> </span><span class="n">gtk_statusbar_get_context_id</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_STATUSBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">),</span> +<a id="line-4574" name="line-4574"></a><span class="w"> </span><span class="s">"tip_message"</span><span class="p">);</span> +<a id="line-4575" name="line-4575"></a> +<a id="line-4576" name="line-4576"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-4577" name="line-4577"></a> +<a id="line-4578" name="line-4578"></a><span class="w"> </span><span class="n">hpaned</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_paned_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">);</span> +<a id="line-4579" name="line-4579"></a> +<a id="line-4580" name="line-4580"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_sidebar_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-4581" name="line-4581"></a><span class="w"> </span><span class="cm">/* The sidebar shouldn't be shown automatically on show_all(),</span> +<a id="line-4582" name="line-4582"></a><span class="cm"> but only when the user actually wants it. */</span> +<a id="line-4583" name="line-4583"></a><span class="w"> </span><span class="n">gtk_widget_set_no_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4584" name="line-4584"></a> +<a id="line-4585" name="line-4585"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="mi">210</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-4586" name="line-4586"></a> +<a id="line-4587" name="line-4587"></a><span class="w"> </span><span class="n">g_signal_connect_after</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="s">"show"</span><span class="p">,</span> +<a id="line-4588" name="line-4588"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_sidebar_visibility_changed</span><span class="p">),</span> +<a id="line-4589" name="line-4589"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4590" name="line-4590"></a> +<a id="line-4591" name="line-4591"></a><span class="w"> </span><span class="n">g_signal_connect_after</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="s">"hide"</span><span class="p">,</span> +<a id="line-4592" name="line-4592"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_sidebar_visibility_changed</span><span class="p">),</span> +<a id="line-4593" name="line-4593"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4594" name="line-4594"></a> +<a id="line-4595" name="line-4595"></a><span class="w"> </span><span class="n">g_signal_connect_after</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="s">"page-added"</span><span class="p">,</span> +<a id="line-4596" name="line-4596"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_sidebar_page_added</span><span class="p">),</span> +<a id="line-4597" name="line-4597"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4598" name="line-4598"></a> +<a id="line-4599" name="line-4599"></a><span class="w"> </span><span class="n">g_signal_connect_after</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">,</span><span class="w"> </span><span class="s">"page-removed"</span><span class="p">,</span> +<a id="line-4600" name="line-4600"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_sidebar_page_removed</span><span class="p">),</span> +<a id="line-4601" name="line-4601"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4602" name="line-4602"></a> +<a id="line-4603" name="line-4603"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_scroll_view_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-4604" name="line-4604"></a> +<a id="line-4605" name="line-4605"></a><span class="w"> </span><span class="n">eom_sidebar_add_page</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SIDEBAR</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">),</span> +<a id="line-4606" name="line-4606"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Properties"</span><span class="p">),</span> +<a id="line-4607" name="line-4607"></a><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">eom_metadata_sidebar_new</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">)));</span> +<a id="line-4608" name="line-4608"></a> +<a id="line-4609" name="line-4609"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">);</span> +<a id="line-4610" name="line-4610"></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">-></span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom_changed"</span><span class="p">,</span> +<a id="line-4611" name="line-4611"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">view_zoom_changed_cb</span><span class="p">),</span> +<a id="line-4612" name="line-4612"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4613" name="line-4613"></a> +<a id="line-4614" name="line-4614"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_VIEW_SCROLL_WHEEL_ZOOM</span><span class="p">,</span> +<a id="line-4615" name="line-4615"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"scrollwheel-zoom"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-4616" name="line-4616"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_VIEW_ZOOM_MULTIPLIER</span><span class="p">,</span> +<a id="line-4617" name="line-4617"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">,</span><span class="w"> </span><span class="s">"zoom-multiplier"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-4618" name="line-4618"></a> +<a id="line-4619" name="line-4619"></a><span class="w"> </span><span class="n">view_popup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/ViewPopup"</span><span class="p">);</span> +<a id="line-4620" name="line-4620"></a><span class="w"> </span><span class="n">eom_scroll_view_set_popup</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span> +<a id="line-4621" name="line-4621"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">view_popup</span><span class="p">));</span> +<a id="line-4622" name="line-4622"></a> +<a id="line-4623" name="line-4623"></a><span class="w"> </span><span class="n">gtk_paned_pack1</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">hpaned</span><span class="p">),</span> +<a id="line-4624" name="line-4624"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">,</span> +<a id="line-4625" name="line-4625"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-4626" name="line-4626"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-4627" name="line-4627"></a> +<a id="line-4628" name="line-4628"></a><span class="w"> </span><span class="n">gtk_paned_pack2</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_PANED</span><span class="w"> </span><span class="p">(</span><span class="n">hpaned</span><span class="p">),</span> +<a id="line-4629" name="line-4629"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">,</span> +<a id="line-4630" name="line-4630"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-4631" name="line-4631"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-4632" name="line-4632"></a> +<a id="line-4633" name="line-4633"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">hpaned</span><span class="p">);</span> +<a id="line-4634" name="line-4634"></a> +<a id="line-4635" name="line-4635"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">hpaned</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4636" name="line-4636"></a> +<a id="line-4637" name="line-4637"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">eom_thumb_view_new</span><span class="w"> </span><span class="p">());</span> +<a id="line-4638" name="line-4638"></a> +<a id="line-4639" name="line-4639"></a><span class="w"> </span><span class="cm">/* giving shape to the view */</span> +<a id="line-4640" name="line-4640"></a><span class="w"> </span><span class="n">gtk_icon_view_set_margin</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span> +<a id="line-4641" name="line-4641"></a><span class="w"> </span><span class="n">gtk_icon_view_set_row_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ICON_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4642" name="line-4642"></a> +<a id="line-4643" name="line-4643"></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">-></span><span class="n">thumbview</span><span class="p">,</span><span class="w"> </span><span class="s">"selection_changed"</span><span class="p">,</span> +<a id="line-4644" name="line-4644"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">handle_image_selection_changed_cb</span><span class="p">),</span> +<a id="line-4645" name="line-4645"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4646" name="line-4646"></a> +<a id="line-4647" name="line-4647"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_thumb_nav_new</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-4648" name="line-4648"></a><span class="w"> </span><span class="n">EOM_THUMB_NAV_MODE_ONE_ROW</span><span class="p">,</span> +<a id="line-4649" name="line-4649"></a><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">-></span><span class="n">ui_settings</span><span class="p">,</span> +<a id="line-4650" name="line-4650"></a><span class="w"> </span><span class="n">EOM_CONF_UI_SCROLL_BUTTONS</span><span class="p">));</span> +<a id="line-4651" name="line-4651"></a> +<a id="line-4652" name="line-4652"></a><span class="w"> </span><span class="c1">// Bind the scroll buttons to their GSettings key</span> +<a id="line-4653" name="line-4653"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_SCROLL_BUTTONS</span><span class="p">,</span> +<a id="line-4654" name="line-4654"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="s">"show-buttons"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-4655" name="line-4655"></a> +<a id="line-4656" name="line-4656"></a><span class="w"> </span><span class="n">thumb_popup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_ui_manager_get_widget</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">,</span><span class="w"> </span><span class="s">"/ThumbnailPopup"</span><span class="p">);</span> +<a id="line-4657" name="line-4657"></a><span class="w"> </span><span class="n">eom_thumb_view_set_thumbnail_popup</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-4658" name="line-4658"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_popup</span><span class="p">));</span> +<a id="line-4659" name="line-4659"></a> +<a id="line-4660" name="line-4660"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4661" name="line-4661"></a> +<a id="line-4662" name="line-4662"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">cbox</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">layout</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-4663" name="line-4663"></a> +<a id="line-4664" name="line-4664"></a><span class="w"> </span><span class="n">eom_window_can_save_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">lockdown_settings</span><span class="p">,</span> +<a id="line-4665" name="line-4665"></a><span class="w"> </span><span class="n">EOM_CONF_LOCKDOWN_CAN_SAVE</span><span class="p">,</span> +<a id="line-4666" name="line-4666"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4667" name="line-4667"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_IMAGE_COLLECTION_POSITION</span><span class="p">,</span> +<a id="line-4668" name="line-4668"></a><span class="w"> </span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="s">"collection-position"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-4669" name="line-4669"></a><span class="w"> </span><span class="n">g_settings_bind</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_UI_IMAGE_COLLECTION_RESIZABLE</span><span class="p">,</span> +<a id="line-4670" name="line-4670"></a><span class="w"> </span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="s">"collection-resizable"</span><span class="p">,</span><span class="w"> </span><span class="n">G_SETTINGS_BIND_GET</span><span class="p">);</span> +<a id="line-4671" name="line-4671"></a> +<a id="line-4672" name="line-4672"></a><span class="w"> </span><span class="n">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4673" name="line-4673"></a> +<a id="line-4674" name="line-4674"></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">-></span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_STARTUP_FULLSCREEN</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-4675" name="line-4675"></a><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_STARTUP_SLIDE_SHOW</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-4676" name="line-4676"></a><span class="w"> </span><span class="n">eom_window_run_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">EOM_STARTUP_SLIDE_SHOW</span><span class="p">));</span> +<a id="line-4677" name="line-4677"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-4678" name="line-4678"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_NORMAL</span><span class="p">;</span> +<a id="line-4679" name="line-4679"></a><span class="w"> </span><span class="n">update_ui_visibility</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4680" name="line-4680"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4681" name="line-4681"></a> +<a id="line-4682" name="line-4682"></a><span class="w"> </span><span class="n">eom_window_set_drag_dest</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4683" name="line-4683"></a><span class="p">}</span> +<a id="line-4684" name="line-4684"></a> +<a id="line-4685" name="line-4685"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4686" name="line-4686"></a><span class="nf">eom_window_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-4687" name="line-4687"></a><span class="p">{</span> +<a id="line-4688" name="line-4688"></a><span class="w"> </span><span class="n">GdkGeometry</span><span class="w"> </span><span class="n">hints</span><span class="p">;</span> +<a id="line-4689" name="line-4689"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-4690" name="line-4690"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span> +<a id="line-4691" name="line-4691"></a><span class="cp">#endif</span> +<a id="line-4692" name="line-4692"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-4693" name="line-4693"></a> +<a id="line-4694" name="line-4694"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-4695" name="line-4695"></a> +<a id="line-4696" name="line-4696"></a><span class="w"> </span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span> +<a id="line-4697" name="line-4697"></a> +<a id="line-4698" name="line-4698"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-4699" name="line-4699"></a><span class="w"> </span><span class="n">gtk_style_context_add_class</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="s">"eom-window"</span><span class="p">);</span> +<a id="line-4700" name="line-4700"></a> +<a id="line-4701" name="line-4701"></a><span class="w"> </span><span class="n">hints</span><span class="p">.</span><span class="n">min_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_MIN_WIDTH</span><span class="p">;</span> +<a id="line-4702" name="line-4702"></a><span class="w"> </span><span class="n">hints</span><span class="p">.</span><span class="n">min_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_MIN_HEIGHT</span><span class="p">;</span> +<a id="line-4703" name="line-4703"></a> +<a id="line-4704" name="line-4704"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4705" name="line-4705"></a> +<a id="line-4706" name="line-4706"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view_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">EOM_CONF_VIEW</span><span class="p">);</span> +<a id="line-4707" name="line-4707"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">ui_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">EOM_CONF_UI</span><span class="p">);</span> +<a id="line-4708" name="line-4708"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_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">EOM_CONF_FULLSCREEN</span><span class="p">);</span> +<a id="line-4709" name="line-4709"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">lockdown_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">EOM_CONF_LOCKDOWN_SCHEMA</span><span class="p">);</span> +<a id="line-4710" name="line-4710"></a> +<a id="line-4711" name="line-4711"></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">-></span><span class="n">lockdown_settings</span><span class="p">,</span><span class="w"> </span><span class="s">"changed::"</span><span class="w"> </span><span class="n">EOM_CONF_LOCKDOWN_CAN_SAVE</span><span class="p">,</span> +<a id="line-4712" name="line-4712"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_can_save_changed_cb</span><span class="p">),</span> +<a id="line-4713" name="line-4713"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4714" name="line-4714"></a> +<a id="line-4715" name="line-4715"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4716" name="line-4716"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4717" name="line-4717"></a> +<a id="line-4718" name="line-4718"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4719" name="line-4719"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_timeout_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4720" name="line-4720"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_random</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-4721" name="line-4721"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-4722" name="line-4722"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_timeout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-4723" name="line-4723"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">slideshow_switch_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4724" name="line-4724"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_idle_inhibit_cookie</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-4725" name="line-4725"></a> +<a id="line-4726" name="line-4726"></a><span class="w"> </span><span class="n">gtk_window_set_geometry_hints</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-4727" name="line-4727"></a><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-4728" name="line-4728"></a><span class="w"> </span><span class="o">&</span><span class="n">hints</span><span class="p">,</span> +<a id="line-4729" name="line-4729"></a><span class="w"> </span><span class="n">GDK_HINT_MIN_SIZE</span><span class="p">);</span> +<a id="line-4730" name="line-4730"></a> +<a id="line-4731" name="line-4731"></a><span class="w"> </span><span class="n">gtk_window_set_default_size</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-4732" name="line-4732"></a><span class="w"> </span><span class="n">EOM_WINDOW_DEFAULT_WIDTH</span><span class="p">,</span> +<a id="line-4733" name="line-4733"></a><span class="w"> </span><span class="n">EOM_WINDOW_DEFAULT_HEIGHT</span><span class="p">);</span> +<a id="line-4734" name="line-4734"></a> +<a id="line-4735" name="line-4735"></a><span class="w"> </span><span class="n">gtk_window_set_position</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WIN_POS_CENTER</span><span class="p">);</span> +<a id="line-4736" name="line-4736"></a> +<a id="line-4737" name="line-4737"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_UNKNOWN</span><span class="p">;</span> +<a id="line-4738" name="line-4738"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_UNKNOWN</span><span class="p">;</span> +<a id="line-4739" name="line-4739"></a> +<a id="line-4740" name="line-4740"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-4741" name="line-4741"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-4742" name="line-4742"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display_profile</span><span class="w"> </span><span class="o">=</span> +<a id="line-4743" name="line-4743"></a><span class="w"> </span><span class="n">eom_window_get_display_profile</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span> +<a id="line-4744" name="line-4744"></a><span class="cp">#endif</span> +<a id="line-4745" name="line-4745"></a> +<a id="line-4746" name="line-4746"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">recent_menu_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-4747" name="line-4747"></a> +<a id="line-4748" name="line-4748"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">collection_position</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-4749" name="line-4749"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">collection_resizable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-4750" name="line-4750"></a> +<a id="line-4751" name="line-4751"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">save_disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-4752" name="line-4752"></a> +<a id="line-4753" name="line-4753"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4754" name="line-4754"></a> +<a id="line-4755" name="line-4755"></a><span class="w"> </span><span class="n">gtk_window_set_application</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_APPLICATION</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="p">));</span> +<a id="line-4756" name="line-4756"></a><span class="p">}</span> +<a id="line-4757" name="line-4757"></a> +<a id="line-4758" name="line-4758"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-4759" name="line-4759"></a><span class="nf">eom_window_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-4760" name="line-4760"></a><span class="p">{</span> +<a id="line-4761" name="line-4761"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-4762" name="line-4762"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-4763" name="line-4763"></a> +<a id="line-4764" name="line-4764"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-4765" name="line-4765"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-4766" name="line-4766"></a> +<a id="line-4767" name="line-4767"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-4768" name="line-4768"></a> +<a id="line-4769" name="line-4769"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-4770" name="line-4770"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-4771" name="line-4771"></a> +<a id="line-4772" name="line-4772"></a><span class="w"> </span><span class="n">peas_engine_garbage_collect</span><span class="w"> </span><span class="p">(</span><span class="n">PEAS_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugin_engine</span><span class="p">));</span> +<a id="line-4773" name="line-4773"></a> +<a id="line-4774" name="line-4774"></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">-></span><span class="n">extensions</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4775" name="line-4775"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">extensions</span><span class="p">);</span> +<a id="line-4776" name="line-4776"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">extensions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4777" name="line-4777"></a><span class="w"> </span><span class="n">peas_engine_garbage_collect</span><span class="w"> </span><span class="p">(</span><span class="n">PEAS_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugin_engine</span><span class="p">));</span> +<a id="line-4778" name="line-4778"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4779" name="line-4779"></a> +<a id="line-4780" name="line-4780"></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">-></span><span class="n">page_setup</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4781" name="line-4781"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="p">);</span> +<a id="line-4782" name="line-4782"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">page_setup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4783" name="line-4783"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4784" name="line-4784"></a> +<a id="line-4785" name="line-4785"></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">-></span><span class="n">thumbview</span><span class="p">)</span> +<a id="line-4786" name="line-4786"></a><span class="w"> </span><span class="p">{</span> +<a id="line-4787" name="line-4787"></a><span class="w"> </span><span class="cm">/* Disconnect so we don't get any unwanted callbacks</span> +<a id="line-4788" name="line-4788"></a><span class="cm"> * when the thumb view is disposed. */</span> +<a id="line-4789" name="line-4789"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">,</span> +<a id="line-4790" name="line-4790"></a><span class="w"> </span><span class="n">handle_image_selection_changed_cb</span><span class="p">,</span> +<a id="line-4791" name="line-4791"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4792" name="line-4792"></a><span class="w"> </span><span class="n">g_clear_object</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">);</span> +<a id="line-4793" name="line-4793"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4794" name="line-4794"></a> +<a id="line-4795" name="line-4795"></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">-></span><span class="n">store</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4796" name="line-4796"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">,</span> +<a id="line-4797" name="line-4797"></a><span class="w"> </span><span class="n">eom_window_list_store_image_added</span><span class="p">,</span> +<a id="line-4798" name="line-4798"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4799" name="line-4799"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">,</span> +<a id="line-4800" name="line-4800"></a><span class="w"> </span><span class="n">eom_window_list_store_image_removed</span><span class="p">,</span> +<a id="line-4801" name="line-4801"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4802" name="line-4802"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">);</span> +<a id="line-4803" name="line-4803"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4804" name="line-4804"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4805" name="line-4805"></a> +<a id="line-4806" name="line-4806"></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">-></span><span class="n">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4807" name="line-4807"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-4808" name="line-4808"></a><span class="w"> </span><span class="n">image_thumb_changed_cb</span><span class="p">,</span> +<a id="line-4809" name="line-4809"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4810" name="line-4810"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span> +<a id="line-4811" name="line-4811"></a><span class="w"> </span><span class="n">image_file_changed_cb</span><span class="p">,</span> +<a id="line-4812" name="line-4812"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4813" name="line-4813"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-4814" name="line-4814"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4815" name="line-4815"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4816" name="line-4816"></a> +<a id="line-4817" name="line-4817"></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">-></span><span class="n">actions_window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4818" name="line-4818"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="p">);</span> +<a id="line-4819" name="line-4819"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4820" name="line-4820"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4821" name="line-4821"></a> +<a id="line-4822" name="line-4822"></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">-></span><span class="n">actions_image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4823" name="line-4823"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="p">);</span> +<a id="line-4824" name="line-4824"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4825" name="line-4825"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4826" name="line-4826"></a> +<a id="line-4827" name="line-4827"></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">-></span><span class="n">actions_collection</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4828" name="line-4828"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="p">);</span> +<a id="line-4829" name="line-4829"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_collection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4830" name="line-4830"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4831" name="line-4831"></a> +<a id="line-4832" name="line-4832"></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">-></span><span class="n">actions_recent</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4833" name="line-4833"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_recent</span><span class="p">);</span> +<a id="line-4834" name="line-4834"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_recent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4835" name="line-4835"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4836" name="line-4836"></a> +<a id="line-4837" name="line-4837"></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">-></span><span class="n">actions_open_with</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4838" name="line-4838"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">actions_open_with</span><span class="p">);</span> +<a id="line-4839" name="line-4839"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">actions_open_with</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4840" name="line-4840"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4841" name="line-4841"></a> +<a id="line-4842" name="line-4842"></a><span class="w"> </span><span class="n">fullscreen_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4843" name="line-4843"></a> +<a id="line-4844" name="line-4844"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4845" name="line-4845"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="p">);</span> +<a id="line-4846" name="line-4846"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4847" name="line-4847"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4848" name="line-4848"></a> +<a id="line-4849" name="line-4849"></a><span class="w"> </span><span class="n">slideshow_clear_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4850" name="line-4850"></a><span class="w"> </span><span class="n">eom_window_uninhibit_screensaver</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4851" name="line-4851"></a> +<a id="line-4852" name="line-4852"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_recent_manager_get_default</span><span class="w"> </span><span class="p">(),</span> +<a id="line-4853" name="line-4853"></a><span class="w"> </span><span class="n">eom_window_recent_manager_changed_cb</span><span class="p">,</span> +<a id="line-4854" name="line-4854"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-4855" name="line-4855"></a> +<a id="line-4856" name="line-4856"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">recent_menu_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-4857" name="line-4857"></a> +<a id="line-4858" name="line-4858"></a><span class="w"> </span><span class="n">eom_window_clear_load_job</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4859" name="line-4859"></a> +<a id="line-4860" name="line-4860"></a><span class="w"> </span><span class="n">eom_window_clear_transform_job</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4861" name="line-4861"></a> +<a id="line-4862" name="line-4862"></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">-></span><span class="n">view_settings</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4863" name="line-4863"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="p">);</span> +<a id="line-4864" name="line-4864"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">view_settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4865" name="line-4865"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4866" name="line-4866"></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">-></span><span class="n">ui_settings</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4867" name="line-4867"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="p">);</span> +<a id="line-4868" name="line-4868"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">ui_settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4869" name="line-4869"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4870" name="line-4870"></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">-></span><span class="n">fullscreen_settings</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4871" name="line-4871"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_settings</span><span class="p">);</span> +<a id="line-4872" name="line-4872"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4873" name="line-4873"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4874" name="line-4874"></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">-></span><span class="n">lockdown_settings</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4875" name="line-4875"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">lockdown_settings</span><span class="p">);</span> +<a id="line-4876" name="line-4876"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">lockdown_settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4877" name="line-4877"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4878" name="line-4878"></a> +<a id="line-4879" name="line-4879"></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">-></span><span class="n">file_list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4880" name="line-4880"></a><span class="w"> </span><span class="n">g_slist_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_unref</span><span class="p">);</span> +<a id="line-4881" name="line-4881"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4882" name="line-4882"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4883" name="line-4883"></a> +<a id="line-4884" name="line-4884"></a><span class="cp">#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)</span> +<a id="line-4885" name="line-4885"></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">-></span><span class="n">display_profile</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4886" name="line-4886"></a><span class="w"> </span><span class="n">cmsCloseProfile</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">display_profile</span><span class="p">);</span> +<a id="line-4887" name="line-4887"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">display_profile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4888" name="line-4888"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4889" name="line-4889"></a><span class="cp">#endif</span> +<a id="line-4890" name="line-4890"></a> +<a id="line-4891" name="line-4891"></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">-></span><span class="n">last_save_as_folder</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4892" name="line-4892"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">last_save_as_folder</span><span class="p">);</span> +<a id="line-4893" name="line-4893"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">last_save_as_folder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-4894" name="line-4894"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4895" name="line-4895"></a> +<a id="line-4896" name="line-4896"></a><span class="w"> </span><span class="n">peas_engine_garbage_collect</span><span class="w"> </span><span class="p">(</span><span class="n">PEAS_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugin_engine</span><span class="p">));</span> +<a id="line-4897" name="line-4897"></a> +<a id="line-4898" name="line-4898"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-4899" name="line-4899"></a><span class="p">}</span> +<a id="line-4900" name="line-4900"></a> +<a id="line-4901" name="line-4901"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-4902" name="line-4902"></a><span class="nf">eom_window_delete</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventAny</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-4903" name="line-4903"></a><span class="p">{</span> +<a id="line-4904" name="line-4904"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-4905" name="line-4905"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-4906" name="line-4906"></a> +<a id="line-4907" name="line-4907"></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">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-4908" name="line-4908"></a> +<a id="line-4909" name="line-4909"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-4910" name="line-4910"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-4911" name="line-4911"></a> +<a id="line-4912" name="line-4912"></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">-></span><span class="n">save_job</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4913" name="line-4913"></a><span class="w"> </span><span class="n">eom_window_finish_saving</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-4914" name="line-4914"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4915" name="line-4915"></a> +<a id="line-4916" name="line-4916"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_unsaved_images_confirm</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-4917" name="line-4917"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-4918" name="line-4918"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4919" name="line-4919"></a> +<a id="line-4920" name="line-4920"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-4921" name="line-4921"></a> +<a id="line-4922" name="line-4922"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-4923" name="line-4923"></a><span class="p">}</span> +<a id="line-4924" name="line-4924"></a> +<a id="line-4925" name="line-4925"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-4926" name="line-4926"></a><span class="nf">eom_window_key_press</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-4927" name="line-4927"></a><span class="p">{</span> +<a id="line-4928" name="line-4928"></a><span class="w"> </span><span class="n">GtkContainer</span><span class="w"> </span><span class="o">*</span><span class="n">tbcontainer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">((</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">toolbar</span><span class="p">));</span> +<a id="line-4929" name="line-4929"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-4930" name="line-4930"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">handle_selection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-4931" name="line-4931"></a> +<a id="line-4932" name="line-4932"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4933" name="line-4933"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_space</span><span class="p">:</span> +<a id="line-4934" name="line-4934"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4935" name="line-4935"></a><span class="w"> </span><span class="n">handle_selection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-4936" name="line-4936"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4937" name="line-4937"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4938" name="line-4938"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Return</span><span class="p">:</span> +<a id="line-4939" name="line-4939"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_container_get_focus_child</span><span class="w"> </span><span class="p">(</span><span class="n">tbcontainer</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4940" name="line-4940"></a><span class="w"> </span><span class="cm">/* Image properties dialog case */</span> +<a id="line-4941" name="line-4941"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4942" name="line-4942"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-4943" name="line-4943"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4944" name="line-4944"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4945" name="line-4945"></a> +<a id="line-4946" name="line-4946"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_SHIFT_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4947" name="line-4947"></a><span class="w"> </span><span class="n">eom_window_cmd_go_prev</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-4948" name="line-4948"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-4949" name="line-4949"></a><span class="w"> </span><span class="n">eom_window_cmd_go_next</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-4950" name="line-4950"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4951" name="line-4951"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-4952" name="line-4952"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4953" name="line-4953"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4954" name="line-4954"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_p</span><span class="p">:</span> +<a id="line-4955" name="line-4955"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_P</span><span class="p">:</span> +<a id="line-4956" name="line-4956"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4957" name="line-4957"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">slideshow</span><span class="p">;</span> +<a id="line-4958" name="line-4958"></a> +<a id="line-4959" name="line-4959"></a><span class="w"> </span><span class="n">slideshow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">;</span> +<a id="line-4960" name="line-4960"></a><span class="w"> </span><span class="n">eom_window_run_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="o">!</span><span class="n">slideshow</span><span class="p">);</span> +<a id="line-4961" name="line-4961"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4962" name="line-4962"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4963" name="line-4963"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Q</span><span class="p">:</span> +<a id="line-4964" name="line-4964"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_q</span><span class="p">:</span> +<a id="line-4965" name="line-4965"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Escape</span><span class="p">:</span> +<a id="line-4966" name="line-4966"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4967" name="line-4967"></a><span class="w"> </span><span class="n">eom_window_stop_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-4968" name="line-4968"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4969" name="line-4969"></a><span class="w"> </span><span class="n">eom_window_stop_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-4970" name="line-4970"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-4971" name="line-4971"></a><span class="w"> </span><span class="n">eom_window_cmd_close_window</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-4972" name="line-4972"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-4973" name="line-4973"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4974" name="line-4974"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4975" name="line-4975"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Left</span><span class="p">:</span> +<a id="line-4976" name="line-4976"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4977" name="line-4977"></a><span class="w"> </span><span class="cm">/* Alt+Left moves to previous image */</span> +<a id="line-4978" name="line-4978"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_rtl</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* move to next in RTL mode */</span> +<a id="line-4979" name="line-4979"></a><span class="w"> </span><span class="n">eom_window_cmd_go_next</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-4980" name="line-4980"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-4981" name="line-4981"></a><span class="w"> </span><span class="n">eom_window_cmd_go_prev</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-4982" name="line-4982"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4983" name="line-4983"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-4984" name="line-4984"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4985" name="line-4985"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="cm">/* else fall-trough is intended */</span> +<a id="line-4986" name="line-4986"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Up</span><span class="p">:</span> +<a id="line-4987" name="line-4987"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_scrollbars_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-4988" name="line-4988"></a><span class="w"> </span><span class="cm">/* break to let scrollview handle the key */</span> +<a id="line-4989" name="line-4989"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4990" name="line-4990"></a><span class="w"> </span><span class="p">}</span> +<a id="line-4991" name="line-4991"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_container_get_focus_child</span><span class="w"> </span><span class="p">(</span><span class="n">tbcontainer</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-4992" name="line-4992"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-4993" name="line-4993"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-4994" name="line-4994"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_rtl</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Left</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-4995" name="line-4995"></a><span class="w"> </span><span class="cm">/* handle RTL fall-through,</span> +<a id="line-4996" name="line-4996"></a><span class="cm"> * need to behave like GDK_Down then */</span> +<a id="line-4997" name="line-4997"></a><span class="w"> </span><span class="n">eom_window_cmd_go_next</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-4998" name="line-4998"></a><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-4999" name="line-4999"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-5000" name="line-5000"></a><span class="w"> </span><span class="n">eom_window_cmd_go_prev</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5001" name="line-5001"></a><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-5002" name="line-5002"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5003" name="line-5003"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5004" name="line-5004"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5005" name="line-5005"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5006" name="line-5006"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Right</span><span class="p">:</span> +<a id="line-5007" name="line-5007"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5008" name="line-5008"></a><span class="w"> </span><span class="cm">/* Alt+Right moves to next image */</span> +<a id="line-5009" name="line-5009"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_rtl</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* move to previous in RTL mode */</span> +<a id="line-5010" name="line-5010"></a><span class="w"> </span><span class="n">eom_window_cmd_go_prev</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-5011" name="line-5011"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-5012" name="line-5012"></a><span class="w"> </span><span class="n">eom_window_cmd_go_next</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-5013" name="line-5013"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5014" name="line-5014"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5015" name="line-5015"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5016" name="line-5016"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="cm">/* else fall-trough is intended */</span> +<a id="line-5017" name="line-5017"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Down</span><span class="p">:</span> +<a id="line-5018" name="line-5018"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">eom_scroll_view_scrollbars_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5019" name="line-5019"></a><span class="w"> </span><span class="cm">/* break to let scrollview handle the key */</span> +<a id="line-5020" name="line-5020"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5021" name="line-5021"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5022" name="line-5022"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_container_get_focus_child</span><span class="w"> </span><span class="p">(</span><span class="n">tbcontainer</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-5023" name="line-5023"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5024" name="line-5024"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5025" name="line-5025"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_rtl</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Right</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5026" name="line-5026"></a><span class="w"> </span><span class="cm">/* handle RTL fall-through,</span> +<a id="line-5027" name="line-5027"></a><span class="cm"> * need to behave like GDK_Up then */</span> +<a id="line-5028" name="line-5028"></a><span class="w"> </span><span class="n">eom_window_cmd_go_prev</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5029" name="line-5029"></a><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-5030" name="line-5030"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-5031" name="line-5031"></a><span class="w"> </span><span class="n">eom_window_cmd_go_next</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5032" name="line-5032"></a><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-5033" name="line-5033"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5034" name="line-5034"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5035" name="line-5035"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5036" name="line-5036"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5037" name="line-5037"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Page_Up</span><span class="p">:</span> +<a id="line-5038" name="line-5038"></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">eom_scroll_view_scrollbars_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5039" name="line-5039"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5040" name="line-5040"></a><span class="w"> </span><span class="cm">/* If the iconview is not visible skip to the</span> +<a id="line-5041" name="line-5041"></a><span class="cm"> * previous image manually as it won't handle</span> +<a id="line-5042" name="line-5042"></a><span class="cm"> * the keypress then. */</span> +<a id="line-5043" name="line-5043"></a><span class="w"> </span><span class="n">eom_window_cmd_go_prev</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5044" name="line-5044"></a><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-5045" name="line-5045"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5046" name="line-5046"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-5047" name="line-5047"></a><span class="w"> </span><span class="n">handle_selection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5048" name="line-5048"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5049" name="line-5049"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5050" name="line-5050"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Page_Down</span><span class="p">:</span> +<a id="line-5051" name="line-5051"></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">eom_scroll_view_scrollbars_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5052" name="line-5052"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5053" name="line-5053"></a><span class="w"> </span><span class="cm">/* If the iconview is not visible skip to the</span> +<a id="line-5054" name="line-5054"></a><span class="cm"> * next image manually as it won't handle</span> +<a id="line-5055" name="line-5055"></a><span class="cm"> * the keypress then. */</span> +<a id="line-5056" name="line-5056"></a><span class="w"> </span><span class="n">eom_window_cmd_go_next</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5057" name="line-5057"></a><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-5058" name="line-5058"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5059" name="line-5059"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-5060" name="line-5060"></a><span class="w"> </span><span class="n">handle_selection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5061" name="line-5061"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5062" name="line-5062"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5063" name="line-5063"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5064" name="line-5064"></a> +<a id="line-5065" name="line-5065"></a><span class="w"> </span><span class="cm">/* Update slideshow timeout */</span> +<a id="line-5066" name="line-5066"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5067" name="line-5067"></a><span class="w"> </span><span class="n">slideshow_set_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-5068" name="line-5068"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5069" name="line-5069"></a> +<a id="line-5070" name="line-5070"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handle_selection</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5071" name="line-5071"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">));</span> +<a id="line-5072" name="line-5072"></a> +<a id="line-5073" name="line-5073"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_event</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-5074" name="line-5074"></a><span class="w"> </span><span class="p">(</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-5075" name="line-5075"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5076" name="line-5076"></a> +<a id="line-5077" name="line-5077"></a><span class="w"> </span><span class="cm">/* If the focus is not in the toolbar and we still haven't handled the</span> +<a id="line-5078" name="line-5078"></a><span class="cm"> event, give the scrollview a chance to do it. */</span> +<a id="line-5079" name="line-5079"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_container_get_focus_child</span><span class="w"> </span><span class="p">(</span><span class="n">tbcontainer</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="w"> </span><span class="o">&&</span> +<a id="line-5080" name="line-5080"></a><span class="w"> </span><span class="n">gtk_widget_get_realized</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5081" name="line-5081"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_event</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">),</span> +<a id="line-5082" name="line-5082"></a><span class="w"> </span><span class="p">(</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-5083" name="line-5083"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5084" name="line-5084"></a> +<a id="line-5085" name="line-5085"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">key_press_event</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5086" name="line-5086"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">key_press_event</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-5087" name="line-5087"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5088" name="line-5088"></a> +<a id="line-5089" name="line-5089"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-5090" name="line-5090"></a><span class="p">}</span> +<a id="line-5091" name="line-5091"></a> +<a id="line-5092" name="line-5092"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-5093" name="line-5093"></a><span class="nf">eom_window_button_press</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-5094" name="line-5094"></a><span class="p">{</span> +<a id="line-5095" name="line-5095"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-5096" name="line-5096"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-5097" name="line-5097"></a> +<a id="line-5098" name="line-5098"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5099" name="line-5099"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">button</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5100" name="line-5100"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">6</span><span class="p">:</span> +<a id="line-5101" name="line-5101"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-5102" name="line-5102"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_LEFT</span><span class="p">);</span> +<a id="line-5103" name="line-5103"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5104" name="line-5104"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5105" name="line-5105"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">7</span><span class="p">:</span> +<a id="line-5106" name="line-5106"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-5107" name="line-5107"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_RIGHT</span><span class="p">);</span> +<a id="line-5108" name="line-5108"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5109" name="line-5109"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5110" name="line-5110"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5111" name="line-5111"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5112" name="line-5112"></a> +<a id="line-5113" name="line-5113"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">button_press_event</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5114" name="line-5114"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">button_press_event</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-5115" name="line-5115"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5116" name="line-5116"></a> +<a id="line-5117" name="line-5117"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-5118" name="line-5118"></a><span class="p">}</span> +<a id="line-5119" name="line-5119"></a> +<a id="line-5120" name="line-5120"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-5121" name="line-5121"></a><span class="nf">eom_window_focus_out_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventFocus</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-5122" name="line-5122"></a><span class="p">{</span> +<a id="line-5123" name="line-5123"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-5124" name="line-5124"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-5125" name="line-5125"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">fullscreen</span><span class="p">;</span> +<a id="line-5126" name="line-5126"></a> +<a id="line-5127" name="line-5127"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-5128" name="line-5128"></a> +<a id="line-5129" name="line-5129"></a><span class="w"> </span><span class="n">fullscreen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_FULLSCREEN</span><span class="w"> </span><span class="o">||</span> +<a id="line-5130" name="line-5130"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">;</span> +<a id="line-5131" name="line-5131"></a> +<a id="line-5132" name="line-5132"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fullscreen</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5133" name="line-5133"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">fullscreen_popup</span><span class="p">);</span> +<a id="line-5134" name="line-5134"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5135" name="line-5135"></a> +<a id="line-5136" name="line-5136"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">focus_out_event</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="p">);</span> +<a id="line-5137" name="line-5137"></a><span class="p">}</span> +<a id="line-5138" name="line-5138"></a> +<a id="line-5139" name="line-5139"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-5140" name="line-5140"></a><span class="nf">eom_window_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-5141" name="line-5141"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-5142" name="line-5142"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-5143" name="line-5143"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-5144" name="line-5144"></a><span class="p">{</span> +<a id="line-5145" name="line-5145"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-5146" name="line-5146"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-5147" name="line-5147"></a> +<a id="line-5148" name="line-5148"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-5149" name="line-5149"></a> +<a id="line-5150" name="line-5150"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-5151" name="line-5151"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-5152" name="line-5152"></a> +<a id="line-5153" name="line-5153"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5154" name="line-5154"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COLLECTION_POS</span><span class="p">:</span> +<a id="line-5155" name="line-5155"></a><span class="w"> </span><span class="n">eom_window_set_collection_mode</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">g_value_get_enum</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">),</span> +<a id="line-5156" name="line-5156"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collection_resizable</span><span class="p">);</span> +<a id="line-5157" name="line-5157"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5158" name="line-5158"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COLLECTION_RESIZABLE</span><span class="p">:</span> +<a id="line-5159" name="line-5159"></a><span class="w"> </span><span class="n">eom_window_set_collection_mode</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">-></span><span class="n">collection_position</span><span class="p">,</span> +<a id="line-5160" name="line-5160"></a><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-5161" name="line-5161"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5162" name="line-5162"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_STARTUP_FLAGS</span><span class="p">:</span> +<a id="line-5163" name="line-5163"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_flags</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-5164" name="line-5164"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5165" name="line-5165"></a> +<a id="line-5166" name="line-5166"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-5167" name="line-5167"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-5168" name="line-5168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5169" name="line-5169"></a><span class="p">}</span> +<a id="line-5170" name="line-5170"></a> +<a id="line-5171" name="line-5171"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-5172" name="line-5172"></a><span class="nf">eom_window_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-5173" name="line-5173"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-5174" name="line-5174"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-5175" name="line-5175"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-5176" name="line-5176"></a><span class="p">{</span> +<a id="line-5177" name="line-5177"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-5178" name="line-5178"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-5179" name="line-5179"></a> +<a id="line-5180" name="line-5180"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-5181" name="line-5181"></a> +<a id="line-5182" name="line-5182"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-5183" name="line-5183"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-5184" name="line-5184"></a> +<a id="line-5185" name="line-5185"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5186" name="line-5186"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COLLECTION_POS</span><span class="p">:</span> +<a id="line-5187" name="line-5187"></a><span class="w"> </span><span class="n">g_value_set_enum</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collection_position</span><span class="p">);</span> +<a id="line-5188" name="line-5188"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5189" name="line-5189"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COLLECTION_RESIZABLE</span><span class="p">:</span> +<a id="line-5190" name="line-5190"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">collection_resizable</span><span class="p">);</span> +<a id="line-5191" name="line-5191"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5192" name="line-5192"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_STARTUP_FLAGS</span><span class="p">:</span> +<a id="line-5193" name="line-5193"></a><span class="w"> </span><span class="n">g_value_set_flags</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">flags</span><span class="p">);</span> +<a id="line-5194" name="line-5194"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5195" name="line-5195"></a> +<a id="line-5196" name="line-5196"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-5197" name="line-5197"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-5198" name="line-5198"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5199" name="line-5199"></a><span class="p">}</span> +<a id="line-5200" name="line-5200"></a> +<a id="line-5201" name="line-5201"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-5202" name="line-5202"></a><span class="nf">on_extension_added</span><span class="w"> </span><span class="p">(</span><span class="n">PeasExtensionSet</span><span class="w"> </span><span class="o">*</span><span class="n">set</span><span class="p">,</span> +<a id="line-5203" name="line-5203"></a><span class="w"> </span><span class="n">PeasPluginInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span> +<a id="line-5204" name="line-5204"></a><span class="w"> </span><span class="n">PeasExtension</span><span class="w"> </span><span class="o">*</span><span class="n">exten</span><span class="p">,</span> +<a id="line-5205" name="line-5205"></a><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5206" name="line-5206"></a><span class="p">{</span> +<a id="line-5207" name="line-5207"></a><span class="w"> </span><span class="n">peas_extension_call</span><span class="w"> </span><span class="p">(</span><span class="n">exten</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-5208" name="line-5208"></a><span class="p">}</span> +<a id="line-5209" name="line-5209"></a> +<a id="line-5210" name="line-5210"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-5211" name="line-5211"></a><span class="nf">on_extension_removed</span><span class="w"> </span><span class="p">(</span><span class="n">PeasExtensionSet</span><span class="w"> </span><span class="o">*</span><span class="n">set</span><span class="p">,</span> +<a id="line-5212" name="line-5212"></a><span class="w"> </span><span class="n">PeasPluginInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span> +<a id="line-5213" name="line-5213"></a><span class="w"> </span><span class="n">PeasExtension</span><span class="w"> </span><span class="o">*</span><span class="n">exten</span><span class="p">,</span> +<a id="line-5214" name="line-5214"></a><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5215" name="line-5215"></a><span class="p">{</span> +<a id="line-5216" name="line-5216"></a><span class="w"> </span><span class="n">peas_extension_call</span><span class="w"> </span><span class="p">(</span><span class="n">exten</span><span class="p">,</span><span class="w"> </span><span class="s">"deactivate"</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-5217" name="line-5217"></a><span class="p">}</span> +<a id="line-5218" name="line-5218"></a> +<a id="line-5219" name="line-5219"></a><span class="k">static</span><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span> +<a id="line-5220" name="line-5220"></a><span class="nf">eom_window_constructor</span><span class="w"> </span><span class="p">(</span><span class="n">GType</span><span class="w"> </span><span class="n">type</span><span class="p">,</span> +<a id="line-5221" name="line-5221"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_construct_properties</span><span class="p">,</span> +<a id="line-5222" name="line-5222"></a><span class="w"> </span><span class="n">GObjectConstructParam</span><span class="w"> </span><span class="o">*</span><span class="n">construct_params</span><span class="p">)</span> +<a id="line-5223" name="line-5223"></a><span class="p">{</span> +<a id="line-5224" name="line-5224"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">;</span> +<a id="line-5225" name="line-5225"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-5226" name="line-5226"></a> +<a id="line-5227" name="line-5227"></a><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">constructor</span> +<a id="line-5228" name="line-5228"></a><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">n_construct_properties</span><span class="p">,</span><span class="w"> </span><span class="n">construct_params</span><span class="p">);</span> +<a id="line-5229" name="line-5229"></a> +<a id="line-5230" name="line-5230"></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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-5231" name="line-5231"></a> +<a id="line-5232" name="line-5232"></a><span class="w"> </span><span class="n">eom_window_construct_ui</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-5233" name="line-5233"></a> +<a id="line-5234" name="line-5234"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">extensions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">peas_extension_set_new</span><span class="w"> </span><span class="p">(</span><span class="n">PEAS_ENGINE</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_APP</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">plugin_engine</span><span class="p">),</span> +<a id="line-5235" name="line-5235"></a><span class="w"> </span><span class="n">EOM_TYPE_WINDOW_ACTIVATABLE</span><span class="p">,</span> +<a id="line-5236" name="line-5236"></a><span class="w"> </span><span class="s">"window"</span><span class="p">,</span> +<a id="line-5237" name="line-5237"></a><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-5238" name="line-5238"></a> +<a id="line-5239" name="line-5239"></a><span class="w"> </span><span class="n">peas_extension_set_call</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">extensions</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">);</span> +<a id="line-5240" name="line-5240"></a> +<a id="line-5241" name="line-5241"></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">-></span><span class="n">extensions</span><span class="p">,</span><span class="w"> </span><span class="s">"extension-added"</span><span class="p">,</span> +<a id="line-5242" name="line-5242"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_extension_added</span><span class="p">),</span> +<a id="line-5243" name="line-5243"></a><span class="w"> </span><span class="n">object</span><span class="p">);</span> +<a id="line-5244" name="line-5244"></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">-></span><span class="n">extensions</span><span class="p">,</span><span class="w"> </span><span class="s">"extension-removed"</span><span class="p">,</span> +<a id="line-5245" name="line-5245"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_extension_removed</span><span class="p">),</span> +<a id="line-5246" name="line-5246"></a><span class="w"> </span><span class="n">object</span><span class="p">);</span> +<a id="line-5247" name="line-5247"></a> +<a id="line-5248" name="line-5248"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">object</span><span class="p">;</span> +<a id="line-5249" name="line-5249"></a><span class="p">}</span> +<a id="line-5250" name="line-5250"></a> +<a id="line-5251" name="line-5251"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-5252" name="line-5252"></a><span class="nf">eom_window_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindowClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span> +<a id="line-5253" name="line-5253"></a><span class="p">{</span> +<a id="line-5254" name="line-5254"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">g_object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">class</span><span class="p">;</span> +<a id="line-5255" name="line-5255"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">class</span><span class="p">;</span> +<a id="line-5256" name="line-5256"></a> +<a id="line-5257" name="line-5257"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">constructor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_constructor</span><span class="p">;</span> +<a id="line-5258" name="line-5258"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_dispose</span><span class="p">;</span> +<a id="line-5259" name="line-5259"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_set_property</span><span class="p">;</span> +<a id="line-5260" name="line-5260"></a><span class="w"> </span><span class="n">g_object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_property</span><span class="p">;</span> +<a id="line-5261" name="line-5261"></a> +<a id="line-5262" name="line-5262"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-></span><span class="n">delete_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_delete</span><span class="p">;</span> +<a id="line-5263" name="line-5263"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-></span><span class="n">key_press_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_key_press</span><span class="p">;</span> +<a id="line-5264" name="line-5264"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-></span><span class="n">button_press_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_button_press</span><span class="p">;</span> +<a id="line-5265" name="line-5265"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-></span><span class="n">drag_data_received</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_drag_data_received</span><span class="p">;</span> +<a id="line-5266" name="line-5266"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-></span><span class="n">focus_out_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_focus_out_event</span><span class="p">;</span> +<a id="line-5267" name="line-5267"></a> +<a id="line-5268" name="line-5268"></a><span class="cm">/**</span> +<a id="line-5269" name="line-5269"></a><span class="cm"> * EomWindow:collection-position:</span> +<a id="line-5270" name="line-5270"></a><span class="cm"> *</span> +<a id="line-5271" name="line-5271"></a><span class="cm"> * Determines the position of the image collection in the window</span> +<a id="line-5272" name="line-5272"></a><span class="cm"> * relative to the image.</span> +<a id="line-5273" name="line-5273"></a><span class="cm"> */</span> +<a id="line-5274" name="line-5274"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-5275" name="line-5275"></a><span class="w"> </span><span class="n">g_object_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_COLLECTION_POS</span><span class="p">,</span> +<a id="line-5276" name="line-5276"></a><span class="w"> </span><span class="n">g_param_spec_enum</span><span class="w"> </span><span class="p">(</span><span class="s">"collection-position"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5277" name="line-5277"></a><span class="w"> </span><span class="n">EOM_TYPE_WINDOW_COLLECTION_POS</span><span class="p">,</span> +<a id="line-5278" name="line-5278"></a><span class="w"> </span><span class="n">EOM_WINDOW_COLLECTION_POS_BOTTOM</span><span class="p">,</span> +<a id="line-5279" name="line-5279"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-5280" name="line-5280"></a> +<a id="line-5281" name="line-5281"></a><span class="cm">/**</span> +<a id="line-5282" name="line-5282"></a><span class="cm"> * EomWindow:collection-resizable:</span> +<a id="line-5283" name="line-5283"></a><span class="cm"> *</span> +<a id="line-5284" name="line-5284"></a><span class="cm"> * If %TRUE the collection will be resizable by the user otherwise it will be</span> +<a id="line-5285" name="line-5285"></a><span class="cm"> * in single column/row mode.</span> +<a id="line-5286" name="line-5286"></a><span class="cm"> */</span> +<a id="line-5287" name="line-5287"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-5288" name="line-5288"></a><span class="w"> </span><span class="n">g_object_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_COLLECTION_RESIZABLE</span><span class="p">,</span> +<a id="line-5289" name="line-5289"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">"collection-resizable"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-5290" name="line-5290"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="p">));</span> +<a id="line-5291" name="line-5291"></a> +<a id="line-5292" name="line-5292"></a><span class="cm">/**</span> +<a id="line-5293" name="line-5293"></a><span class="cm"> * EomWindow:startup-flags:</span> +<a id="line-5294" name="line-5294"></a><span class="cm"> *</span> +<a id="line-5295" name="line-5295"></a><span class="cm"> * A bitwise OR of #EomStartupFlags elements, indicating how the window</span> +<a id="line-5296" name="line-5296"></a><span class="cm"> * should behave upon creation.</span> +<a id="line-5297" name="line-5297"></a><span class="cm"> */</span> +<a id="line-5298" name="line-5298"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_class</span><span class="p">,</span> +<a id="line-5299" name="line-5299"></a><span class="w"> </span><span class="n">PROP_STARTUP_FLAGS</span><span class="p">,</span> +<a id="line-5300" name="line-5300"></a><span class="w"> </span><span class="n">g_param_spec_flags</span><span class="w"> </span><span class="p">(</span><span class="s">"startup-flags"</span><span class="p">,</span> +<a id="line-5301" name="line-5301"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5302" name="line-5302"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5303" name="line-5303"></a><span class="w"> </span><span class="n">EOM_TYPE_STARTUP_FLAGS</span><span class="p">,</span> +<a id="line-5304" name="line-5304"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-5305" name="line-5305"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span> +<a id="line-5306" name="line-5306"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="p">));</span> +<a id="line-5307" name="line-5307"></a> +<a id="line-5308" name="line-5308"></a><span class="cm">/**</span> +<a id="line-5309" name="line-5309"></a><span class="cm"> * EomWindow::prepared:</span> +<a id="line-5310" name="line-5310"></a><span class="cm"> * @window: the object which received the signal.</span> +<a id="line-5311" name="line-5311"></a><span class="cm"> *</span> +<a id="line-5312" name="line-5312"></a><span class="cm"> * The #EomWindow::prepared signal is emitted when the @window is ready</span> +<a id="line-5313" name="line-5313"></a><span class="cm"> * to be shown.</span> +<a id="line-5314" name="line-5314"></a><span class="cm"> */</span> +<a id="line-5315" name="line-5315"></a><span class="w"> </span><span class="n">signals</span><span class="w"> </span><span class="p">[</span><span class="n">SIGNAL_PREPARED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-5316" name="line-5316"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"prepared"</span><span class="p">,</span> +<a id="line-5317" name="line-5317"></a><span class="w"> </span><span class="n">EOM_TYPE_WINDOW</span><span class="p">,</span> +<a id="line-5318" name="line-5318"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-5319" name="line-5319"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindowClass</span><span class="p">,</span><span class="w"> </span><span class="n">prepared</span><span class="p">),</span> +<a id="line-5320" name="line-5320"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-5321" name="line-5321"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span> +<a id="line-5322" name="line-5322"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-5323" name="line-5323"></a><span class="p">}</span> +<a id="line-5324" name="line-5324"></a> +<a id="line-5325" name="line-5325"></a><span class="cm">/**</span> +<a id="line-5326" name="line-5326"></a><span class="cm"> * eom_window_new:</span> +<a id="line-5327" name="line-5327"></a><span class="cm"> * @flags: the initialization parameters for the new window.</span> +<a id="line-5328" name="line-5328"></a><span class="cm"> *</span> +<a id="line-5329" name="line-5329"></a><span class="cm"> *</span> +<a id="line-5330" name="line-5330"></a><span class="cm"> * Creates a new and empty #EomWindow. Use @flags to indicate</span> +<a id="line-5331" name="line-5331"></a><span class="cm"> * if the window should be initialized fullscreen, in slideshow mode,</span> +<a id="line-5332" name="line-5332"></a><span class="cm"> * and/or without the thumbnails collection visible. See #EomStartupFlags.</span> +<a id="line-5333" name="line-5333"></a><span class="cm"> *</span> +<a id="line-5334" name="line-5334"></a><span class="cm"> * Returns: a newly created #EomWindow.</span> +<a id="line-5335" name="line-5335"></a><span class="cm"> **/</span> +<a id="line-5336" name="line-5336"></a><span class="n">GtkWidget</span><span class="o">*</span> +<a id="line-5337" name="line-5337"></a><span class="nf">eom_window_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomStartupFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">)</span> +<a id="line-5338" name="line-5338"></a><span class="p">{</span> +<a id="line-5339" name="line-5339"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-5340" name="line-5340"></a> +<a id="line-5341" name="line-5341"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-5342" name="line-5342"></a> +<a id="line-5343" name="line-5343"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_WINDOW</span><span class="p">,</span> +<a id="line-5344" name="line-5344"></a><span class="w"> </span><span class="s">"type"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_WINDOW_TOPLEVEL</span><span class="p">,</span> +<a id="line-5345" name="line-5345"></a><span class="w"> </span><span class="s">"application"</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_APP</span><span class="p">,</span> +<a id="line-5346" name="line-5346"></a><span class="w"> </span><span class="s">"show-menubar"</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-5347" name="line-5347"></a><span class="w"> </span><span class="s">"startup-flags"</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span> +<a id="line-5348" name="line-5348"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-5349" name="line-5349"></a> +<a id="line-5350" name="line-5350"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-5351" name="line-5351"></a><span class="p">}</span> +<a id="line-5352" name="line-5352"></a> +<a id="line-5353" name="line-5353"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-5354" name="line-5354"></a><span class="nf">eom_window_list_store_image_added</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">tree_model</span><span class="p">,</span> +<a id="line-5355" name="line-5355"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span> +<a id="line-5356" name="line-5356"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">,</span> +<a id="line-5357" name="line-5357"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-5358" name="line-5358"></a><span class="p">{</span> +<a id="line-5359" name="line-5359"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-5360" name="line-5360"></a> +<a id="line-5361" name="line-5361"></a><span class="w"> </span><span class="n">update_image_pos</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-5362" name="line-5362"></a><span class="w"> </span><span class="n">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-5363" name="line-5363"></a><span class="p">}</span> +<a id="line-5364" name="line-5364"></a> +<a id="line-5365" name="line-5365"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-5366" name="line-5366"></a><span class="nf">eom_window_list_store_image_removed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">tree_model</span><span class="p">,</span> +<a id="line-5367" name="line-5367"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span> +<a id="line-5368" name="line-5368"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-5369" name="line-5369"></a><span class="p">{</span> +<a id="line-5370" name="line-5370"></a><span class="w"> </span><span class="n">EomWindow</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">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span> +<a id="line-5371" name="line-5371"></a> +<a id="line-5372" name="line-5372"></a><span class="w"> </span><span class="n">update_image_pos</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-5373" name="line-5373"></a><span class="w"> </span><span class="n">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-5374" name="line-5374"></a><span class="p">}</span> +<a id="line-5375" name="line-5375"></a> +<a id="line-5376" name="line-5376"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-5377" name="line-5377"></a><span class="nf">eom_job_model_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomJobModel</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-5378" name="line-5378"></a><span class="p">{</span> +<a id="line-5379" name="line-5379"></a><span class="w"> </span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-5380" name="line-5380"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-5381" name="line-5381"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span> +<a id="line-5382" name="line-5382"></a> +<a id="line-5383" name="line-5383"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-5384" name="line-5384"></a> +<a id="line-5385" name="line-5385"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-5386" name="line-5386"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-5387" name="line-5387"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-5388" name="line-5388"></a><span class="cp">#endif</span> +<a id="line-5389" name="line-5389"></a> +<a id="line-5390" name="line-5390"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span> +<a id="line-5391" name="line-5391"></a> +<a id="line-5392" name="line-5392"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-5393" name="line-5393"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-5394" name="line-5394"></a> +<a id="line-5395" name="line-5395"></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">-></span><span class="n">store</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5396" name="line-5396"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">);</span> +<a id="line-5397" name="line-5397"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-5398" name="line-5398"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5399" name="line-5399"></a> +<a id="line-5400" name="line-5400"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="o">-></span><span class="n">store</span><span class="p">);</span> +<a id="line-5401" name="line-5401"></a> +<a id="line-5402" name="line-5402"></a><span class="w"> </span><span class="n">n_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">));</span> +<a id="line-5403" name="line-5403"></a> +<a id="line-5404" name="line-5404"></a><span class="cp">#ifdef HAVE_EXIF</span> +<a id="line-5405" name="line-5405"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</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">-></span><span class="n">view_settings</span><span class="p">,</span><span class="w"> </span><span class="n">EOM_CONF_VIEW_AUTOROTATE</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-5406" name="line-5406"></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"><</span><span class="w"> </span><span class="n">n_images</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5407" name="line-5407"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_list_store_get_image_by_pos</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-5408" name="line-5408"></a><span class="w"> </span><span class="n">eom_image_autorotate</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-5409" name="line-5409"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-5410" name="line-5410"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5411" name="line-5411"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5412" name="line-5412"></a><span class="cp">#endif</span> +<a id="line-5413" name="line-5413"></a> +<a id="line-5414" name="line-5414"></a><span class="w"> </span><span class="n">eom_thumb_view_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">);</span> +<a id="line-5415" name="line-5415"></a> +<a id="line-5416" name="line-5416"></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">-></span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="s">"row-inserted"</span><span class="p">,</span> +<a id="line-5417" name="line-5417"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_list_store_image_added</span><span class="p">),</span> +<a id="line-5418" name="line-5418"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-5419" name="line-5419"></a> +<a id="line-5420" name="line-5420"></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">-></span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="s">"row-deleted"</span><span class="p">,</span> +<a id="line-5421" name="line-5421"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_window_list_store_image_removed</span><span class="p">),</span> +<a id="line-5422" name="line-5422"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-5423" name="line-5423"></a> +<a id="line-5424" name="line-5424"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_images</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5425" name="line-5425"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_files</span><span class="p">;</span> +<a id="line-5426" name="line-5426"></a> +<a id="line-5427" name="line-5427"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_NORMAL</span><span class="p">;</span> +<a id="line-5428" name="line-5428"></a><span class="w"> </span><span class="n">update_action_groups_state</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-5429" name="line-5429"></a> +<a id="line-5430" name="line-5430"></a><span class="w"> </span><span class="n">n_files</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_length</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">file_list</span><span class="p">);</span> +<a id="line-5431" name="line-5431"></a> +<a id="line-5432" name="line-5432"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_files</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5433" name="line-5433"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">;</span> +<a id="line-5434" name="line-5434"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-5435" name="line-5435"></a> +<a id="line-5436" name="line-5436"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_files</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5437" name="line-5437"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">file_list</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-5438" name="line-5438"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5439" name="line-5439"></a> +<a id="line-5440" name="line-5440"></a><span class="w"> </span><span class="n">message_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_no_images_error_message_area_new</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-5441" name="line-5441"></a> +<a id="line-5442" name="line-5442"></a><span class="w"> </span><span class="n">eom_window_set_message_area</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">message_area</span><span class="p">);</span> +<a id="line-5443" name="line-5443"></a> +<a id="line-5444" name="line-5444"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">message_area</span><span class="p">);</span> +<a id="line-5445" name="line-5445"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5446" name="line-5446"></a> +<a id="line-5447" name="line-5447"></a><span class="w"> </span><span class="n">g_signal_emit</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">signals</span><span class="p">[</span><span class="n">SIGNAL_PREPARED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-5448" name="line-5448"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5449" name="line-5449"></a><span class="p">}</span> +<a id="line-5450" name="line-5450"></a> +<a id="line-5451" name="line-5451"></a><span class="cm">/**</span> +<a id="line-5452" name="line-5452"></a><span class="cm"> * eom_window_open_file_list:</span> +<a id="line-5453" name="line-5453"></a><span class="cm"> * @window: An #EomWindow.</span> +<a id="line-5454" name="line-5454"></a><span class="cm"> * @file_list: (element-type GFile): A %NULL-terminated list of #GFile's.</span> +<a id="line-5455" name="line-5455"></a><span class="cm"> *</span> +<a id="line-5456" name="line-5456"></a><span class="cm"> * Opens a list of files, adding them to the collection in @window.</span> +<a id="line-5457" name="line-5457"></a><span class="cm"> * Files will be checked to be readable and later filtered according</span> +<a id="line-5458" name="line-5458"></a><span class="cm"> * with eom_list_store_add_files().</span> +<a id="line-5459" name="line-5459"></a><span class="cm"> **/</span> +<a id="line-5460" name="line-5460"></a><span class="kt">void</span> +<a id="line-5461" name="line-5461"></a><span class="nf">eom_window_open_file_list</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">)</span> +<a id="line-5462" name="line-5462"></a><span class="p">{</span> +<a id="line-5463" name="line-5463"></a><span class="w"> </span><span class="n">EomJob</span><span class="w"> </span><span class="o">*</span><span class="n">job</span><span class="p">;</span> +<a id="line-5464" name="line-5464"></a> +<a id="line-5465" name="line-5465"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-5466" name="line-5466"></a> +<a id="line-5467" name="line-5467"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_WINDOW_STATUS_INIT</span><span class="p">;</span> +<a id="line-5468" name="line-5468"></a> +<a id="line-5469" name="line-5469"></a><span class="w"> </span><span class="n">g_slist_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GFunc</span><span class="p">)</span><span class="w"> </span><span class="n">g_object_ref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-5470" name="line-5470"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_list</span><span class="p">;</span> +<a id="line-5471" name="line-5471"></a> +<a id="line-5472" name="line-5472"></a><span class="w"> </span><span class="n">job</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_job_model_new</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">);</span> +<a id="line-5473" name="line-5473"></a> +<a id="line-5474" name="line-5474"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">,</span><span class="w"> </span><span class="s">"finished"</span><span class="p">,</span> +<a id="line-5475" name="line-5475"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">eom_job_model_cb</span><span class="p">),</span> +<a id="line-5476" name="line-5476"></a><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-5477" name="line-5477"></a> +<a id="line-5478" name="line-5478"></a><span class="w"> </span><span class="n">eom_job_queue_add_job</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-5479" name="line-5479"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">job</span><span class="p">);</span> +<a id="line-5480" name="line-5480"></a><span class="p">}</span> +<a id="line-5481" name="line-5481"></a> +<a id="line-5482" name="line-5482"></a><span class="cm">/**</span> +<a id="line-5483" name="line-5483"></a><span class="cm"> * eom_window_get_ui_manager:</span> +<a id="line-5484" name="line-5484"></a><span class="cm"> * @window: An #EomWindow.</span> +<a id="line-5485" name="line-5485"></a><span class="cm"> *</span> +<a id="line-5486" name="line-5486"></a><span class="cm"> * Gets the #GtkUIManager that describes the UI of @window.</span> +<a id="line-5487" name="line-5487"></a><span class="cm"> *</span> +<a id="line-5488" name="line-5488"></a><span class="cm"> * Returns: (transfer none): A #GtkUIManager.</span> +<a id="line-5489" name="line-5489"></a><span class="cm"> **/</span> +<a id="line-5490" name="line-5490"></a><span class="n">GtkUIManager</span><span class="w"> </span><span class="o">*</span> +<a id="line-5491" name="line-5491"></a><span class="nf">eom_window_get_ui_manager</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5492" name="line-5492"></a><span class="p">{</span> +<a id="line-5493" name="line-5493"></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">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-5494" name="line-5494"></a> +<a id="line-5495" name="line-5495"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui_mgr</span><span class="p">;</span> +<a id="line-5496" name="line-5496"></a><span class="p">}</span> +<a id="line-5497" name="line-5497"></a> +<a id="line-5498" name="line-5498"></a><span class="cm">/**</span> +<a id="line-5499" name="line-5499"></a><span class="cm"> * eom_window_get_mode:</span> +<a id="line-5500" name="line-5500"></a><span class="cm"> * @window: An #EomWindow.</span> +<a id="line-5501" name="line-5501"></a><span class="cm"> *</span> +<a id="line-5502" name="line-5502"></a><span class="cm"> * Gets the mode of @window. See #EomWindowMode for details.</span> +<a id="line-5503" name="line-5503"></a><span class="cm"> *</span> +<a id="line-5504" name="line-5504"></a><span class="cm"> * Returns: An #EomWindowMode.</span> +<a id="line-5505" name="line-5505"></a><span class="cm"> **/</span> +<a id="line-5506" name="line-5506"></a><span class="n">EomWindowMode</span> +<a id="line-5507" name="line-5507"></a><span class="nf">eom_window_get_mode</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5508" name="line-5508"></a><span class="p">{</span> +<a id="line-5509" name="line-5509"></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">EOM_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">EOM_WINDOW_MODE_UNKNOWN</span><span class="p">);</span> +<a id="line-5510" name="line-5510"></a> +<a id="line-5511" name="line-5511"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="p">;</span> +<a id="line-5512" name="line-5512"></a><span class="p">}</span> +<a id="line-5513" name="line-5513"></a> +<a id="line-5514" name="line-5514"></a><span class="cm">/**</span> +<a id="line-5515" name="line-5515"></a><span class="cm"> * eom_window_set_mode:</span> +<a id="line-5516" name="line-5516"></a><span class="cm"> * @window: an #EomWindow.</span> +<a id="line-5517" name="line-5517"></a><span class="cm"> * @mode: an #EomWindowMode value.</span> +<a id="line-5518" name="line-5518"></a><span class="cm"> *</span> +<a id="line-5519" name="line-5519"></a><span class="cm"> * Changes the mode of @window to normal, fullscreen, or slideshow.</span> +<a id="line-5520" name="line-5520"></a><span class="cm"> * See #EomWindowMode for details.</span> +<a id="line-5521" name="line-5521"></a><span class="cm"> **/</span> +<a id="line-5522" name="line-5522"></a><span class="kt">void</span> +<a id="line-5523" name="line-5523"></a><span class="nf">eom_window_set_mode</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">EomWindowMode</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-5524" name="line-5524"></a><span class="p">{</span> +<a id="line-5525" name="line-5525"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-5526" name="line-5526"></a> +<a id="line-5527" name="line-5527"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-5528" name="line-5528"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-5529" name="line-5529"></a> +<a id="line-5530" name="line-5530"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5531" name="line-5531"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_WINDOW_MODE_NORMAL</span><span class="p">:</span> +<a id="line-5532" name="line-5532"></a><span class="w"> </span><span class="n">eom_window_stop_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span> +<a id="line-5533" name="line-5533"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">);</span> +<a id="line-5534" name="line-5534"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5535" name="line-5535"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_WINDOW_MODE_FULLSCREEN</span><span class="p">:</span> +<a id="line-5536" name="line-5536"></a><span class="w"> </span><span class="n">eom_window_run_fullscreen</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> +<a id="line-5537" name="line-5537"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5538" name="line-5538"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_WINDOW_MODE_SLIDESHOW</span><span class="p">:</span> +<a id="line-5539" name="line-5539"></a><span class="w"> </span><span class="n">eom_window_run_fullscreen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-5540" name="line-5540"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5541" name="line-5541"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">EOM_WINDOW_MODE_UNKNOWN</span><span class="p">:</span> +<a id="line-5542" name="line-5542"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-5543" name="line-5543"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5544" name="line-5544"></a><span class="p">}</span> +<a id="line-5545" name="line-5545"></a> +<a id="line-5546" name="line-5546"></a><span class="cm">/**</span> +<a id="line-5547" name="line-5547"></a><span class="cm"> * eom_window_get_store:</span> +<a id="line-5548" name="line-5548"></a><span class="cm"> * @window: An #EomWindow.</span> +<a id="line-5549" name="line-5549"></a><span class="cm"> *</span> +<a id="line-5550" name="line-5550"></a><span class="cm"> * Gets the #EomListStore that contains the images in the collection</span> +<a id="line-5551" name="line-5551"></a><span class="cm"> * of @window.</span> +<a id="line-5552" name="line-5552"></a><span class="cm"> *</span> +<a id="line-5553" name="line-5553"></a><span class="cm"> * Returns: (transfer none): an #EomListStore.</span> +<a id="line-5554" name="line-5554"></a><span class="cm"> **/</span> +<a id="line-5555" name="line-5555"></a><span class="n">EomListStore</span><span class="w"> </span><span class="o">*</span> +<a id="line-5556" name="line-5556"></a><span class="nf">eom_window_get_store</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5557" name="line-5557"></a><span class="p">{</span> +<a id="line-5558" name="line-5558"></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">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-5559" name="line-5559"></a> +<a id="line-5560" name="line-5560"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">);</span> +<a id="line-5561" name="line-5561"></a><span class="p">}</span> +<a id="line-5562" name="line-5562"></a> +<a id="line-5563" name="line-5563"></a><span class="cm">/**</span> +<a id="line-5564" name="line-5564"></a><span class="cm"> * eom_window_get_view:</span> +<a id="line-5565" name="line-5565"></a><span class="cm"> * @window: An #EomWindow.</span> +<a id="line-5566" name="line-5566"></a><span class="cm"> *</span> +<a id="line-5567" name="line-5567"></a><span class="cm"> * Gets the #EomScrollView in the window.</span> +<a id="line-5568" name="line-5568"></a><span class="cm"> *</span> +<a id="line-5569" name="line-5569"></a><span class="cm"> * Returns: (transfer none): the #EomScrollView.</span> +<a id="line-5570" name="line-5570"></a><span class="cm"> **/</span> +<a id="line-5571" name="line-5571"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-5572" name="line-5572"></a><span class="nf">eom_window_get_view</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5573" name="line-5573"></a><span class="p">{</span> +<a id="line-5574" name="line-5574"></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">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-5575" name="line-5575"></a> +<a id="line-5576" name="line-5576"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view</span><span class="p">;</span> +<a id="line-5577" name="line-5577"></a><span class="p">}</span> +<a id="line-5578" name="line-5578"></a> +<a id="line-5579" name="line-5579"></a><span class="cm">/**</span> +<a id="line-5580" name="line-5580"></a><span class="cm"> * eom_window_get_sidebar:</span> +<a id="line-5581" name="line-5581"></a><span class="cm"> * @window: An #EomWindow.</span> +<a id="line-5582" name="line-5582"></a><span class="cm"> *</span> +<a id="line-5583" name="line-5583"></a><span class="cm"> * Gets the sidebar widget of @window.</span> +<a id="line-5584" name="line-5584"></a><span class="cm"> *</span> +<a id="line-5585" name="line-5585"></a><span class="cm"> * Returns: (transfer none): the #EomSidebar.</span> +<a id="line-5586" name="line-5586"></a><span class="cm"> **/</span> +<a id="line-5587" name="line-5587"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-5588" name="line-5588"></a><span class="nf">eom_window_get_sidebar</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5589" name="line-5589"></a><span class="p">{</span> +<a id="line-5590" name="line-5590"></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">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-5591" name="line-5591"></a> +<a id="line-5592" name="line-5592"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">sidebar</span><span class="p">;</span> +<a id="line-5593" name="line-5593"></a><span class="p">}</span> +<a id="line-5594" name="line-5594"></a> +<a id="line-5595" name="line-5595"></a><span class="cm">/**</span> +<a id="line-5596" name="line-5596"></a><span class="cm"> * eom_window_get_thumb_view:</span> +<a id="line-5597" name="line-5597"></a><span class="cm"> * @window: an #EomWindow.</span> +<a id="line-5598" name="line-5598"></a><span class="cm"> *</span> +<a id="line-5599" name="line-5599"></a><span class="cm"> * Gets the thumbnails view in @window.</span> +<a id="line-5600" name="line-5600"></a><span class="cm"> *</span> +<a id="line-5601" name="line-5601"></a><span class="cm"> * Returns: (transfer none): an #EomThumbView.</span> +<a id="line-5602" name="line-5602"></a><span class="cm"> **/</span> +<a id="line-5603" name="line-5603"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-5604" name="line-5604"></a><span class="nf">eom_window_get_thumb_view</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5605" name="line-5605"></a><span class="p">{</span> +<a id="line-5606" name="line-5606"></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">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-5607" name="line-5607"></a> +<a id="line-5608" name="line-5608"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">;</span> +<a id="line-5609" name="line-5609"></a><span class="p">}</span> +<a id="line-5610" name="line-5610"></a> +<a id="line-5611" name="line-5611"></a><span class="cm">/**</span> +<a id="line-5612" name="line-5612"></a><span class="cm"> * eom_window_get_thumb_nav:</span> +<a id="line-5613" name="line-5613"></a><span class="cm"> * @window: an #EomWindow.</span> +<a id="line-5614" name="line-5614"></a><span class="cm"> *</span> +<a id="line-5615" name="line-5615"></a><span class="cm"> * Gets the thumbnails navigation pane in @window.</span> +<a id="line-5616" name="line-5616"></a><span class="cm"> *</span> +<a id="line-5617" name="line-5617"></a><span class="cm"> * Returns: (transfer none): an #EomThumbNav.</span> +<a id="line-5618" name="line-5618"></a><span class="cm"> **/</span> +<a id="line-5619" name="line-5619"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-5620" name="line-5620"></a><span class="nf">eom_window_get_thumb_nav</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5621" name="line-5621"></a><span class="p">{</span> +<a id="line-5622" name="line-5622"></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">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-5623" name="line-5623"></a> +<a id="line-5624" name="line-5624"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">nav</span><span class="p">;</span> +<a id="line-5625" name="line-5625"></a><span class="p">}</span> +<a id="line-5626" name="line-5626"></a> +<a id="line-5627" name="line-5627"></a><span class="cm">/**</span> +<a id="line-5628" name="line-5628"></a><span class="cm"> * eom_window_get_statusbar:</span> +<a id="line-5629" name="line-5629"></a><span class="cm"> * @window: an #EomWindow.</span> +<a id="line-5630" name="line-5630"></a><span class="cm"> *</span> +<a id="line-5631" name="line-5631"></a><span class="cm"> * Gets the statusbar in @window.</span> +<a id="line-5632" name="line-5632"></a><span class="cm"> *</span> +<a id="line-5633" name="line-5633"></a><span class="cm"> * Returns: (transfer none): a #EomStatusBar.</span> +<a id="line-5634" name="line-5634"></a><span class="cm"> **/</span> +<a id="line-5635" name="line-5635"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-5636" name="line-5636"></a><span class="nf">eom_window_get_statusbar</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5637" name="line-5637"></a><span class="p">{</span> +<a id="line-5638" name="line-5638"></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">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-5639" name="line-5639"></a> +<a id="line-5640" name="line-5640"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">statusbar</span><span class="p">;</span> +<a id="line-5641" name="line-5641"></a><span class="p">}</span> +<a id="line-5642" name="line-5642"></a> +<a id="line-5643" name="line-5643"></a><span class="cm">/**</span> +<a id="line-5644" name="line-5644"></a><span class="cm"> * eom_window_get_image:</span> +<a id="line-5645" name="line-5645"></a><span class="cm"> * @window: an #EomWindow.</span> +<a id="line-5646" name="line-5646"></a><span class="cm"> *</span> +<a id="line-5647" name="line-5647"></a><span class="cm"> * Gets the image currently displayed in @window or %NULL if</span> +<a id="line-5648" name="line-5648"></a><span class="cm"> * no image is being displayed.</span> +<a id="line-5649" name="line-5649"></a><span class="cm"> *</span> +<a id="line-5650" name="line-5650"></a><span class="cm"> * Returns: (transfer none): an #EomImage.</span> +<a id="line-5651" name="line-5651"></a><span class="cm"> **/</span> +<a id="line-5652" name="line-5652"></a><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span> +<a id="line-5653" name="line-5653"></a><span class="nf">eom_window_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5654" name="line-5654"></a><span class="p">{</span> +<a id="line-5655" name="line-5655"></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">EOM_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="nb">NULL</span><span class="p">);</span> +<a id="line-5656" name="line-5656"></a> +<a id="line-5657" name="line-5657"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">;</span> +<a id="line-5658" name="line-5658"></a><span class="p">}</span> +<a id="line-5659" name="line-5659"></a> +<a id="line-5660" name="line-5660"></a><span class="cm">/**</span> +<a id="line-5661" name="line-5661"></a><span class="cm"> * eom_window_is_empty:</span> +<a id="line-5662" name="line-5662"></a><span class="cm"> * @window: an #EomWindow.</span> +<a id="line-5663" name="line-5663"></a><span class="cm"> *</span> +<a id="line-5664" name="line-5664"></a><span class="cm"> * Tells whether @window is currently empty or not.</span> +<a id="line-5665" name="line-5665"></a><span class="cm"> *</span> +<a id="line-5666" name="line-5666"></a><span class="cm"> * Returns: %TRUE if @window has no images, %FALSE otherwise.</span> +<a id="line-5667" name="line-5667"></a><span class="cm"> **/</span> +<a id="line-5668" name="line-5668"></a><span class="n">gboolean</span> +<a id="line-5669" name="line-5669"></a><span class="nf">eom_window_is_empty</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5670" name="line-5670"></a><span class="p">{</span> +<a id="line-5671" name="line-5671"></a><span class="w"> </span><span class="n">EomWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-5672" name="line-5672"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">empty</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-5673" name="line-5673"></a> +<a id="line-5674" name="line-5674"></a><span class="w"> </span><span class="n">eom_debug</span><span class="w"> </span><span class="p">(</span><span class="n">DEBUG_WINDOW</span><span class="p">);</span> +<a id="line-5675" name="line-5675"></a> +<a id="line-5676" name="line-5676"></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">EOM_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> +<a id="line-5677" name="line-5677"></a> +<a id="line-5678" name="line-5678"></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">window</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-5679" name="line-5679"></a> +<a id="line-5680" name="line-5680"></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">-></span><span class="n">store</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-5681" name="line-5681"></a><span class="w"> </span><span class="n">empty</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">eom_list_store_length</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">store</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-5682" name="line-5682"></a><span class="w"> </span><span class="p">}</span> +<a id="line-5683" name="line-5683"></a> +<a id="line-5684" name="line-5684"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">empty</span><span class="p">;</span> +<a id="line-5685" name="line-5685"></a><span class="p">}</span> +<a id="line-5686" name="line-5686"></a> +<a id="line-5687" name="line-5687"></a><span class="kt">void</span> +<a id="line-5688" name="line-5688"></a><span class="nf">eom_window_reload_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-5689" name="line-5689"></a><span class="p">{</span> +<a id="line-5690" name="line-5690"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">view</span><span class="p">;</span> +<a id="line-5691" name="line-5691"></a> +<a id="line-5692" name="line-5692"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-5693" name="line-5693"></a> +<a id="line-5694" name="line-5694"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-5695" name="line-5695"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-5696" name="line-5696"></a> +<a id="line-5697" name="line-5697"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">);</span> +<a id="line-5698" name="line-5698"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-5699" name="line-5699"></a> +<a id="line-5700" name="line-5700"></a><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_window_get_view</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-5701" name="line-5701"></a><span class="w"> </span><span class="n">eom_scroll_view_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_SCROLL_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">view</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-5702" name="line-5702"></a> +<a id="line-5703" name="line-5703"></a><span class="w"> </span><span class="n">eom_thumb_view_select_single</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_THUMB_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">thumbview</span><span class="p">),</span> +<a id="line-5704" name="line-5704"></a><span class="w"> </span><span class="n">EOM_THUMB_VIEW_SELECT_CURRENT</span><span class="p">);</span> +<a id="line-5705" name="line-5705"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/4.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/4.html new file mode 100644 index 0000000..ddb80ad --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/4.html @@ -0,0 +1,659 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: jpegutils/transupp-8a.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> transupp-8a.h</p> +<a href="4.html#line-159"> unknownMacro 159</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * transupp.h</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 1997-2009, Thomas G. Lane, Guido Vollbeding.</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This file is part of the Independent JPEG Group's software.</span> +<a id="line-6" name="line-6"></a><span class="cm"> * For conditions of distribution and use, see the accompanying README file.</span> +<a id="line-7" name="line-7"></a><span class="cm"> *</span> +<a id="line-8" name="line-8"></a><span class="cm"> * This file contains declarations for image transformation routines and</span> +<a id="line-9" name="line-9"></a><span class="cm"> * other utility code used by the jpegtran sample application. These are</span> +<a id="line-10" name="line-10"></a><span class="cm"> * NOT part of the core JPEG library. But we keep these routines separate</span> +<a id="line-11" name="line-11"></a><span class="cm"> * from jpegtran.c to ease the task of maintaining jpegtran-like programs</span> +<a id="line-12" name="line-12"></a><span class="cm"> * that have other user interfaces.</span> +<a id="line-13" name="line-13"></a><span class="cm"> *</span> +<a id="line-14" name="line-14"></a><span class="cm"> * NOTE: all the routines declared here have very specific requirements</span> +<a id="line-15" name="line-15"></a><span class="cm"> * about when they are to be executed during the reading and writing of the</span> +<a id="line-16" name="line-16"></a><span class="cm"> * source and destination files. See the comments in transupp.c, or see</span> +<a id="line-17" name="line-17"></a><span class="cm"> * jpegtran.c for an example of correct usage.</span> +<a id="line-18" name="line-18"></a><span class="cm"> */</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="cm">/* If you happen not to want the image transform support, disable it here */</span> +<a id="line-21" name="line-21"></a><span class="cp">#ifndef TRANSFORMS_SUPPORTED</span> +<a id="line-22" name="line-22"></a><span class="cp">#define TRANSFORMS_SUPPORTED 1 </span><span class="cm">/* 0 disables transform code */</span> +<a id="line-23" name="line-23"></a><span class="cp">#endif</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cm">/*</span> +<a id="line-26" name="line-26"></a><span class="cm"> * Although rotating and flipping data expressed as DCT coefficients is not</span> +<a id="line-27" name="line-27"></a><span class="cm"> * hard, there is an asymmetry in the JPEG format specification for images</span> +<a id="line-28" name="line-28"></a><span class="cm"> * whose dimensions aren't multiples of the iMCU size. The right and bottom</span> +<a id="line-29" name="line-29"></a><span class="cm"> * image edges are padded out to the next iMCU boundary with junk data; but</span> +<a id="line-30" name="line-30"></a><span class="cm"> * no padding is possible at the top and left edges. If we were to flip</span> +<a id="line-31" name="line-31"></a><span class="cm"> * the whole image including the pad data, then pad garbage would become</span> +<a id="line-32" name="line-32"></a><span class="cm"> * visible at the top and/or left, and real pixels would disappear into the</span> +<a id="line-33" name="line-33"></a><span class="cm"> * pad margins --- perhaps permanently, since encoders & decoders may not</span> +<a id="line-34" name="line-34"></a><span class="cm"> * bother to preserve DCT blocks that appear to be completely outside the</span> +<a id="line-35" name="line-35"></a><span class="cm"> * nominal image area. So, we have to exclude any partial iMCUs from the</span> +<a id="line-36" name="line-36"></a><span class="cm"> * basic transformation.</span> +<a id="line-37" name="line-37"></a><span class="cm"> *</span> +<a id="line-38" name="line-38"></a><span class="cm"> * Transpose is the only transformation that can handle partial iMCUs at the</span> +<a id="line-39" name="line-39"></a><span class="cm"> * right and bottom edges completely cleanly. flip_h can flip partial iMCUs</span> +<a id="line-40" name="line-40"></a><span class="cm"> * at the bottom, but leaves any partial iMCUs at the right edge untouched.</span> +<a id="line-41" name="line-41"></a><span class="cm"> * Similarly flip_v leaves any partial iMCUs at the bottom edge untouched.</span> +<a id="line-42" name="line-42"></a><span class="cm"> * The other transforms are defined as combinations of these basic transforms</span> +<a id="line-43" name="line-43"></a><span class="cm"> * and process edge blocks in a way that preserves the equivalence.</span> +<a id="line-44" name="line-44"></a><span class="cm"> *</span> +<a id="line-45" name="line-45"></a><span class="cm"> * The "trim" option causes untransformable partial iMCUs to be dropped;</span> +<a id="line-46" name="line-46"></a><span class="cm"> * this is not strictly lossless, but it usually gives the best-looking</span> +<a id="line-47" name="line-47"></a><span class="cm"> * result for odd-size images. Note that when this option is active,</span> +<a id="line-48" name="line-48"></a><span class="cm"> * the expected mathematical equivalences between the transforms may not hold.</span> +<a id="line-49" name="line-49"></a><span class="cm"> * (For example, -rot 270 -trim trims only the bottom edge, but -rot 90 -trim</span> +<a id="line-50" name="line-50"></a><span class="cm"> * followed by -rot 180 -trim trims both edges.)</span> +<a id="line-51" name="line-51"></a><span class="cm"> *</span> +<a id="line-52" name="line-52"></a><span class="cm"> * We also offer a lossless-crop option, which discards data outside a given</span> +<a id="line-53" name="line-53"></a><span class="cm"> * image region but losslessly preserves what is inside. Like the rotate and</span> +<a id="line-54" name="line-54"></a><span class="cm"> * flip transforms, lossless crop is restricted by the JPEG format: the upper</span> +<a id="line-55" name="line-55"></a><span class="cm"> * left corner of the selected region must fall on an iMCU boundary. If this</span> +<a id="line-56" name="line-56"></a><span class="cm"> * does not hold for the given crop parameters, we silently move the upper left</span> +<a id="line-57" name="line-57"></a><span class="cm"> * corner up and/or left to make it so, simultaneously increasing the region</span> +<a id="line-58" name="line-58"></a><span class="cm"> * dimensions to keep the lower right crop corner unchanged. (Thus, the</span> +<a id="line-59" name="line-59"></a><span class="cm"> * output image covers at least the requested region, but may cover more.)</span> +<a id="line-60" name="line-60"></a><span class="cm"> *</span> +<a id="line-61" name="line-61"></a><span class="cm"> * We also provide a lossless-resize option, which is kind of a lossless-crop</span> +<a id="line-62" name="line-62"></a><span class="cm"> * operation in the DCT coefficient block domain - it discards higher-order</span> +<a id="line-63" name="line-63"></a><span class="cm"> * coefficients and losslessly preserves lower-order coefficients of a</span> +<a id="line-64" name="line-64"></a><span class="cm"> * sub-block.</span> +<a id="line-65" name="line-65"></a><span class="cm"> *</span> +<a id="line-66" name="line-66"></a><span class="cm"> * Rotate/flip transform, resize, and crop can be requested together in a</span> +<a id="line-67" name="line-67"></a><span class="cm"> * single invocation. The crop is applied last --- that is, the crop region</span> +<a id="line-68" name="line-68"></a><span class="cm"> * is specified in terms of the destination image after transform/resize.</span> +<a id="line-69" name="line-69"></a><span class="cm"> *</span> +<a id="line-70" name="line-70"></a><span class="cm"> * We also offer a "force to grayscale" option, which simply discards the</span> +<a id="line-71" name="line-71"></a><span class="cm"> * chrominance channels of a YCbCr image. This is lossless in the sense that</span> +<a id="line-72" name="line-72"></a><span class="cm"> * the luminance channel is preserved exactly. It's not the same kind of</span> +<a id="line-73" name="line-73"></a><span class="cm"> * thing as the rotate/flip transformations, but it's convenient to handle it</span> +<a id="line-74" name="line-74"></a><span class="cm"> * as part of this package, mainly because the transformation routines have to</span> +<a id="line-75" name="line-75"></a><span class="cm"> * be aware of the option to know how many components to work on.</span> +<a id="line-76" name="line-76"></a><span class="cm"> */</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="cp">#ifndef TRANSUPP_H</span> +<a id="line-79" name="line-79"></a><span class="cp">#define TRANSUPP_H</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="cm">/* Short forms of external names for systems with brain-damaged linkers. */</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="cp">#ifdef NEED_SHORT_EXTERNAL_NAMES</span> +<a id="line-84" name="line-84"></a><span class="cp">#define jtransform_parse_crop_spec jTrParCrop</span> +<a id="line-85" name="line-85"></a><span class="cp">#define jtransform_request_workspace jTrRequest</span> +<a id="line-86" name="line-86"></a><span class="cp">#define jtransform_adjust_parameters jTrAdjust</span> +<a id="line-87" name="line-87"></a><span class="cp">#define jtransform_execute_transform jTrExec</span> +<a id="line-88" name="line-88"></a><span class="cp">#define jtransform_perfect_transform jTrPerfect</span> +<a id="line-89" name="line-89"></a><span class="cp">#define jcopy_markers_setup jCMrkSetup</span> +<a id="line-90" name="line-90"></a><span class="cp">#define jcopy_markers_execute jCMrkExec</span> +<a id="line-91" name="line-91"></a><span class="cp">#endif </span><span class="cm">/* NEED_SHORT_EXTERNAL_NAMES */</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="cm">/*</span> +<a id="line-94" name="line-94"></a><span class="cm"> * Codes for supported types of image transformations.</span> +<a id="line-95" name="line-95"></a><span class="cm"> */</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">JXFORM_NONE</span><span class="p">,</span><span class="w"> </span><span class="cm">/* no transformation */</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">JXFORM_FLIP_H</span><span class="p">,</span><span class="w"> </span><span class="cm">/* horizontal flip */</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">JXFORM_FLIP_V</span><span class="p">,</span><span class="w"> </span><span class="cm">/* vertical flip */</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">JXFORM_TRANSPOSE</span><span class="p">,</span><span class="w"> </span><span class="cm">/* transpose across UL-to-LR axis */</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">JXFORM_TRANSVERSE</span><span class="p">,</span><span class="w"> </span><span class="cm">/* transpose across UR-to-LL axis */</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">JXFORM_ROT_90</span><span class="p">,</span><span class="w"> </span><span class="cm">/* 90-degree clockwise rotation */</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">JXFORM_ROT_180</span><span class="p">,</span><span class="w"> </span><span class="cm">/* 180-degree rotation */</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">JXFORM_ROT_270</span><span class="w"> </span><span class="cm">/* 270-degree clockwise (or 90 ccw) */</span> +<a id="line-106" name="line-106"></a><span class="p">}</span><span class="w"> </span><span class="n">JXFORM_CODE</span><span class="p">;</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="cm">/*</span> +<a id="line-109" name="line-109"></a><span class="cm"> * Codes for crop parameters, which can individually be unspecified,</span> +<a id="line-110" name="line-110"></a><span class="cm"> * positive, or negative. (Negative width or height makes no sense, though.)</span> +<a id="line-111" name="line-111"></a><span class="cm"> */</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">JCROP_UNSET</span><span class="p">,</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">JCROP_POS</span><span class="p">,</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">JCROP_NEG</span> +<a id="line-117" name="line-117"></a><span class="p">}</span><span class="w"> </span><span class="n">JCROP_CODE</span><span class="p">;</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="cm">/*</span> +<a id="line-120" name="line-120"></a><span class="cm"> * Transform parameters struct.</span> +<a id="line-121" name="line-121"></a><span class="cm"> * NB: application must not change any elements of this struct after</span> +<a id="line-122" name="line-122"></a><span class="cm"> * calling jtransform_request_workspace.</span> +<a id="line-123" name="line-123"></a><span class="cm"> */</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="cm">/* Options: set by caller */</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">JXFORM_CODE</span><span class="w"> </span><span class="n">transform</span><span class="p">;</span><span class="w"> </span><span class="cm">/* image transform operator */</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">boolean</span><span class="w"> </span><span class="n">perfect</span><span class="p">;</span><span class="w"> </span><span class="cm">/* if TRUE, fail if partial MCUs are requested */</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">boolean</span><span class="w"> </span><span class="n">trim</span><span class="p">;</span><span class="w"> </span><span class="cm">/* if TRUE, trim partial MCUs as needed */</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">boolean</span><span class="w"> </span><span class="n">force_grayscale</span><span class="p">;</span><span class="w"> </span><span class="cm">/* if TRUE, convert color image to grayscale */</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">boolean</span><span class="w"> </span><span class="n">crop</span><span class="p">;</span><span class="w"> </span><span class="cm">/* if TRUE, crop source image */</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="cm">/* Crop parameters: application need not set these unless crop is TRUE.</span> +<a id="line-134" name="line-134"></a><span class="cm"> * These can be filled in by jtransform_parse_crop_spec().</span> +<a id="line-135" name="line-135"></a><span class="cm"> */</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">crop_width</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Width of selected region */</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">JCROP_CODE</span><span class="w"> </span><span class="n">crop_width_set</span><span class="p">;</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">crop_height</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Height of selected region */</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">JCROP_CODE</span><span class="w"> </span><span class="n">crop_height_set</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">crop_xoffset</span><span class="p">;</span><span class="w"> </span><span class="cm">/* X offset of selected region */</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">JCROP_CODE</span><span class="w"> </span><span class="n">crop_xoffset_set</span><span class="p">;</span><span class="w"> </span><span class="cm">/* (negative measures from right edge) */</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">crop_yoffset</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Y offset of selected region */</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">JCROP_CODE</span><span class="w"> </span><span class="n">crop_yoffset_set</span><span class="p">;</span><span class="w"> </span><span class="cm">/* (negative measures from bottom edge) */</span> +<a id="line-144" name="line-144"></a> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="cm">/* Internal workspace: caller should not touch these */</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">num_components</span><span class="p">;</span><span class="w"> </span><span class="cm">/* # of components in workspace */</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">workspace_coef_arrays</span><span class="p">;</span><span class="w"> </span><span class="cm">/* workspace for transformations */</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">output_width</span><span class="p">;</span><span class="w"> </span><span class="cm">/* cropped destination dimensions */</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">output_height</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">x_crop_offset</span><span class="p">;</span><span class="w"> </span><span class="cm">/* destination crop offsets measured in iMCUs */</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">y_crop_offset</span><span class="p">;</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">iMCU_sample_width</span><span class="p">;</span><span class="w"> </span><span class="cm">/* destination iMCU size */</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">iMCU_sample_height</span><span class="p">;</span> +<a id="line-154" name="line-154"></a><span class="p">}</span><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="p">;</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="cp">#if TRANSFORMS_SUPPORTED</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="cm">/* Parse a crop specification (written in X11 geometry style) */</span> +<a id="line-159" name="line-159"></a><span class="hll"><span class="n">EXTERN</span><span class="p">(</span><span class="n">boolean</span><span class="p">)</span><span class="w"> </span><span class="n">jtransform_parse_crop_spec</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If EXTERN is a macro then please configure it.</span> +</span><a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">JPP</span><span class="p">((</span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">));</span> +<a id="line-161" name="line-161"></a><span class="cm">/* Request any required workspace */</span> +<a id="line-162" name="line-162"></a><span class="n">EXTERN</span><span class="p">(</span><span class="n">boolean</span><span class="p">)</span><span class="w"> </span><span class="n">jtransform_request_workspace</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">JPP</span><span class="p">((</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">));</span> +<a id="line-164" name="line-164"></a><span class="cm">/* Adjust output image parameters */</span> +<a id="line-165" name="line-165"></a><span class="n">EXTERN</span><span class="p">(</span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">jtransform_adjust_parameters</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">JPP</span><span class="p">((</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">));</span> +<a id="line-169" name="line-169"></a><span class="cm">/* Execute the actual transformation, if any */</span> +<a id="line-170" name="line-170"></a><span class="n">EXTERN</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">jtransform_execute_transform</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">JPP</span><span class="p">((</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">jvirt_barray_ptr</span><span class="w"> </span><span class="o">*</span><span class="n">src_coef_arrays</span><span class="p">,</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">jpeg_transform_info</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">));</span> +<a id="line-174" name="line-174"></a><span class="cm">/* Determine whether lossless transformation is perfectly</span> +<a id="line-175" name="line-175"></a><span class="cm"> * possible for a specified image and transformation.</span> +<a id="line-176" name="line-176"></a><span class="cm"> */</span> +<a id="line-177" name="line-177"></a><span class="n">EXTERN</span><span class="p">(</span><span class="n">boolean</span><span class="p">)</span><span class="w"> </span><span class="n">jtransform_perfect_transform</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">JPP</span><span class="p">((</span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">image_width</span><span class="p">,</span><span class="w"> </span><span class="n">JDIMENSION</span><span class="w"> </span><span class="n">image_height</span><span class="p">,</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">MCU_width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">MCU_height</span><span class="p">,</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">JXFORM_CODE</span><span class="w"> </span><span class="n">transform</span><span class="p">));</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="cm">/* jtransform_execute_transform used to be called</span> +<a id="line-183" name="line-183"></a><span class="cm"> * jtransform_execute_transformation, but some compilers complain about</span> +<a id="line-184" name="line-184"></a><span class="cm"> * routine names that long. This macro is here to avoid breaking any</span> +<a id="line-185" name="line-185"></a><span class="cm"> * old source code that uses the original name...</span> +<a id="line-186" name="line-186"></a><span class="cm"> */</span> +<a id="line-187" name="line-187"></a><span class="cp">#define jtransform_execute_transformation jtransform_execute_transform</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="cp">#endif </span><span class="cm">/* TRANSFORMS_SUPPORTED */</span> +<a id="line-190" name="line-190"></a> +<a id="line-191" name="line-191"></a><span class="cm">/*</span> +<a id="line-192" name="line-192"></a><span class="cm"> * Support for copying optional markers from source to destination file.</span> +<a id="line-193" name="line-193"></a><span class="cm"> */</span> +<a id="line-194" name="line-194"></a> +<a id="line-195" name="line-195"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">JCOPYOPT_NONE</span><span class="p">,</span><span class="w"> </span><span class="cm">/* copy no optional markers */</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">JCOPYOPT_COMMENTS</span><span class="p">,</span><span class="w"> </span><span class="cm">/* copy only comment (COM) markers */</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">JCOPYOPT_ALL</span><span class="w"> </span><span class="cm">/* copy all optional markers */</span> +<a id="line-199" name="line-199"></a><span class="p">}</span><span class="w"> </span><span class="n">JCOPY_OPTION</span><span class="p">;</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="cp">#define JCOPYOPT_DEFAULT JCOPYOPT_COMMENTS </span><span class="cm">/* recommended default */</span> +<a id="line-202" name="line-202"></a> +<a id="line-203" name="line-203"></a><span class="cm">/* Setup decompression object to save desired markers in memory */</span> +<a id="line-204" name="line-204"></a><span class="n">EXTERN</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">jcopy_markers_setup</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">JPP</span><span class="p">((</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">JCOPY_OPTION</span><span class="w"> </span><span class="n">option</span><span class="p">));</span> +<a id="line-206" name="line-206"></a><span class="cm">/* Copy markers saved in the given source object to the destination object */</span> +<a id="line-207" name="line-207"></a><span class="n">EXTERN</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">jcopy_markers_execute</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">JPP</span><span class="p">((</span><span class="n">j_decompress_ptr</span><span class="w"> </span><span class="n">srcinfo</span><span class="p">,</span><span class="w"> </span><span class="n">j_compress_ptr</span><span class="w"> </span><span class="n">dstinfo</span><span class="p">,</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">JCOPY_OPTION</span><span class="w"> </span><span class="n">option</span><span class="p">));</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="cp">#endif </span><span class="cm">/* TRANSUPP_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/5.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/5.html new file mode 100644 index 0000000..b25b311 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/5.html @@ -0,0 +1,875 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-clipboard-handler.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-clipboard-handler.c</p> +<a href="5.html#line-50"> unknownMacro 50</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * eom-clipboard-handler.c</span> +<a id="line-3" name="line-3"></a><span class="cm"> * This file is part of eom</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Felix Riemann <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Copyright (C) 2010 GNOME 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 free software; you can redistribute it and/or</span> +<a id="line-10" name="line-10"></a><span class="cm"> * modify it under the terms of the GNU General Public License</span> +<a id="line-11" name="line-11"></a><span class="cm"> * as published by the Free Software Foundation; either version 2</span> +<a id="line-12" name="line-12"></a><span class="cm"> * of the License, or (at your option) any later version.</span> +<a id="line-13" name="line-13"></a><span class="cm"> *</span> +<a id="line-14" name="line-14"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-15" name="line-15"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-16" name="line-16"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-17" name="line-17"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-18" name="line-18"></a><span class="cm"> *</span> +<a id="line-19" name="line-19"></a><span class="cm"> * You should have received a copy of the GNU General Public License along</span> +<a id="line-20" name="line-20"></a><span class="cm"> * with this program; if not, write to the Free Software Foundation, Inc.,</span> +<a id="line-21" name="line-21"></a><span class="cm"> * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-22" name="line-22"></a><span class="cm"> */</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-26" name="line-26"></a><span class="cp">#endif</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk-pixbuf/gdk-pixbuf.h></span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-clipboard-handler.h"</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">PROP_PIXBUF</span><span class="p">,</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">PROP_URI</span> +<a id="line-37" name="line-37"></a><span class="p">};</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">TARGET_PIXBUF</span><span class="p">,</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">TARGET_TEXT</span><span class="p">,</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">TARGET_URI</span> +<a id="line-43" name="line-43"></a><span class="p">};</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomClipboardHandlerPrivate</span><span class="w"> </span><span class="p">{</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="p">};</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomClipboardHandler</span><span class="p">,</span><span class="w"> </span><span class="n">eom_clipboard_handler</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INITIALLY_UNOWNED</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="o">*</span> +<a id="line-53" name="line-53"></a><span class="n">eom_clipboard_handler_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</span><span class="p">)</span> +<a id="line-54" name="line-54"></a><span class="p">{</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-58" name="line-58"></a><span class="p">}</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-61" name="line-61"></a><span class="n">eom_clipboard_handler_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</span><span class="p">)</span> +<a id="line-62" name="line-62"></a><span class="p">{</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">uri</span><span class="p">;</span> +<a id="line-66" name="line-66"></a><span class="p">}</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> +<a id="line-69" name="line-69"></a><span class="n">eom_clipboard_handler_set_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">)</span> +<a id="line-70" name="line-70"></a><span class="p">{</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">));</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">GDK_IS_PIXBUF</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">));</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">)</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">)</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">),</span><span class="w"> </span><span class="s">"pixbuf"</span><span class="p">);</span> +<a id="line-83" name="line-83"></a><span class="p">}</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-86" name="line-86"></a><span class="n">eom_clipboard_handler_set_uri</span><span class="w"> </span><span class="p">(</span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</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">uri</span><span class="p">)</span> +<a id="line-87" name="line-87"></a><span class="p">{</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">));</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">uri</span><span class="p">);</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">),</span><span class="w"> </span><span class="s">"uri"</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="p">}</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-98" name="line-98"></a><span class="n">eom_clipboard_handler_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-100" name="line-100"></a><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</span><span class="p">;</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">handler</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PIXBUF</span><span class="p">:</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">eom_clipboard_handler_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">));</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_URI</span><span class="p">:</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">eom_clipboard_handler_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">));</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="p">}</span> +<a id="line-119" name="line-119"></a><span class="p">}</span> +<a id="line-120" name="line-120"></a> +<a id="line-121" name="line-121"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-122" name="line-122"></a><span class="n">eom_clipboard_handler_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-124" name="line-124"></a><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</span><span class="p">;</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">handler</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PIXBUF</span><span class="p">:</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">{</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">eom_clipboard_handler_set_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">}</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_URI</span><span class="p">:</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="p">{</span> +<a id="line-142" name="line-142"></a><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">uri</span><span class="p">;</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">eom_clipboard_handler_set_uri</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">);</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">}</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">}</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="p">}</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="kt">void</span> +<a id="line-155" name="line-155"></a><span class="n">eom_clipboard_handler_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">obj</span><span class="p">)</span> +<a id="line-156" name="line-156"></a><span class="p">{</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">EomClipboardHandlerPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">obj</span><span class="p">));</span> +<a id="line-160" name="line-160"></a> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">obj</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">}</span> +<a id="line-167" name="line-167"></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">-></span><span class="n">uri</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-168" name="line-168"></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">-></span><span class="n">uri</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">}</span> +<a id="line-171" name="line-171"></a> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_clipboard_handler_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">obj</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="p">}</span> +<a id="line-174" name="line-174"></a> +<a id="line-175" name="line-175"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-176" name="line-176"></a><span class="n">eom_clipboard_handler_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</span><span class="p">)</span> +<a id="line-177" name="line-177"></a><span class="p">{</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_clipboard_handler_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">);</span> +<a id="line-179" name="line-179"></a><span class="p">}</span> +<a id="line-180" name="line-180"></a> +<a id="line-181" name="line-181"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-182" name="line-182"></a><span class="n">eom_clipboard_handler_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomClipboardHandlerClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-183" name="line-183"></a><span class="p">{</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">g_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> +<a id="line-185" name="line-185"></a> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_clipboard_handler_get_property</span><span class="p">;</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_clipboard_handler_set_property</span><span class="p">;</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="o">-></span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_clipboard_handler_dispose</span><span class="p">;</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_PIXBUF</span><span class="p">,</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">"pixbuf"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_TYPE_PIXBUF</span><span class="p">,</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_STRINGS</span><span class="p">));</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">g_obj_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_URI</span><span class="p">,</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">"uri"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_STRINGS</span><span class="p">));</span> +<a id="line-201" name="line-201"></a><span class="p">}</span> +<a id="line-202" name="line-202"></a> +<a id="line-203" name="line-203"></a><span class="n">EomClipboardHandler</span><span class="o">*</span> +<a id="line-204" name="line-204"></a><span class="n">eom_clipboard_handler_new</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">)</span> +<a id="line-205" name="line-205"></a><span class="p">{</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">obj</span><span class="p">;</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pbuf</span><span class="p">;</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">pbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-213" name="line-213"></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">eom_image_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">obj</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_CLIPBOARD_HANDLER</span><span class="p">,</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="s">"pixbuf"</span><span class="p">,</span><span class="w"> </span><span class="n">pbuf</span><span class="p">,</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="s">"uri"</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pbuf</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOM_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">obj</span><span class="p">);</span> +<a id="line-225" name="line-225"></a> +<a id="line-226" name="line-226"></a><span class="p">}</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-229" name="line-229"></a><span class="n">eom_clipboard_handler_get_func</span><span class="w"> </span><span class="p">(</span><span class="n">GtkClipboard</span><span class="w"> </span><span class="o">*</span><span class="n">clipboard</span><span class="p">,</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection</span><span class="p">,</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">owner</span><span class="p">)</span> +<a id="line-232" name="line-232"></a><span class="p">{</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</span><span class="p">;</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">owner</span><span class="p">));</span> +<a id="line-236" name="line-236"></a> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">handler</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">owner</span><span class="p">);</span> +<a id="line-238" name="line-238"></a> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">TARGET_PIXBUF</span><span class="p">:</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="p">{</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_clipboard_handler_get_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">);</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gtk_selection_data_set_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">selection</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="p">}</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">TARGET_TEXT</span><span class="p">:</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="p">{</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">gtk_selection_data_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">selection</span><span class="p">,</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">eom_clipboard_handler_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">),</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="p">}</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">TARGET_URI</span><span class="p">:</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="p">{</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uris</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">uris</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">eom_clipboard_handler_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">));</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">uris</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="nb">NULL</span><span class="p">;</span> +<a id="line-260" name="line-260"></a> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">gtk_selection_data_set_uris</span><span class="w"> </span><span class="p">(</span><span class="n">selection</span><span class="p">,</span><span class="w"> </span><span class="n">uris</span><span class="p">);</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">}</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_return_if_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="p">}</span> +<a id="line-268" name="line-268"></a> +<a id="line-269" name="line-269"></a><span class="p">}</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> +<a id="line-272" name="line-272"></a><span class="n">eom_clipboard_handler_clear_func</span><span class="w"> </span><span class="p">(</span><span class="n">GtkClipboard</span><span class="w"> </span><span class="o">*</span><span class="n">clipboard</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">owner</span><span class="p">)</span> +<a id="line-273" name="line-273"></a><span class="p">{</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLIPBOARD_HANDLER</span><span class="w"> </span><span class="p">(</span><span class="n">owner</span><span class="p">));</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">owner</span><span class="p">));</span> +<a id="line-277" name="line-277"></a><span class="p">}</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="kt">void</span> +<a id="line-280" name="line-280"></a><span class="n">eom_clipboard_handler_copy_to_clipboard</span><span class="w"> </span><span class="p">(</span><span class="n">EomClipboardHandler</span><span class="w"> </span><span class="o">*</span><span class="n">handler</span><span class="p">,</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">GtkClipboard</span><span class="w"> </span><span class="o">*</span><span class="n">clipboard</span><span class="p">)</span> +<a id="line-282" name="line-282"></a><span class="p">{</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">GtkTargetList</span><span class="w"> </span><span class="o">*</span><span class="n">tlist</span><span class="p">;</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">GtkTargetEntry</span><span class="w"> </span><span class="o">*</span><span class="n">targets</span><span class="p">;</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_targets</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-287" name="line-287"></a> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">tlist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_target_list_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">gtk_target_list_add_image_targets</span><span class="w"> </span><span class="p">(</span><span class="n">tlist</span><span class="p">,</span><span class="w"> </span><span class="n">TARGET_PIXBUF</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-292" name="line-292"></a> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">gtk_target_list_add_text_targets</span><span class="w"> </span><span class="p">(</span><span class="n">tlist</span><span class="p">,</span><span class="w"> </span><span class="n">TARGET_TEXT</span><span class="p">);</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">gtk_target_list_add_uri_targets</span><span class="w"> </span><span class="p">(</span><span class="n">tlist</span><span class="p">,</span><span class="w"> </span><span class="n">TARGET_URI</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">}</span> +<a id="line-297" name="line-297"></a> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">targets</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_target_table_new_from_list</span><span class="w"> </span><span class="p">(</span><span class="n">tlist</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_targets</span><span class="p">);</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="c1">// We need to take ownership here if nobody else did</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">g_object_ref_sink</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">);</span> +<a id="line-302" name="line-302"></a> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_targets</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_clipboard_set_with_owner</span><span class="w"> </span><span class="p">(</span><span class="n">clipboard</span><span class="p">,</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">targets</span><span class="p">,</span><span class="w"> </span><span class="n">n_targets</span><span class="p">,</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">eom_clipboard_handler_get_func</span><span class="p">,</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">eom_clipboard_handler_clear_func</span><span class="p">,</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">));</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="p">}</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">set</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">gtk_clipboard_clear</span><span class="w"> </span><span class="p">(</span><span class="n">clipboard</span><span class="p">);</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">handler</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">}</span> +<a id="line-316" name="line-316"></a> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">gtk_target_table_free</span><span class="w"> </span><span class="p">(</span><span class="n">targets</span><span class="p">,</span><span class="w"> </span><span class="n">n_targets</span><span class="p">);</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">gtk_target_list_unref</span><span class="w"> </span><span class="p">(</span><span class="n">tlist</span><span class="p">);</span> +<a id="line-319" name="line-319"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/6.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/6.html new file mode 100644 index 0000000..d7ce9e1 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/6.html @@ -0,0 +1,1601 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-close-confirmation-dialog.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-close-confirmation-dialog.c</p> +<a href="6.html#line-76"> unknownMacro 76</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * eom-close-confirmation-dialog.c</span> +<a id="line-3" name="line-3"></a><span class="cm"> * This file is part of eom</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Marcus Carlson <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on gedit code (gedit/gedit-close-confirmation.c) by gedit Team</span> +<a id="line-8" name="line-8"></a><span class="cm"> *</span> +<a id="line-9" name="line-9"></a><span class="cm"> * Copyright (C) 2004-2009 GNOME Foundation</span> +<a id="line-10" name="line-10"></a><span class="cm"> *</span> +<a id="line-11" name="line-11"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-12" name="line-12"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-13" name="line-13"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-14" name="line-14"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-15" name="line-15"></a><span class="cm"> *</span> +<a id="line-16" name="line-16"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-17" name="line-17"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-18" name="line-18"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-19" name="line-19"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-20" name="line-20"></a><span class="cm"> *</span> +<a id="line-21" name="line-21"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-22" name="line-22"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-23" name="line-23"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor,</span> +<a id="line-24" name="line-24"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span> +<a id="line-25" name="line-25"></a><span class="cm"> */</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#endif</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-close-confirmation-dialog.h"</span> +<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><eom-window.h></span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="cm">/* Properties */</span> +<a id="line-37" name="line-37"></a><span class="k">enum</span> +<a id="line-38" name="line-38"></a><span class="p">{</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">PROP_UNSAVED_IMAGES</span> +<a id="line-41" name="line-41"></a><span class="p">};</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="cm">/* Mode */</span> +<a id="line-44" name="line-44"></a><span class="k">enum</span> +<a id="line-45" name="line-45"></a><span class="p">{</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">SINGLE_IMG_MODE</span><span class="p">,</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">MULTIPLE_IMGS_MODE</span> +<a id="line-48" name="line-48"></a><span class="p">};</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="cm">/* Columns */</span> +<a id="line-51" name="line-51"></a><span class="k">enum</span> +<a id="line-52" name="line-52"></a><span class="p">{</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">SAVE_COLUMN</span><span class="p">,</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">IMAGE_COLUMN</span><span class="p">,</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">NAME_COLUMN</span><span class="p">,</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">IMG_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="cm">/* a handy pointer to the image */</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">N_COLUMNS</span> +<a id="line-58" name="line-58"></a><span class="p">};</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomCloseConfirmationDialogPrivate</span> +<a id="line-61" name="line-61"></a><span class="p">{</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">unsaved_images</span><span class="p">;</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">selected_images</span><span class="p">;</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">list_store</span><span class="p">;</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">GtkCellRenderer</span><span class="w"> </span><span class="o">*</span><span class="n">toggle_renderer</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="p">};</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="cp">#define GET_MODE(priv) (((priv->unsaved_images != NULL) && \</span> +<a id="line-71" name="line-71"></a><span class="cp"> (priv->unsaved_images->next == NULL)) ? \</span> +<a id="line-72" name="line-72"></a><span class="cp"> SINGLE_IMG_MODE : MULTIPLE_IMGS_MODE)</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="cp">#define IMAGE_COLUMN_HEIGHT 40</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="p">,</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="n">set_unsaved_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">,</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">);</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="k">static</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="nf">get_selected_imgs</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">);</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="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span> +<a id="line-84" name="line-84"></a><span class="nf">eom_close_confirmation_dialog_get_icon</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">icon_name</span><span class="p">)</span> +<a id="line-85" name="line-85"></a><span class="p">{</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">GtkIconTheme</span><span class="w"> </span><span class="o">*</span><span class="n">icon_theme</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">icon_theme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">();</span> +<a id="line-91" name="line-91"></a> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_load_icon</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="p">,</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">IMAGE_COLUMN_HEIGHT</span><span class="p">,</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">"Couldn't load icon: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="p">}</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span> +<a id="line-104" name="line-104"></a><span class="p">}</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="o">*</span> +<a id="line-107" name="line-107"></a><span class="nf">get_nothumb_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-108" name="line-108"></a><span class="p">{</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GOnce</span><span class="w"> </span><span class="n">nothumb_once</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_ONCE_INIT</span><span class="p">;</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">g_once</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">nothumb_once</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GThreadFunc</span><span class="p">)</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog_get_icon</span><span class="p">,</span><span class="w"> </span><span class="s">"image-x-generic"</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GDK_PIXBUF</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">nothumb_once</span><span class="p">.</span><span class="n">retval</span><span class="p">));</span> +<a id="line-112" name="line-112"></a><span class="p">}</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="cm">/* Since we connect in the costructor we are sure this handler will be called</span> +<a id="line-115" name="line-115"></a><span class="cm"> * before the user ones</span> +<a id="line-116" name="line-116"></a><span class="cm"> */</span> +<a id="line-117" name="line-117"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-118" name="line-118"></a><span class="nf">response_cb</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response_id</span><span class="p">,</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-121" name="line-121"></a><span class="p">{</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">EomCloseConfirmationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLOSE_CONFIRMATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dlg</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">selected_images</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">selected_images</span><span class="p">);</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_YES</span><span class="p">)</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="p">{</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GET_MODE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SINGLE_IMG_MODE</span><span class="p">)</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="p">{</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">selected_images</span><span class="w"> </span><span class="o">=</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">g_list_copy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="p">}</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">else</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">list_store</span><span class="p">);</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">selected_images</span><span class="w"> </span><span class="o">=</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">get_selected_imgs</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">list_store</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">}</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="p">}</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">else</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">selected_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-148" name="line-148"></a><span class="p">}</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-151" name="line-151"></a><span class="nf">add_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">)</span> +<a id="line-152" name="line-152"></a><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">gtk_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Close _without Saving"</span><span class="p">),</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">GTK_RESPONSE_NO</span><span class="p">);</span> +<a id="line-156" name="line-156"></a> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">gtk_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="s">"gtk-cancel"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">gtk_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">"gtk-save"</span><span class="p">,</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">GTK_RESPONSE_YES</span><span class="p">);</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">gtk_dialog_set_default_response</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">GTK_RESPONSE_YES</span><span class="p">);</span> +<a id="line-166" name="line-166"></a><span class="p">}</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-169" name="line-169"></a><span class="nf">eom_close_confirmation_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">)</span> +<a id="line-170" name="line-170"></a><span class="p">{</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">AtkObject</span><span class="w"> </span><span class="o">*</span><span class="n">atk_obj</span><span class="p">;</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">dlg</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-174" name="line-174"></a> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">gtk_box_set_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">))),</span><span class="w"> </span><span class="mi">14</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">gtk_window_set_skip_taskbar_hint</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-179" name="line-179"></a> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">gtk_window_set_modal</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">gtk_window_set_destroy_with_parent</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">atk_obj</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_accessible</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">atk_object_set_role</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">ATK_ROLE_ALERT</span><span class="p">);</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">atk_object_set_name</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Question"</span><span class="p">));</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">,</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">response_cb</span><span class="p">),</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="p">}</span> +<a id="line-194" name="line-194"></a> +<a id="line-195" name="line-195"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-196" name="line-196"></a><span class="nf">eom_close_confirmation_dialog_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-197" name="line-197"></a><span class="p">{</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">EomCloseConfirmationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_CLOSE_CONFIRMATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-201" name="line-201"></a> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="p">);</span> +<a id="line-204" name="line-204"></a> +<a id="line-205" name="line-205"></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">-></span><span class="n">selected_images</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">selected_images</span><span class="p">);</span> +<a id="line-207" name="line-207"></a> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="cm">/* Call the parent's destructor */</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_close_confirmation_dialog_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="p">}</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-213" name="line-213"></a><span class="nf">eom_close_confirmation_dialog_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-217" name="line-217"></a><span class="p">{</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">;</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_CLOSE_CONFIRMATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-221" name="line-221"></a> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">{</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_UNSAVED_IMAGES</span><span class="p">:</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">set_unsaved_image</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="p">}</span> +<a id="line-232" name="line-232"></a><span class="p">}</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-235" name="line-235"></a><span class="nf">eom_close_confirmation_dialog_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-239" name="line-239"></a><span class="p">{</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">EomCloseConfirmationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-241" name="line-241"></a> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_CLOSE_CONFIRMATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="w"> </span><span class="n">prop_id</span><span class="w"> </span><span class="p">)</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="p">{</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_UNSAVED_IMAGES</span><span class="p">:</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">g_value_set_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="p">);</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-249" name="line-249"></a> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="p">}</span> +<a id="line-254" name="line-254"></a><span class="p">}</span> +<a id="line-255" name="line-255"></a> +<a id="line-256" name="line-256"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-257" name="line-257"></a><span class="nf">eom_close_confirmation_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-258" name="line-258"></a><span class="p">{</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-260" name="line-260"></a> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog_set_property</span><span class="p">;</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog_get_property</span><span class="p">;</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog_finalize</span><span class="p">;</span> +<a id="line-264" name="line-264"></a> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">PROP_UNSAVED_IMAGES</span><span class="p">,</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">g_param_spec_pointer</span><span class="w"> </span><span class="p">(</span><span class="s">"unsaved_images"</span><span class="p">,</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="s">"Unsaved Images"</span><span class="p">,</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="s">"List of Unsaved Images"</span><span class="p">,</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">(</span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="p">)));</span> +<a id="line-272" name="line-272"></a><span class="p">}</span> +<a id="line-273" name="line-273"></a> +<a id="line-274" name="line-274"></a><span class="k">static</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-275" name="line-275"></a><span class="nf">get_selected_imgs</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">)</span> +<a id="line-276" name="line-276"></a><span class="p">{</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="p">;</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-280" name="line-280"></a> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">valid</span><span class="p">)</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="p">{</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">to_save</span><span class="p">;</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">;</span> +<a id="line-288" name="line-288"></a> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">SAVE_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">to_save</span><span class="p">,</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">IMG_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">img</span><span class="p">,</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</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">to_save</span><span class="p">)</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">img</span><span class="p">);</span> +<a id="line-295" name="line-295"></a> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">}</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span> +<a id="line-300" name="line-300"></a> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-302" name="line-302"></a><span class="p">}</span> +<a id="line-303" name="line-303"></a> +<a id="line-304" name="line-304"></a><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-305" name="line-305"></a><span class="nf">eom_close_confirmation_dialog_get_selected_images</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">)</span> +<a id="line-306" name="line-306"></a><span class="p">{</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLOSE_CONFIRMATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-308" name="line-308"></a> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_list_copy</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">selected_images</span><span class="p">);</span> +<a id="line-310" name="line-310"></a><span class="p">}</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-313" name="line-313"></a><span class="nf">eom_close_confirmation_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">,</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">unsaved_images</span><span class="p">)</span> +<a id="line-315" name="line-315"></a><span class="p">{</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">;</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GtkWindowGroup</span><span class="w"> </span><span class="o">*</span><span class="n">wg</span><span class="p">;</span> +<a id="line-318" name="line-318"></a> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">unsaved_images</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-320" name="line-320"></a> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_TYPE_CLOSE_CONFIRMATION_DIALOG</span><span class="p">,</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">"unsaved_images"</span><span class="p">,</span><span class="w"> </span><span class="n">unsaved_images</span><span class="p">,</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-324" name="line-324"></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">dlg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-325" name="line-325"></a> +<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">parent</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="p">{</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">wg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_window_get_group</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">);</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="cm">/* gtk_window_get_group returns a default group when the given</span> +<a id="line-331" name="line-331"></a><span class="cm"> * window doesn't have a group. Explicitly add the window to</span> +<a id="line-332" name="line-332"></a><span class="cm"> * the group here to make sure it's actually in the returned</span> +<a id="line-333" name="line-333"></a><span class="cm"> * group. It makes no difference if it is already. */</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">gtk_window_group_add_window</span><span class="w"> </span><span class="p">(</span><span class="n">wg</span><span class="p">,</span><span class="w"> </span><span class="n">parent</span><span class="p">);</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">gtk_window_group_add_window</span><span class="w"> </span><span class="p">(</span><span class="n">wg</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-336" name="line-336"></a> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">gtk_window_set_transient_for</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="n">parent</span><span class="p">);</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="p">}</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">dlg</span><span class="p">;</span> +<a id="line-341" name="line-341"></a><span class="p">}</span> +<a id="line-342" name="line-342"></a> +<a id="line-343" name="line-343"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-344" name="line-344"></a><span class="nf">eom_close_confirmation_dialog_new_single</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">,</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-346" name="line-346"></a><span class="p">{</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">;</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">unsaved_images</span><span class="p">;</span> +<a id="line-349" name="line-349"></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">image</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-350" name="line-350"></a> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">unsaved_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-352" name="line-352"></a> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">dlg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_close_confirmation_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">,</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">unsaved_images</span><span class="p">);</span> +<a id="line-355" name="line-355"></a> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">unsaved_images</span><span class="p">);</span> +<a id="line-357" name="line-357"></a> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">dlg</span><span class="p">;</span> +<a id="line-359" name="line-359"></a><span class="p">}</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-362" name="line-362"></a><span class="nf">get_text_secondary_label</span><span class="w"> </span><span class="p">(</span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span> +<a id="line-363" name="line-363"></a><span class="p">{</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">secondary_msg</span><span class="p">;</span> +<a id="line-365" name="line-365"></a> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">secondary_msg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"If you don't save, your changes will be lost."</span><span class="p">));</span> +<a id="line-367" name="line-367"></a> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">secondary_msg</span><span class="p">;</span> +<a id="line-369" name="line-369"></a><span class="p">}</span> +<a id="line-370" name="line-370"></a> +<a id="line-371" name="line-371"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-372" name="line-372"></a><span class="nf">build_single_img_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">)</span> +<a id="line-373" name="line-373"></a><span class="p">{</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">;</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">;</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">primary_label</span><span class="p">;</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">secondary_label</span><span class="p">;</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">;</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">image_name</span><span class="p">;</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">markup_str</span><span class="p">;</span> +<a id="line-383" name="line-383"></a> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</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> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="cm">/* Image */</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">"dialog-warning"</span><span class="p">,</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">gtk_widget_set_valign</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_START</span><span class="p">);</span> +<a id="line-391" name="line-391"></a> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="cm">/* Primary label */</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">primary_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">gtk_label_set_line_wrap</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">gtk_label_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">gtk_label_set_max_width_chars</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="mi">88</span><span class="p">);</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">gtk_label_set_selectable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-399" name="line-399"></a> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">image_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-401" name="line-401"></a> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Save changes to image </span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s"> before closing?"</span><span class="p">),</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">image_name</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">markup_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">"<span weight=</span><span class="se">\"</span><span class="s">bold</span><span class="se">\"</span><span class="s"> size=</span><span class="se">\"</span><span class="s">larger</span><span class="se">\"</span><span class="s">>"</span><span class="p">,</span><span class="w"> </span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"</span>"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-406" name="line-406"></a> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">gtk_label_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">markup_str</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">markup_str</span><span class="p">);</span> +<a id="line-409" name="line-409"></a> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="cm">/* Secondary label */</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_text_secondary_label</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">secondary_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">gtk_label_set_line_wrap</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">gtk_label_set_selectable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-418" name="line-418"></a> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">vbox</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-427" name="line-427"></a> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">primary_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-429" name="line-429"></a> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">secondary_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-431" name="line-431"></a> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">))),</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">hbox</span><span class="p">,</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-437" name="line-437"></a> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">add_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">);</span> +<a id="line-441" name="line-441"></a><span class="p">}</span> +<a id="line-442" name="line-442"></a> +<a id="line-443" name="line-443"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-444" name="line-444"></a><span class="nf">populate_model</span><span class="w"> </span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">imgs</span><span class="p">)</span> +<a id="line-445" name="line-445"></a><span class="p">{</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-447" name="line-447"></a> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">imgs</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="p">{</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">EomImage</span><span class="w"> </span><span class="o">*</span><span class="n">img</span><span class="p">;</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">buf_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-454" name="line-454"></a> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">img</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">imgs</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-456" name="line-456"></a> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_caption</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_image_get_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">img</span><span class="p">);</span> +<a id="line-459" name="line-459"></a> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">;</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">ratio</span><span class="p">;</span> +<a id="line-464" name="line-464"></a> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">);</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">ratio</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">IMAGE_COLUMN_HEIGHT</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">);</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">buf_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_scale_simple</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">ratio</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">width</span><span class="p">),</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">IMAGE_COLUMN_HEIGHT</span><span class="p">,</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">);</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">buf_scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_nothumb_pixbuf</span><span class="w"> </span><span class="p">();</span> +<a id="line-474" name="line-474"></a> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">SAVE_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">IMAGE_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="n">buf_scaled</span><span class="p">,</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">NAME_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">IMG_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="n">img</span><span class="p">,</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-482" name="line-482"></a> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">imgs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_next</span><span class="w"> </span><span class="p">(</span><span class="n">imgs</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">buf_scaled</span><span class="p">);</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="p">}</span> +<a id="line-486" name="line-486"></a><span class="p">}</span> +<a id="line-487" name="line-487"></a> +<a id="line-488" name="line-488"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-489" name="line-489"></a><span class="nf">save_toggled</span><span class="w"> </span><span class="p">(</span><span class="n">GtkCellRendererToggle</span><span class="w"> </span><span class="o">*</span><span class="n">renderer</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">path_str</span><span class="p">,</span><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">)</span> +<a id="line-490" name="line-490"></a><span class="p">{</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">GtkTreePath</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_path_new_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">path_str</span><span class="p">);</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">active</span><span class="p">;</span> +<a id="line-494" name="line-494"></a> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">gtk_tree_model_get_iter</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">SAVE_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">active</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-497" name="line-497"></a> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">active</span><span class="w"> </span><span class="o">^=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-499" name="line-499"></a> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">SAVE_COLUMN</span><span class="p">,</span><span class="w"> </span><span class="n">active</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-502" name="line-502"></a> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">gtk_tree_path_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-504" name="line-504"></a><span class="p">}</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="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-507" name="line-507"></a><span class="nf">create_treeview</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">)</span> +<a id="line-508" name="line-508"></a><span class="p">{</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</span><span class="p">;</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">treeview</span><span class="p">;</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">GtkCellRenderer</span><span class="w"> </span><span class="o">*</span><span class="n">renderer</span><span class="p">;</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">GtkTreeViewColumn</span><span class="w"> </span><span class="o">*</span><span class="n">column</span><span class="p">;</span> +<a id="line-513" name="line-513"></a> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">treeview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_view_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">gtk_tree_view_set_headers_visible</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">treeview</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">gtk_tree_view_set_enable_search</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">treeview</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-517" name="line-517"></a> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="cm">/* Create and populate the model */</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_list_store_new</span><span class="w"> </span><span class="p">(</span><span class="n">N_COLUMNS</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_BOOLEAN</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_TYPE_PIXBUF</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_POINTER</span><span class="p">);</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">populate_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="p">);</span> +<a id="line-521" name="line-521"></a> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="cm">/* Set model to the treeview */</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">gtk_tree_view_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">treeview</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">));</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">);</span> +<a id="line-525" name="line-525"></a> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">list_store</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="w"> </span><span class="p">(</span><span class="n">store</span><span class="p">);</span> +<a id="line-527" name="line-527"></a> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="cm">/* Add columns */</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">toggle_renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_toggle_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="s">"toggled"</span><span class="p">,</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">save_toggled</span><span class="p">),</span><span class="w"> </span><span class="n">store</span><span class="p">);</span> +<a id="line-532" name="line-532"></a> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">column</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_view_column_new_with_attributes</span><span class="w"> </span><span class="p">(</span><span class="s">"Save?"</span><span class="p">,</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="s">"active"</span><span class="p">,</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">SAVE_COLUMN</span><span class="p">,</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">gtk_tree_view_append_column</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">treeview</span><span class="p">),</span><span class="w"> </span><span class="n">column</span><span class="p">);</span> +<a id="line-539" name="line-539"></a> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_pixbuf_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-541" name="line-541"></a> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">column</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_view_column_new_with_attributes</span><span class="w"> </span><span class="p">(</span><span class="s">"Image"</span><span class="p">,</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="s">"pixbuf"</span><span class="p">,</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">IMAGE_COLUMN</span><span class="p">,</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">gtk_tree_view_append_column</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">treeview</span><span class="p">),</span><span class="w"> </span><span class="n">column</span><span class="p">);</span> +<a id="line-548" name="line-548"></a> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">column</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_view_column_new_with_attributes</span><span class="w"> </span><span class="p">(</span><span class="s">"Name"</span><span class="p">,</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="s">"text"</span><span class="p">,</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">NAME_COLUMN</span><span class="p">,</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">gtk_tree_view_append_column</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TREE_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">treeview</span><span class="p">),</span><span class="w"> </span><span class="n">column</span><span class="p">);</span> +<a id="line-556" name="line-556"></a> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">treeview</span><span class="p">;</span> +<a id="line-558" name="line-558"></a><span class="p">}</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-561" name="line-561"></a><span class="nf">build_multiple_imgs_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">)</span> +<a id="line-562" name="line-562"></a><span class="p">{</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">EomCloseConfirmationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">;</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">;</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">primary_label</span><span class="p">;</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbox2</span><span class="p">;</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">select_label</span><span class="p">;</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">scrolledwindow</span><span class="p">;</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">treeview</span><span class="p">;</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">secondary_label</span><span class="p">;</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">markup_str</span><span class="p">;</span> +<a id="line-575" name="line-575"></a> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dlg</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-577" name="line-577"></a> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">))),</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-582" name="line-582"></a> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="cm">/* Image */</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">"dialog-warning"</span><span class="p">,</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">gtk_widget_set_valign</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_START</span><span class="p">);</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-588" name="line-588"></a> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">vbox</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-591" name="line-591"></a> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="cm">/* Primary label */</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">primary_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">gtk_label_set_line_wrap</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">gtk_label_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">gtk_label_set_max_width_chars</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="mi">88</span><span class="p">);</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">gtk_label_set_selectable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-599" name="line-599"></a> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">ngettext</span><span class="w"> </span><span class="p">(</span><span class="s">"There is %d image with unsaved changes. "</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="s">"Save changes before closing?"</span><span class="p">,</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="s">"There are %d images with unsaved changes. "</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="s">"Save changes before closing?"</span><span class="p">,</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="p">)),</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="p">));</span> +<a id="line-607" name="line-607"></a> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">markup_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">"<span weight=</span><span class="se">\"</span><span class="s">bold</span><span class="se">\"</span><span class="s"> size=</span><span class="se">\"</span><span class="s">larger</span><span class="se">\"</span><span class="s">>"</span><span class="p">,</span><span class="w"> </span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"</span>"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span> +<a id="line-610" name="line-610"></a> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">gtk_label_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">markup_str</span><span class="p">);</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">markup_str</span><span class="p">);</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">primary_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-614" name="line-614"></a> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">vbox2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">vbox2</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">select_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"S_elect the images you want to save:"</span><span class="p">));</span> +<a id="line-619" name="line-619"></a> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox2</span><span class="p">),</span><span class="w"> </span><span class="n">select_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">gtk_label_set_line_wrap</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">select_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">select_label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-623" name="line-623"></a> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">scrolledwindow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scrolled_window_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox2</span><span class="p">),</span><span class="w"> </span><span class="n">scrolledwindow</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_policy</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">scrolledwindow</span><span class="p">),</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">,</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">);</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_shadow_type</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">scrolledwindow</span><span class="p">),</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">GTK_SHADOW_IN</span><span class="p">);</span> +<a id="line-631" name="line-631"></a> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">treeview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_treeview</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">);</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">scrolledwindow</span><span class="p">),</span><span class="w"> </span><span class="n">treeview</span><span class="p">);</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">scrolledwindow</span><span class="p">,</span><span class="w"> </span><span class="mi">260</span><span class="p">,</span><span class="w"> </span><span class="mi">120</span><span class="p">);</span> +<a id="line-635" name="line-635"></a> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="cm">/* Secondary label */</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">secondary_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"If you don't save, "</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="s">"all your changes will be lost."</span><span class="p">));</span> +<a id="line-639" name="line-639"></a> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox2</span><span class="p">),</span><span class="w"> </span><span class="n">secondary_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">gtk_label_set_line_wrap</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">gtk_label_set_selectable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-644" name="line-644"></a> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">select_label</span><span class="p">),</span><span class="w"> </span><span class="n">treeview</span><span class="p">);</span> +<a id="line-646" name="line-646"></a> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">add_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-648" name="line-648"></a> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">);</span> +<a id="line-650" name="line-650"></a><span class="p">}</span> +<a id="line-651" name="line-651"></a> +<a id="line-652" name="line-652"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-653" name="line-653"></a><span class="nf">set_unsaved_image</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">,</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">)</span> +<a id="line-655" name="line-655"></a><span class="p">{</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">EomCloseConfirmationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-659" name="line-659"></a> +<a id="line-660" name="line-660"></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">dlg</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-662" name="line-662"></a> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_copy</span><span class="w"> </span><span class="p">((</span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">list</span><span class="p">);</span> +<a id="line-664" name="line-664"></a> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GET_MODE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SINGLE_IMG_MODE</span><span class="p">)</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="p">{</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">build_single_img_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="p">}</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="k">else</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="p">{</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">build_multiple_imgs_dialog</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">);</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="p">}</span> +<a id="line-673" name="line-673"></a><span class="p">}</span> +<a id="line-674" name="line-674"></a> +<a id="line-675" name="line-675"></a><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-676" name="line-676"></a><span class="nf">eom_close_confirmation_dialog_get_unsaved_images</span><span class="w"> </span><span class="p">(</span><span class="n">EomCloseConfirmationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">)</span> +<a id="line-677" name="line-677"></a><span class="p">{</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_CLOSE_CONFIRMATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-679" name="line-679"></a> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">dlg</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">unsaved_images</span><span class="p">;</span> +<a id="line-681" name="line-681"></a><span class="p">}</span> +<a id="line-682" name="line-682"></a> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/7.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/7.html new file mode 100644 index 0000000..0895c95 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/7.html @@ -0,0 +1,681 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-error-message-area.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-error-message-area.c</p> +<a href="7.html#line-48"> variableScope 48</a><a href="7.html#line-50"> variableScope 50</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - Erro Message Area</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2007 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Based on gedit code (gedit/gedit-message-area.h) by:</span> +<a id="line-8" name="line-8"></a><span class="cm"> * - Paolo Maggi <[email protected]></span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-11" name="line-11"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-12" name="line-12"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-13" name="line-13"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-14" name="line-14"></a><span class="cm"> *</span> +<a id="line-15" name="line-15"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-16" name="line-16"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-17" name="line-17"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-18" name="line-18"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-19" name="line-19"></a><span class="cm"> *</span> +<a id="line-20" name="line-20"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-21" name="line-21"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-22" name="line-22"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-23" name="line-23"></a><span class="cm"> */</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span> +<a id="line-27" name="line-27"></a><span class="cp">#endif</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">"eom-error-message-area.h"</span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-image.h"</span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span> +<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-39" name="line-39"></a><span class="nf">set_message_area_text_and_icon</span><span class="w"> </span><span class="p">(</span><span class="n">GtkInfoBar</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">primary_text</span><span class="p">,</span> +<a id="line-42" name="line-42"></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">secondary_text</span><span class="p">)</span> +<a id="line-43" name="line-43"></a><span class="p">{</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox_content</span><span class="p">;</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">primary_markup</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">secondary_markup</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'secondary_markup' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'secondary_markup' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">primary_label</span><span class="p">;</span> +<a id="line-50" name="line-50"></a><span class="hll"><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">secondary_label</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'secondary_label' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'secondary_label' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">hbox_content</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">hbox_content</span><span class="p">);</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox_content</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gtk_widget_set_valign</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_START</span><span class="p">);</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">);</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox_content</span><span class="p">),</span><span class="w"> </span><span class="n">vbox</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">primary_markup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="s">"<b>%s</b>"</span><span class="p">,</span><span class="w"> </span><span class="n">primary_text</span><span class="p">);</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">primary_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="n">primary_markup</span><span class="p">);</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">primary_markup</span><span class="p">);</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">);</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">primary_label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">gtk_label_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">gtk_label_set_line_wrap</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">gtk_widget_set_can_focus</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gtk_label_set_selectable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">primary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_text</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">secondary_markup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_printf_escaped</span><span class="w"> </span><span class="p">(</span><span class="s">"<small>%s</small>"</span><span class="p">,</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">secondary_text</span><span class="p">);</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">secondary_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_markup</span><span class="p">);</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_markup</span><span class="p">);</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">);</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">secondary_label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">gtk_widget_set_can_focus</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">gtk_label_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">gtk_label_set_line_wrap</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">gtk_label_set_selectable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">secondary_label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="p">}</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_info_bar_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">message_area</span><span class="p">))),</span><span class="w"> </span><span class="n">hbox_content</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-98" name="line-98"></a><span class="p">}</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-101" name="line-101"></a><span class="nf">create_error_message_area</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">primary_text</span><span class="p">,</span> +<a id="line-102" name="line-102"></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">secondary_text</span><span class="p">,</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">recoverable</span><span class="p">)</span> +<a id="line-104" name="line-104"></a><span class="p">{</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">;</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">recoverable</span><span class="p">)</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">message_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_info_bar_new_with_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"_Retry"</span><span class="p">),</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">,</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">else</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">message_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_info_bar_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">gtk_info_bar_set_message_type</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">message_area</span><span class="p">),</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">GTK_MESSAGE_ERROR</span><span class="p">);</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">set_message_area_text_and_icon</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_INFO_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">message_area</span><span class="p">),</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="s">"dialog-error"</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">primary_text</span><span class="p">,</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">secondary_text</span><span class="p">);</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">message_area</span><span class="p">;</span> +<a id="line-123" name="line-123"></a><span class="p">}</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="cm">/**</span> +<a id="line-126" name="line-126"></a><span class="cm"> * eom_image_load_error_message_area_new:</span> +<a id="line-127" name="line-127"></a><span class="cm"> * @caption:</span> +<a id="line-128" name="line-128"></a><span class="cm"> * @error:</span> +<a id="line-129" name="line-129"></a><span class="cm"> *</span> +<a id="line-130" name="line-130"></a><span class="cm"> *</span> +<a id="line-131" name="line-131"></a><span class="cm"> *</span> +<a id="line-132" name="line-132"></a><span class="cm"> * Returns: (transfer full): a new #GtkInfoArea</span> +<a id="line-133" name="line-133"></a><span class="cm"> **/</span> +<a id="line-134" name="line-134"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-135" name="line-135"></a><span class="nf">eom_image_load_error_message_area_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">caption</span><span class="p">,</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">)</span> +<a id="line-137" name="line-137"></a><span class="p">{</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">error_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message_details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">pango_escaped_caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-142" name="line-142"></a> +<a id="line-143" name="line-143"></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">caption</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="cm">/* Escape the caption string with respect to pango markup.</span> +<a id="line-147" name="line-147"></a><span class="cm"> This is necessary because otherwise characters like "&" will</span> +<a id="line-148" name="line-148"></a><span class="cm"> be interpreted as the beginning of a pango entity inside</span> +<a id="line-149" name="line-149"></a><span class="cm"> the message area GtkLabel. */</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">pango_escaped_caption</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_escape_text</span><span class="w"> </span><span class="p">(</span><span class="n">caption</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">error_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Could not load image '%s'."</span><span class="p">),</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">pango_escaped_caption</span><span class="p">);</span> +<a id="line-153" name="line-153"></a> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">message_details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_util_make_valid_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">message_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_error_message_area</span><span class="w"> </span><span class="p">(</span><span class="n">error_message</span><span class="p">,</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">message_details</span><span class="p">,</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">pango_escaped_caption</span><span class="p">);</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">error_message</span><span class="p">);</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">message_details</span><span class="p">);</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">message_area</span><span class="p">;</span> +<a id="line-165" name="line-165"></a><span class="p">}</span> +<a id="line-166" name="line-166"></a> +<a id="line-167" name="line-167"></a><span class="cm">/**</span> +<a id="line-168" name="line-168"></a><span class="cm"> * eom_no_images_error_message_area_new:</span> +<a id="line-169" name="line-169"></a><span class="cm"> * @file:</span> +<a id="line-170" name="line-170"></a><span class="cm"> *</span> +<a id="line-171" name="line-171"></a><span class="cm"> *</span> +<a id="line-172" name="line-172"></a><span class="cm"> *</span> +<a id="line-173" name="line-173"></a><span class="cm"> * Returns: (transfer full): a new #GtkInfoBar</span> +<a id="line-174" name="line-174"></a><span class="cm"> **/</span> +<a id="line-175" name="line-175"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-176" name="line-176"></a><span class="nf">eom_no_images_error_message_area_new</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span> +<a id="line-177" name="line-177"></a><span class="p">{</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">message_area</span><span class="p">;</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">error_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-180" name="line-180"></a> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri_str</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">unescaped_str</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">pango_escaped_str</span><span class="p">;</span> +<a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">uri_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="cm">/* Unescape URI with respect to rules defined in RFC 3986. */</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">unescaped_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_uri_unescape_string</span><span class="w"> </span><span class="p">(</span><span class="n">uri_str</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="cm">/* Escape the URI string with respect to pango markup.</span> +<a id="line-189" name="line-189"></a><span class="cm"> This is necessary because the URI string can contain</span> +<a id="line-190" name="line-190"></a><span class="cm"> for example "&" which will otherwise be interpreted</span> +<a id="line-191" name="line-191"></a><span class="cm"> as a pango markup entity when inserted into a GtkLabel. */</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">pango_escaped_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_escape_text</span><span class="w"> </span><span class="p">(</span><span class="n">unescaped_str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">error_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"No images found in '%s'."</span><span class="p">),</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">pango_escaped_str</span><span class="p">);</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">pango_escaped_str</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri_str</span><span class="p">);</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">unescaped_str</span><span class="p">);</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">error_message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"The given locations contain no images."</span><span class="p">));</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="p">}</span> +<a id="line-202" name="line-202"></a> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">message_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_error_message_area</span><span class="w"> </span><span class="p">(</span><span class="n">error_message</span><span class="p">,</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">error_message</span><span class="p">);</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">message_area</span><span class="p">;</span> +<a id="line-210" name="line-210"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/8.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/8.html new file mode 100644 index 0000000..f1736f4 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/8.html @@ -0,0 +1,949 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-exif-util.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-exif-util.c</p> +<a href="8.html#line-56"> unknownMacro 56</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* Eye Of Mate - EXIF Utilities</span> +<a id="line-2" name="line-2"></a><span class="cm"> *</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2006-2007 The Free Software Foundation</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * Author: Lucas Rocha <[email protected]></span> +<a id="line-6" name="line-6"></a><span class="cm"> * Author: Claudio Saavedra <[email protected]></span> +<a id="line-7" name="line-7"></a><span class="cm"> * Author: Felix Riemann <[email protected]></span> +<a id="line-8" name="line-8"></a><span class="cm"> *</span> +<a id="line-9" name="line-9"></a><span class="cm"> * Based on code by:</span> +<a id="line-10" name="line-10"></a><span class="cm"> * - Jens Finke <[email protected]></span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-13" name="line-13"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-14" name="line-14"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-15" name="line-15"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-16" name="line-16"></a><span class="cm"> *</span> +<a id="line-17" name="line-17"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-18" name="line-18"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-19" name="line-19"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-20" name="line-20"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-21" name="line-21"></a><span class="cm"> *</span> +<a id="line-22" name="line-22"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-23" name="line-23"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-24" name="line-24"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span> +<a id="line-25" name="line-25"></a><span class="cm"> */</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-29" name="line-29"></a><span class="cp">#endif</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="cp">#ifdef HAVE_STRPTIME</span> +<a id="line-32" name="line-32"></a><span class="cp">#define _XOPEN_SOURCE</span> +<a id="line-33" name="line-33"></a><span class="cp">#define _XOPEN_SOURCE_EXTENDED 1</span> +<a id="line-34" name="line-34"></a><span class="cp">#endif</span> +<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><time.h></span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-exif-util.h"</span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-util.h"</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span> +<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="cp">#define DATE_BUF_SIZE 200</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="cm">/* gboolean <-> gpointer conversion macros taken from gedit */</span> +<a id="line-46" name="line-46"></a><span class="cp">#ifndef GBOOLEAN_TO_POINTER</span> +<a id="line-47" name="line-47"></a><span class="cp">#define GBOOLEAN_TO_POINTER(i) (GINT_TO_POINTER ((i) ? 2 : 1))</span> +<a id="line-48" name="line-48"></a><span class="cp">#endif</span> +<a id="line-49" name="line-49"></a><span class="cp">#ifndef GPOINTER_TO_BOOLEAN</span> +<a id="line-50" name="line-50"></a><span class="cp">#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT (i) == 2) ? TRUE : FALSE))</span> +<a id="line-51" name="line-51"></a><span class="cp">#endif</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="k">typedef</span><span class="w"> </span><span class="n">ExifData</span><span class="w"> </span><span class="n">EomExifData</span><span class="p">;</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="cm">/* Define EomExifData type */</span> +<a id="line-56" name="line-56"></a><span class="hll"><span class="n">G_DEFINE_BOXED_TYPE</span><span class="p">(</span><span class="n">EomExifData</span><span class="p">,</span><span class="w"> </span><span class="n">eom_exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">eom_exif_data_copy</span><span class="p">,</span><span class="w"> </span><span class="n">eom_exif_data_free</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_BOXED_TYPE is a macro then please configure it.</span> +</span><a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="cp">#ifdef HAVE_STRPTIME</span> +<a id="line-59" name="line-59"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-60" name="line-60"></a><span class="n">_check_strptime_updates_wday</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-61" name="line-61"></a><span class="p">{</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">tm</span><span class="w"> </span><span class="n">tm</span><span class="p">;</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">memset</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">tm</span><span class="p">,</span><span class="w"> </span><span class="sc">'\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">tm</span><span class="p">));</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">strptime</span><span class="w"> </span><span class="p">(</span><span class="s">"2008:12:24 20:30:45"</span><span class="p">,</span><span class="w"> </span><span class="s">"%Y:%m:%d %T"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tm</span><span class="p">);</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="cm">/* Check if tm.tm_wday is set to Wednesday (3) now */</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GBOOLEAN_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">tm</span><span class="p">.</span><span class="n">tm_wday</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="p">}</span> +<a id="line-69" name="line-69"></a><span class="cp">#endif</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="cm">/**</span> +<a id="line-72" name="line-72"></a><span class="cm"> * _calculate_wday_yday:</span> +<a id="line-73" name="line-73"></a><span class="cm"> * @tm: A struct tm that should be updated.</span> +<a id="line-74" name="line-74"></a><span class="cm"> *</span> +<a id="line-75" name="line-75"></a><span class="cm"> * Ensure tm_wday and tm_yday are set correctly in a struct tm.</span> +<a id="line-76" name="line-76"></a><span class="cm"> * The other date (dmy) values must have been set already.</span> +<a id="line-77" name="line-77"></a><span class="cm"> **/</span> +<a id="line-78" name="line-78"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-79" name="line-79"></a><span class="n">_calculate_wday_yday</span><span class="w"> </span><span class="p">(</span><span class="k">struct</span><span class="w"> </span><span class="nc">tm</span><span class="w"> </span><span class="o">*</span><span class="n">tm</span><span class="p">)</span> +<a id="line-80" name="line-80"></a><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">GDate</span><span class="w"> </span><span class="o">*</span><span class="n">exif_date</span><span class="p">;</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">tm</span><span class="w"> </span><span class="n">tmp_tm</span><span class="p">;</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">exif_date</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_date_new_dmy</span><span class="w"> </span><span class="p">(</span><span class="n">tm</span><span class="o">-></span><span class="n">tm_mday</span><span class="p">,</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">tm</span><span class="o">-></span><span class="n">tm_mon</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">tm</span><span class="o">-></span><span class="n">tm_year</span><span class="o">+</span><span class="mi">1900</span><span class="p">);</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">exif_date</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">g_date_valid</span><span class="w"> </span><span class="p">(</span><span class="n">exif_date</span><span class="p">));</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="c1">// Use this to get GLib <-> libc corrected values</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">g_date_to_struct_tm</span><span class="w"> </span><span class="p">(</span><span class="n">exif_date</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp_tm</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_date_free</span><span class="w"> </span><span class="p">(</span><span class="n">exif_date</span><span class="p">);</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">tm</span><span class="o">-></span><span class="n">tm_wday</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp_tm</span><span class="p">.</span><span class="n">tm_wday</span><span class="p">;</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">tm</span><span class="o">-></span><span class="n">tm_yday</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp_tm</span><span class="p">.</span><span class="n">tm_yday</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="p">}</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="cm">/* Older GCCs don't support pragma diagnostic inside functions.</span> +<a id="line-99" name="line-99"></a><span class="cm"> * Put these here to avoid problems with the strftime format strings</span> +<a id="line-100" name="line-100"></a><span class="cm"> * without breaking the build for these older GCCs */</span> +<a id="line-101" name="line-101"></a><span class="cp">#pragma GCC diagnostic push</span> +<a id="line-102" name="line-102"></a><span class="cp">#pragma GCC diagnostic ignored "-Wformat-nonliteral"</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="cp">#ifdef HAVE_STRPTIME</span> +<a id="line-105" name="line-105"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-106" name="line-106"></a><span class="n">eom_exif_util_format_date_with_strptime</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">date</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="o">*</span><span class="w"> </span><span class="n">format</span><span class="p">)</span> +<a id="line-107" name="line-107"></a><span class="p">{</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GOnce</span><span class="w"> </span><span class="n">strptime_updates_wday</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_ONCE_INIT</span><span class="p">;</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">new_date</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">tmp_date</span><span class="p">[</span><span class="n">DATE_BUF_SIZE</span><span class="p">];</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">dlen</span><span class="p">;</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">tm</span><span class="w"> </span><span class="n">tm</span><span class="p">;</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">memset</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">tm</span><span class="p">,</span><span class="w"> </span><span class="sc">'\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">tm</span><span class="p">));</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strptime</span><span class="w"> </span><span class="p">(</span><span class="n">date</span><span class="p">,</span><span class="w"> </span><span class="s">"%Y:%m:%d %T"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tm</span><span class="p">);</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">date</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">date</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">g_once</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">strptime_updates_wday</span><span class="p">,</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">_check_strptime_updates_wday</span><span class="p">,</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="c1">// Ensure tm.tm_wday and tm.tm_yday are set</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">GPOINTER_TO_BOOLEAN</span><span class="w"> </span><span class="p">(</span><span class="n">strptime_updates_wday</span><span class="p">.</span><span class="n">retval</span><span class="p">))</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">_calculate_wday_yday</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">tm</span><span class="p">);</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="cm">/* A strftime-formatted string, to display the date the image was taken. */</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">dlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strftime</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_date</span><span class="p">,</span><span class="w"> </span><span class="n">DATE_BUF_SIZE</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">gchar</span><span class="p">),</span><span class="w"> </span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tm</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">new_date</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strndup</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_date</span><span class="p">,</span><span class="w"> </span><span class="n">dlen</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">}</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">new_date</span><span class="p">;</span> +<a id="line-133" name="line-133"></a><span class="p">}</span> +<a id="line-134" name="line-134"></a><span class="cp">#else</span> +<a id="line-135" name="line-135"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-136" name="line-136"></a><span class="n">eom_exif_util_format_date_by_hand</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">date</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="o">*</span><span class="w"> </span><span class="n">format</span><span class="p">)</span> +<a id="line-137" name="line-137"></a><span class="p">{</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">year</span><span class="p">,</span><span class="w"> </span><span class="n">month</span><span class="p">,</span><span class="w"> </span><span class="n">day</span><span class="p">,</span><span class="w"> </span><span class="n">hour</span><span class="p">,</span><span class="w"> </span><span class="n">minutes</span><span class="p">,</span><span class="w"> </span><span class="n">seconds</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">new_date</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sscanf</span><span class="w"> </span><span class="p">(</span><span class="n">date</span><span class="p">,</span><span class="w"> </span><span class="s">"%d:%d:%d %d:%d:%d"</span><span class="p">,</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="o">&</span><span class="n">year</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">month</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">day</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">hour</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minutes</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">seconds</span><span class="p">);</span> +<a id="line-144" name="line-144"></a> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</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="o">!</span><span class="n">g_date_valid_dmy</span><span class="w"> </span><span class="p">(</span><span class="n">day</span><span class="p">,</span><span class="w"> </span><span class="n">month</span><span class="p">,</span><span class="w"> </span><span class="n">year</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">tmp_date</span><span class="p">[</span><span class="n">DATE_BUF_SIZE</span><span class="p">];</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">dlen</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">tm</span><span class="w"> </span><span class="n">tm</span><span class="p">;</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">memset</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">tm</span><span class="p">,</span><span class="w"> </span><span class="sc">'\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">tm</span><span class="p">));</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">tm</span><span class="p">.</span><span class="n">tm_mday</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">day</span><span class="p">;</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">tm</span><span class="p">.</span><span class="n">tm_mon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">month</span><span class="mi">-1</span><span class="p">;</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">tm</span><span class="p">.</span><span class="n">tm_year</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">year</span><span class="mi">-1900</span><span class="p">;</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="c1">// Calculate tm.tm_wday</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">_calculate_wday_yday</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">tm</span><span class="p">);</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">tm</span><span class="p">.</span><span class="n">tm_sec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">6</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">seconds</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">tm</span><span class="p">.</span><span class="n">tm_min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">5</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">minutes</span><span class="p">;</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">tm</span><span class="p">.</span><span class="n">tm_hour</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">hour</span><span class="p">;</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">dlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strftime</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_date</span><span class="p">,</span><span class="w"> </span><span class="n">DATE_BUF_SIZE</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">gchar</span><span class="p">),</span><span class="w"> </span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tm</span><span class="p">);</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dlen</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">else</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">new_date</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strndup</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_date</span><span class="p">,</span><span class="w"> </span><span class="n">dlen</span><span class="p">);</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">new_date</span><span class="p">;</span> +<a id="line-170" name="line-170"></a><span class="p">}</span> +<a id="line-171" name="line-171"></a><span class="cp">#endif </span><span class="cm">/* HAVE_STRPTIME */</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="cp">#pragma GCC diagnostic pop</span> +<a id="line-174" name="line-174"></a> +<a id="line-175" name="line-175"></a><span class="cm">/**</span> +<a id="line-176" name="line-176"></a><span class="cm"> * eom_exif_util_format_date:</span> +<a id="line-177" name="line-177"></a><span class="cm"> * @date: a date string following Exif specifications</span> +<a id="line-178" name="line-178"></a><span class="cm"> *</span> +<a id="line-179" name="line-179"></a><span class="cm"> * Takes a date string formatted after Exif specifications and generates a</span> +<a id="line-180" name="line-180"></a><span class="cm"> * more readable, possibly localized, string out of it.</span> +<a id="line-181" name="line-181"></a><span class="cm"> *</span> +<a id="line-182" name="line-182"></a><span class="cm"> * Returns: a newly allocated date string formatted according to the</span> +<a id="line-183" name="line-183"></a><span class="cm"> * current locale.</span> +<a id="line-184" name="line-184"></a><span class="cm"> */</span> +<a id="line-185" name="line-185"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-186" name="line-186"></a><span class="n">eom_exif_util_format_date</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">date</span><span class="p">)</span> +<a id="line-187" name="line-187"></a><span class="p">{</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">new_date</span><span class="p">;</span> +<a id="line-189" name="line-189"></a><span class="cp">#ifdef HAVE_STRPTIME</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="cm">/* A strftime-formatted string, to display the date the image was taken. */</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">new_date</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_exif_util_format_date_with_strptime</span><span class="w"> </span><span class="p">(</span><span class="n">date</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"%a, %d %B %Y %X"</span><span class="p">));</span> +<a id="line-192" name="line-192"></a><span class="cp">#else</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">new_date</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_exif_util_format_date_by_hand</span><span class="w"> </span><span class="p">(</span><span class="n">date</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"%a, %d %B %Y %X"</span><span class="p">));</span> +<a id="line-194" name="line-194"></a><span class="cp">#endif </span><span class="cm">/* HAVE_STRPTIME */</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">new_date</span><span class="p">;</span> +<a id="line-196" name="line-196"></a><span class="p">}</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="kt">void</span> +<a id="line-199" name="line-199"></a><span class="n">eom_exif_util_set_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GtkLabel</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">EomExifData</span><span class="w"> </span><span class="o">*</span><span class="n">exif_data</span><span class="p">,</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">tag_id</span><span class="p">)</span> +<a id="line-202" name="line-202"></a><span class="p">{</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">exif_buffer</span><span class="p">[</span><span class="mi">512</span><span class="p">];</span> +<a id="line-204" name="line-204"></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">buf_ptr</span><span class="p">;</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">));</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">buf_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_exif_data_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">tag_id</span><span class="p">,</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">exif_buffer</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">);</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tag_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_ORIGINAL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">buf_ptr</span><span class="p">)</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">label_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_exif_util_format_date</span><span class="w"> </span><span class="p">(</span><span class="n">buf_ptr</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">else</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">label_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_util_make_valid_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">buf_ptr</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">}</span> +<a id="line-218" name="line-218"></a> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">label_text</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">label_text</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="p">}</span> +<a id="line-222" name="line-222"></a> +<a id="line-223" name="line-223"></a><span class="kt">void</span> +<a id="line-224" name="line-224"></a><span class="n">eom_exif_util_format_datetime_label</span><span class="w"> </span><span class="p">(</span><span class="n">GtkLabel</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">EomExifData</span><span class="w"> </span><span class="o">*</span><span class="n">exif_data</span><span class="p">,</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">tag_id</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">format</span><span class="p">)</span> +<a id="line-226" name="line-226"></a><span class="p">{</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">exif_buffer</span><span class="p">[</span><span class="mi">512</span><span class="p">];</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">buf_ptr</span><span class="p">;</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-230" name="line-230"></a> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">));</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">tag_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_ORIGINAL</span><span class="p">);</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">buf_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_exif_data_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">tag_id</span><span class="p">,</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">exif_buffer</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">);</span> +<a id="line-237" name="line-237"></a> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tag_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_TAG_DATE_TIME_ORIGINAL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">buf_ptr</span><span class="p">)</span> +<a id="line-239" name="line-239"></a><span class="cp">#ifdef HAVE_STRPTIME</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">label_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_exif_util_format_date_with_strptime</span><span class="w"> </span><span class="p">(</span><span class="n">buf_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="cp">#else</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">label_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_exif_util_format_date_by_hand</span><span class="w"> </span><span class="p">(</span><span class="n">buf_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-243" name="line-243"></a><span class="cp">#endif </span><span class="cm">/* HAVE_STRPTIME */</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">}</span> +<a id="line-245" name="line-245"></a> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">label_text</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">label_text</span><span class="p">);</span> +<a id="line-248" name="line-248"></a><span class="p">}</span> +<a id="line-249" name="line-249"></a> +<a id="line-250" name="line-250"></a><span class="kt">void</span> +<a id="line-251" name="line-251"></a><span class="n">eom_exif_util_set_focal_length_label_text</span><span class="w"> </span><span class="p">(</span><span class="n">GtkLabel</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">EomExifData</span><span class="w"> </span><span class="o">*</span><span class="n">exif_data</span><span class="p">)</span> +<a id="line-253" name="line-253"></a><span class="p">{</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">ExifEntry</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">entry35mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">ExifByteOrder</span><span class="w"> </span><span class="n">byte_order</span><span class="p">;</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">gfloat</span><span class="w"> </span><span class="n">f_val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">fl_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="o">*</span><span class="n">fl35_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="cm">/* If no ExifData is supplied the label will be</span> +<a id="line-260" name="line-260"></a><span class="cm"> * cleared later as fl35_text is NULL. */</span> +<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">exif_data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">EXIF_TAG_FOCAL_LENGTH</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">entry35mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">,</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">EXIF_TAG_FOCAL_LENGTH_IN_35MM_FILM</span><span class="p">);</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">byte_order</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_byte_order</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="p">}</span> +<a id="line-267" name="line-267"></a> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_FORMAT_RATIONAL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">ExifRational</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="cm">/* Decode value by hand as libexif is not necessarily returning</span> +<a id="line-272" name="line-272"></a><span class="cm"> * it in the format we want it to be.</span> +<a id="line-273" name="line-273"></a><span class="cm"> */</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_rational</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">byte_order</span><span class="p">);</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="cm">/* Guard against div by zero */</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="p">(</span><span class="n">value</span><span class="p">.</span><span class="n">denominator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">f_val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="n">value</span><span class="p">.</span><span class="n">numerator</span><span class="o">/</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="p">(</span><span class="n">gfloat</span><span class="p">)</span><span class="n">value</span><span class="p">.</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-279" name="line-279"></a> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* TRANSLATORS: This is the actual focal length used when</span> +<a id="line-281" name="line-281"></a><span class="cm"> the image was taken.*/</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">fl_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"%.1f (lens)"</span><span class="p">),</span><span class="w"> </span><span class="n">f_val</span><span class="p">);</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">}</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry35mm</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">entry35mm</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EXIF_FORMAT_SHORT</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">ExifShort</span><span class="w"> </span><span class="n">s_val</span><span class="p">;</span> +<a id="line-287" name="line-287"></a> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">s_val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_get_short</span><span class="w"> </span><span class="p">(</span><span class="n">entry35mm</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">byte_order</span><span class="p">);</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="cm">/* Print as float to get a similar look as above. */</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="cm">/* TRANSLATORS: This is the equivalent focal length assuming</span> +<a id="line-292" name="line-292"></a><span class="cm"> a 35mm film camera. */</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">fl35_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"%.1f (35mm film)"</span><span class="p">),(</span><span class="kt">float</span><span class="p">)</span><span class="n">s_val</span><span class="p">);</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">}</span> +<a id="line-295" name="line-295"></a> +<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">fl_text</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fl35_text</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">merged_txt</span><span class="p">;</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">merged_txt</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">fl35_text</span><span class="p">,</span><span class="s">", "</span><span class="p">,</span><span class="w"> </span><span class="n">fl_text</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">merged_txt</span><span class="p">);</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">merged_txt</span><span class="p">);</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">fl_text</span><span class="p">);</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="p">}</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="cm">/* This will also clear the label if no ExifData was supplied */</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">fl35_text</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="p">}</span> +<a id="line-310" name="line-310"></a> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">fl35_text</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">fl_text</span><span class="p">);</span> +<a id="line-313" name="line-313"></a><span class="p">}</span> +<a id="line-314" name="line-314"></a> +<a id="line-315" name="line-315"></a><span class="cm">/**</span> +<a id="line-316" name="line-316"></a><span class="cm"> * eom_exif_data_get_value:</span> +<a id="line-317" name="line-317"></a><span class="cm"> * @exif_data: pointer to an <structname>ExifData</structname> struct</span> +<a id="line-318" name="line-318"></a><span class="cm"> * @tag_id: the requested tag's id. See <filename>exif-tag.h</filename></span> +<a id="line-319" name="line-319"></a><span class="cm"> * from the libexif package for possible values (e.g. %EXIF_TAG_EXPOSURE_MODE).</span> +<a id="line-320" name="line-320"></a><span class="cm"> * @buffer: a pre-allocated output buffer</span> +<a id="line-321" name="line-321"></a><span class="cm"> * @buf_size: size of @buffer</span> +<a id="line-322" name="line-322"></a><span class="cm"> *</span> +<a id="line-323" name="line-323"></a><span class="cm"> * Convenience function to extract a string representation of an Exif tag</span> +<a id="line-324" name="line-324"></a><span class="cm"> * directly from an <structname>ExifData</structname> struct. The string is</span> +<a id="line-325" name="line-325"></a><span class="cm"> * written into @buffer as far as @buf_size permits.</span> +<a id="line-326" name="line-326"></a><span class="cm"> *</span> +<a id="line-327" name="line-327"></a><span class="cm"> * Returns: a pointer to @buffer.</span> +<a id="line-328" name="line-328"></a><span class="cm"> */</span> +<a id="line-329" name="line-329"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-330" name="line-330"></a><span class="n">eom_exif_data_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">EomExifData</span><span class="w"> </span><span class="o">*</span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">tag_id</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">buffer</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">buf_size</span><span class="p">)</span> +<a id="line-331" name="line-331"></a><span class="p">{</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">ExifEntry</span><span class="w"> </span><span class="o">*</span><span class="n">exif_entry</span><span class="p">;</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">exif_value</span><span class="p">;</span> +<a id="line-334" name="line-334"></a> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">exif_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_data_get_entry</span><span class="w"> </span><span class="p">(</span><span class="n">exif_data</span><span class="p">,</span><span class="w"> </span><span class="n">tag_id</span><span class="p">);</span> +<a id="line-336" name="line-336"></a> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-338" name="line-338"></a> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">exif_value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exif_entry_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">exif_entry</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="n">buf_size</span><span class="p">);</span> +<a id="line-340" name="line-340"></a> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">exif_value</span><span class="p">;</span> +<a id="line-342" name="line-342"></a><span class="p">}</span> +<a id="line-343" name="line-343"></a> +<a id="line-344" name="line-344"></a><span class="n">EomExifData</span><span class="w"> </span><span class="o">*</span> +<a id="line-345" name="line-345"></a><span class="n">eom_exif_data_copy</span><span class="w"> </span><span class="p">(</span><span class="n">EomExifData</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-346" name="line-346"></a><span class="p">{</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">exif_data_ref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-348" name="line-348"></a> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-350" name="line-350"></a><span class="p">}</span> +<a id="line-351" name="line-351"></a> +<a id="line-352" name="line-352"></a><span class="kt">void</span> +<a id="line-353" name="line-353"></a><span class="n">eom_exif_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">EomExifData</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-354" name="line-354"></a><span class="p">{</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">exif_data_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-356" name="line-356"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/9.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/9.html new file mode 100644 index 0000000..d9b053d --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/9.html @@ -0,0 +1,1253 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: src/eom-file-chooser.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> eom-file-chooser.c</p> +<a href="9.html#line-54"> unknownMacro 54</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span> +<a id="line-3" name="line-3"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span> +<a id="line-4" name="line-4"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> +<a id="line-5" name="line-5"></a><span class="cm"> * (at your option) any later version.</span> +<a id="line-6" name="line-6"></a><span class="cm"> *</span> +<a id="line-7" name="line-7"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span> +<a id="line-8" name="line-8"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-9" name="line-9"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> +<a id="line-10" name="line-10"></a><span class="cm"> * GNU General Public License for more details.</span> +<a id="line-11" name="line-11"></a><span class="cm"> *</span> +<a id="line-12" name="line-12"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span> +<a id="line-13" name="line-13"></a><span class="cm"> * along with this program; if not, write to the Free Software</span> +<a id="line-14" name="line-14"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor,</span> +<a id="line-15" name="line-15"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span> +<a id="line-16" name="line-16"></a><span class="cm"> */</span> +<a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span> +<a id="line-20" name="line-20"></a><span class="cp">#endif</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-file-chooser.h"</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-config-keys.h"</span> +<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"eom-pixbuf-util.h"</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"><stdlib.h></span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span> +<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span> +<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span> +<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="cm">/* We must define MATE_DESKTOP_USE_UNSTABLE_API to be able</span> +<a id="line-34" name="line-34"></a><span class="cm"> to use MateDesktopThumbnail */</span> +<a id="line-35" name="line-35"></a><span class="cp">#ifndef MATE_DESKTOP_USE_UNSTABLE_API</span> +<a id="line-36" name="line-36"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span> +<a id="line-37" name="line-37"></a><span class="cp">#endif</span> +<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libmate-desktop/mate-desktop-thumbnail.h></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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">last_dir</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="cp">#define FILE_FORMAT_KEY "file-format"</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_EomFileChooserPrivate</span> +<a id="line-45" name="line-45"></a><span class="p">{</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">thumb_factory</span><span class="p">;</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">size_label</span><span class="p">;</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dim_label</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">creator_label</span><span class="p">;</span> +<a id="line-52" name="line-52"></a><span class="p">};</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">EomFileChooser</span><span class="p">,</span><span class="w"> </span><span class="n">eom_file_chooser</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_FILE_CHOOSER_DIALOG</span><span class="p">)</span><span class="error2"><--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span> +</span><a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-57" name="line-57"></a><span class="n">eom_file_chooser_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-58" name="line-58"></a><span class="p">{</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">EomFileChooserPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-62" name="line-62"></a> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_factory</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_factory</span><span class="p">);</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">eom_file_chooser_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">finalize</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="p">}</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-70" name="line-70"></a><span class="n">eom_file_chooser_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomFileChooserClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-71" name="line-71"></a><span class="p">{</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_file_chooser_finalize</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="p">}</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-78" name="line-78"></a><span class="n">eom_file_chooser_init</span><span class="w"> </span><span class="p">(</span><span class="n">EomFileChooser</span><span class="w"> </span><span class="o">*</span><span class="n">chooser</span><span class="p">)</span> +<a id="line-79" name="line-79"></a><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">chooser</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_file_chooser_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">);</span> +<a id="line-81" name="line-81"></a><span class="p">}</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-84" name="line-84"></a><span class="n">response_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-85" name="line-85"></a><span class="p">{</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">GtkFileChooserAction</span><span class="w"> </span><span class="n">action</span><span class="p">;</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-90" name="line-90"></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">gtk_file_chooser_get_current_folder</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_chooser_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">last_dir</span><span class="w"> </span><span class="p">[</span><span class="n">action</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">last_dir</span><span class="w"> </span><span class="p">[</span><span class="n">action</span><span class="p">]);</span> +<a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">last_dir</span><span class="w"> </span><span class="p">[</span><span class="n">action</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dir</span><span class="p">;</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="p">}</span> +<a id="line-98" name="line-98"></a><span class="p">}</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-101" name="line-101"></a><span class="n">save_response_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dlg</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-102" name="line-102"></a><span class="p">{</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-108" name="line-108"></a> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_chooser_get_file</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">));</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_pixbuf_get_format</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-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="o">!</span><span class="n">format</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">gdk_pixbuf_format_is_writable</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">msg_dialog</span><span class="p">;</span> +<a id="line-115" name="line-115"></a> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">msg_dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_message_dialog_new</span><span class="w"> </span><span class="p">(</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">),</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">GTK_DIALOG_MODAL</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">GTK_MESSAGE_ERROR</span><span class="p">,</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">GTK_BUTTONS_OK</span><span class="p">,</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"File format is unknown or unsupported"</span><span class="p">));</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">gtk_message_dialog_format_secondary_text</span><span class="w"> </span><span class="p">(</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">GTK_MESSAGE_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">msg_dialog</span><span class="p">),</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="s">"%s</span><span class="se">\n</span><span class="s">%s"</span><span class="p">,</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Eye of MATE could not determine a supported writable file format based on the filename."</span><span class="p">),</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Please try a different file extension like .png or .jpg."</span><span class="p">));</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">gtk_dialog_run</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">msg_dialog</span><span class="p">));</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">msg_dialog</span><span class="p">);</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">g_signal_stop_emission_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">response_cb</span><span class="w"> </span><span class="p">(</span><span class="n">dlg</span><span class="p">,</span><span class="w"> </span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="p">}</span> +<a id="line-136" name="line-136"></a><span class="p">}</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-139" name="line-139"></a><span class="n">eom_file_chooser_add_filter</span><span class="w"> </span><span class="p">(</span><span class="n">EomFileChooser</span><span class="w"> </span><span class="o">*</span><span class="n">chooser</span><span class="p">)</span> +<a id="line-140" name="line-140"></a><span class="p">{</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">formats</span><span class="p">;</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">GtkFileFilter</span><span class="w"> </span><span class="o">*</span><span class="n">all_file_filter</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GtkFileFilter</span><span class="w"> </span><span class="o">*</span><span class="n">all_img_filter</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GtkFileFilter</span><span class="w"> </span><span class="o">*</span><span class="n">filter</span><span class="p">;</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">filters</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">mime_types</span><span class="p">,</span><span class="w"> </span><span class="o">**</span><span class="n">pattern</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">GtkFileChooserAction</span><span class="w"> </span><span class="n">action</span><span class="p">;</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_chooser_get_action</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">));</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GTK_FILE_CHOOSER_ACTION_SAVE</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GTK_FILE_CHOOSER_ACTION_OPEN</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">}</span> +<a id="line-156" name="line-156"></a> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="cm">/* All Files Filter */</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">all_file_filter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_filter_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">gtk_file_filter_set_name</span><span class="w"> </span><span class="p">(</span><span class="n">all_file_filter</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"All Files"</span><span class="p">));</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">gtk_file_filter_add_pattern</span><span class="w"> </span><span class="p">(</span><span class="n">all_file_filter</span><span class="p">,</span><span class="w"> </span><span class="s">"*"</span><span class="p">);</span> +<a id="line-161" name="line-161"></a> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="cm">/* All Image Filter */</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">all_img_filter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_filter_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">gtk_file_filter_set_name</span><span class="w"> </span><span class="p">(</span><span class="n">all_img_filter</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"All Images"</span><span class="p">));</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_FILE_CHOOSER_ACTION_SAVE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">formats</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eom_pixbuf_get_savable_formats</span><span class="w"> </span><span class="p">();</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">formats</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_formats</span><span class="w"> </span><span class="p">();</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="p">}</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="cm">/* Image filters */</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">formats</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filter_name</span><span class="p">;</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">description</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">extension</span><span class="p">;</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">filter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_filter_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-179" name="line-179"></a> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbufFormat</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">description</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_format_get_description</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">extension</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_format_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">);</span> +<a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="cm">/* Filter name: First description then file extension, eg. "The PNG-Format (*.png)".*/</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">filter_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"%s (*.%s)"</span><span class="p">),</span><span class="w"> </span><span class="n">description</span><span class="p">,</span><span class="w"> </span><span class="n">extension</span><span class="p">);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">description</span><span class="p">);</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">extension</span><span class="p">);</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">gtk_file_filter_set_name</span><span class="w"> </span><span class="p">(</span><span class="n">filter</span><span class="p">,</span><span class="w"> </span><span class="n">filter_name</span><span class="p">);</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filter_name</span><span class="p">);</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">mime_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_format_get_mime_types</span><span class="w"> </span><span class="p">((</span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<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">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">mime_types</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">gtk_file_filter_add_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">filter</span><span class="p">,</span><span class="w"> </span><span class="n">mime_types</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">gtk_file_filter_add_mime_type</span><span class="w"> </span><span class="p">(</span><span class="n">all_img_filter</span><span class="p">,</span><span class="w"> </span><span class="n">mime_types</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="p">}</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">mime_types</span><span class="p">);</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">pattern</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_format_get_extensions</span><span class="w"> </span><span class="p">((</span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">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">pattern</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">"*."</span><span class="p">,</span><span class="w"> </span><span class="n">pattern</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">gtk_file_filter_add_pattern</span><span class="w"> </span><span class="p">(</span><span class="n">filter</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="p">);</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">gtk_file_filter_add_pattern</span><span class="w"> </span><span class="p">(</span><span class="n">all_img_filter</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">}</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">pattern</span><span class="p">);</span> +<a id="line-207" name="line-207"></a> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="cm">/* attach GdkPixbufFormat to filter, see also</span> +<a id="line-209" name="line-209"></a><span class="cm"> * eom_file_chooser_get_format. */</span> +<a id="line-210" name="line-210"></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">filter</span><span class="p">),</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">FILE_FORMAT_KEY</span><span class="p">,</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-213" name="line-213"></a> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">filters</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">filters</span><span class="p">,</span><span class="w"> </span><span class="n">filter</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="p">}</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_slist_free</span><span class="w"> </span><span class="p">(</span><span class="n">formats</span><span class="p">);</span> +<a id="line-217" name="line-217"></a> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="cm">/* Add filter to filechooser */</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">gtk_file_chooser_add_filter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="n">all_file_filter</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">gtk_file_chooser_add_filter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="n">all_img_filter</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_filter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="n">all_img_filter</span><span class="p">);</span> +<a id="line-222" name="line-222"></a> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">filters</span><span class="p">;</span><span class="w"> </span><span class="n">it</span><span class="w"> </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">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">gtk_file_chooser_add_filter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_FILE_FILTER</span><span class="w"> </span><span class="p">(</span><span class="n">it</span><span class="o">-></span><span class="n">data</span><span class="p">));</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="p">}</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_slist_free</span><span class="w"> </span><span class="p">(</span><span class="n">filters</span><span class="p">);</span> +<a id="line-227" name="line-227"></a><span class="p">}</span> +<a id="line-228" name="line-228"></a> +<a id="line-229" name="line-229"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-230" name="line-230"></a><span class="n">set_preview_label</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">)</span> +<a id="line-231" name="line-231"></a><span class="p">{</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">));</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="p">}</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">str</span><span class="p">);</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">));</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">}</span> +<a id="line-239" name="line-239"></a><span class="p">}</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="cm">/* Sets the pixbuf as preview thumbnail and tries to read and display</span> +<a id="line-242" name="line-242"></a><span class="cm"> * further information according to the thumbnail spec.</span> +<a id="line-243" name="line-243"></a><span class="cm"> */</span> +<a id="line-244" name="line-244"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-245" name="line-245"></a><span class="n">set_preview_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">EomFileChooser</span><span class="w"> </span><span class="o">*</span><span class="n">chooser</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">goffset</span><span class="w"> </span><span class="n">size</span><span class="p">)</span> +<a id="line-246" name="line-246"></a><span class="p">{</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">EomFileChooserPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bytes</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">pixels</span><span class="p">;</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">bytes_str</span><span class="p">;</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">;</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">;</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">creator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">size_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">dim_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-256" name="line-256"></a> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_IS_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">));</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">chooser</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-260" name="line-260"></a> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">gtk_image_set_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-262" name="line-262"></a> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="cm">/* try to read file size */</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">bytes_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="s">"tEXt::Thumb::Size"</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bytes_str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">atoi</span><span class="w"> </span><span class="p">(</span><span class="n">bytes_str</span><span class="p">);</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">size_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_format_size</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="p">}</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">size_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_format_size</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="p">);</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">}</span> +<a id="line-273" name="line-273"></a> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="cm">/* try to read image dimensions */</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="s">"tEXt::Thumb::Image::Width"</span><span class="p">);</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="s">"tEXt::Thumb::Image::Height"</span><span class="p">);</span> +<a id="line-277" name="line-277"></a> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">width</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">pixels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">atoi</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="p">);</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* Pixel size of image: width x height in pixel */</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">dim_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"%s x %s %s"</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">ngettext</span><span class="w"> </span><span class="p">(</span><span class="s">"pixel"</span><span class="p">,</span><span class="w"> </span><span class="s">"pixels"</span><span class="p">,</span><span class="w"> </span><span class="n">pixels</span><span class="p">));</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">}</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="cp">#if 0</span> +<a id="line-285" name="line-285"></a><span class="c"> /* Not sure, if this is really useful, therefore its commented out for now. */</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="c"> /* try to read creator of the thumbnail */</span> +<a id="line-288" name="line-288"></a><span class="c"> creator = gdk_pixbuf_get_option (pixbuf, "tEXt::Software");</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="c"> /* stupid workaround to display nicer string if the</span> +<a id="line-291" name="line-291"></a><span class="c"> * thumbnail is created through the mate libraries.</span> +<a id="line-292" name="line-292"></a><span class="c"> */</span> +<a id="line-293" name="line-293"></a><span class="c"> if (g_ascii_strcasecmp (creator, "Mate::ThumbnailFactory") == 0) {</span> +<a id="line-294" name="line-294"></a><span class="c"> creator = "MATE Libs";</span> +<a id="line-295" name="line-295"></a><span class="c"> }</span> +<a id="line-296" name="line-296"></a><span class="cp">#endif</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">}</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">set_preview_label</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">size_label</span><span class="p">,</span><span class="w"> </span><span class="n">size_str</span><span class="p">);</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">set_preview_label</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">dim_label</span><span class="p">,</span><span class="w"> </span><span class="n">dim_str</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">set_preview_label</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">creator_label</span><span class="p">,</span><span class="w"> </span><span class="n">creator</span><span class="p">);</span> +<a id="line-302" name="line-302"></a> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">size_str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">size_str</span><span class="p">);</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="p">}</span> +<a id="line-306" name="line-306"></a> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dim_str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dim_str</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="p">}</span> +<a id="line-310" name="line-310"></a><span class="p">}</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-313" name="line-313"></a><span class="n">update_preview_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkFileChooser</span><span class="w"> </span><span class="o">*</span><span class="n">file_chooser</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-314" name="line-314"></a><span class="p">{</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">EomFileChooserPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">thumb_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-322" name="line-322"></a> +<a id="line-323" name="line-323"></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">EOM_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">file_chooser</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-324" name="line-324"></a> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_chooser_get_preview_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file_chooser</span><span class="p">);</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">uri</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_preview_widget_active</span><span class="w"> </span><span class="p">(</span><span class="n">file_chooser</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">}</span> +<a id="line-330" name="line-330"></a> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="w"> </span><span class="s">","</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_TYPE</span><span class="w"> </span><span class="s">","</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_SIZE</span><span class="w"> </span><span class="s">","</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</span><span class="p">,</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">file_info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_factory</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">g_file_info_get_file_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">G_FILE_TYPE_SPECIAL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">guint64</span><span class="w"> </span><span class="n">mtime</span><span class="p">;</span> +<a id="line-343" name="line-343"></a> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint64</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">,</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">);</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">thumb_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_factory</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_path</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">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_path</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="cm">/* try to load and display preview thumbnail */</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_info_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">)</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">100000</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="cm">/* read files smaller than 100kb directly */</span> +<a id="line-353" name="line-353"></a> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_content_type_get_mime_type</span><span class="w"> </span><span class="p">(</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">g_file_info_get_content_type</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">));</span> +<a id="line-356" name="line-356"></a> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">can_thumbnail</span><span class="p">,</span><span class="w"> </span><span class="n">has_failed</span><span class="p">;</span> +<a id="line-359" name="line-359"></a> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">can_thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_can_thumbnail</span><span class="w"> </span><span class="p">(</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_factory</span><span class="p">,</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mime_type</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">has_failed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_has_valid_failed_thumbnail</span><span class="w"> </span><span class="p">(</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_factory</span><span class="p">,</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span> +<a id="line-366" name="line-366"></a> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_LIKELY</span><span class="w"> </span><span class="p">(</span><span class="n">can_thumbnail</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">has_failed</span><span class="p">))</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_generate_thumbnail</span><span class="w"> </span><span class="p">(</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_factory</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mime_type</span><span class="p">);</span> +<a id="line-370" name="line-370"></a> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="p">);</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="p">}</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="p">}</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">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">have_preview</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">set_preview_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">file_chooser</span><span class="p">),</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">g_file_info_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">));</span> +<a id="line-380" name="line-380"></a> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="p">}</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="p">}</span> +<a id="line-384" name="line-384"></a> +<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">thumb_path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_path</span><span class="p">);</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="p">}</span> +<a id="line-388" name="line-388"></a> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span> +<a id="line-391" name="line-391"></a> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_preview_widget_active</span><span class="w"> </span><span class="p">(</span><span class="n">file_chooser</span><span class="p">,</span><span class="w"> </span><span class="n">have_preview</span><span class="p">);</span> +<a id="line-393" name="line-393"></a><span class="p">}</span> +<a id="line-394" name="line-394"></a> +<a id="line-395" name="line-395"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-396" name="line-396"></a><span class="n">eom_file_chooser_add_preview</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span> +<a id="line-397" name="line-397"></a><span class="p">{</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">EomFileChooserPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">;</span> +<a id="line-400" name="line-400"></a> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EOM_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="p">;</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="cm">/* 128x128 is maximum size of thumbnails */</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="mi">128</span><span class="p">,</span><span class="mi">128</span><span class="p">);</span> +<a id="line-409" name="line-409"></a> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">dim_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">creator_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-413" name="line-413"></a> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">dim_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">size_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">creator_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-418" name="line-418"></a> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">);</span> +<a id="line-420" name="line-420"></a> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_preview_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">vbox</span><span class="p">);</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_preview_widget_active</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">priv</span><span class="o">-></span><span class="n">thumb_factory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL</span><span class="p">);</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="s">"update-preview"</span><span class="p">,</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">update_preview_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-428" name="line-428"></a><span class="p">}</span> +<a id="line-429" name="line-429"></a> +<a id="line-430" name="line-430"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-431" name="line-431"></a><span class="n">eom_file_chooser_new</span><span class="w"> </span><span class="p">(</span><span class="n">GtkFileChooserAction</span><span class="w"> </span><span class="n">action</span><span class="p">)</span> +<a id="line-432" name="line-432"></a><span class="p">{</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">chooser</span><span class="p">;</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">title</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-435" name="line-435"></a> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">chooser</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">EOM_TYPE_FILE_CHOOSER</span><span class="p">,</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="s">"action"</span><span class="p">,</span><span class="w"> </span><span class="n">action</span><span class="p">,</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="s">"select-multiple"</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_FILE_CHOOSER_ACTION_OPEN</span><span class="p">),</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="s">"local-only"</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-441" name="line-441"></a> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_FILE_CHOOSER_ACTION_OPEN</span><span class="p">:</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">gtk_dialog_add_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="s">"gtk-cancel"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">,</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="s">"gtk-open"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">,</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">title</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Open Image"</span><span class="p">);</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-450" name="line-450"></a> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_FILE_CHOOSER_ACTION_SAVE</span><span class="p">:</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">gtk_dialog_add_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="s">"gtk-cancel"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">,</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="s">"gtk-save"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">,</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">title</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Save Image"</span><span class="p">);</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-458" name="line-458"></a> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER</span><span class="p">:</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">gtk_dialog_add_buttons</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="s">"gtk-cancel"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">,</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="s">"gtk-open"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">,</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">title</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Open Folder"</span><span class="p">);</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-466" name="line-466"></a> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="p">}</span> +<a id="line-470" name="line-470"></a> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">action</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">eom_file_chooser_add_filter</span><span class="w"> </span><span class="p">(</span><span class="n">EOM_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">));</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">eom_file_chooser_add_preview</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">);</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="p">}</span> +<a id="line-475" name="line-475"></a> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">last_dir</span><span class="p">[</span><span class="n">action</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_current_folder</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="n">last_dir</span><span class="w"> </span><span class="p">[</span><span class="n">action</span><span class="p">]);</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">}</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">((</span><span class="n">action</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_FILE_CHOOSER_ACTION_SAVE</span><span class="p">)</span><span class="w"> </span><span class="o">?</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="nl">save_response_cb</span><span class="w"> </span><span class="p">:</span><span class="w"> </span><span class="n">response_cb</span><span class="p">),</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-484" name="line-484"></a> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="n">title</span><span class="p">);</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">gtk_dialog_set_default_response</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span> +<a id="line-487" name="line-487"></a> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">gtk_file_chooser_set_do_overwrite_confirmation</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-489" name="line-489"></a> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">chooser</span><span class="p">;</span> +<a id="line-491" name="line-491"></a><span class="p">}</span> +<a id="line-492" name="line-492"></a> +<a id="line-493" name="line-493"></a><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span> +<a id="line-494" name="line-494"></a><span class="n">eom_file_chooser_get_format</span><span class="w"> </span><span class="p">(</span><span class="n">EomFileChooser</span><span class="w"> </span><span class="o">*</span><span class="n">chooser</span><span class="p">)</span> +<a id="line-495" name="line-495"></a><span class="p">{</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">GtkFileFilter</span><span class="w"> </span><span class="o">*</span><span class="n">filter</span><span class="p">;</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="o">*</span><span class="w"> </span><span class="n">format</span><span class="p">;</span> +<a id="line-498" name="line-498"></a> +<a id="line-499" name="line-499"></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">EOM_IS_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-500" name="line-500"></a> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">filter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_file_chooser_get_filter</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FILE_CHOOSER</span><span class="w"> </span><span class="p">(</span><span class="n">chooser</span><span class="p">));</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">filter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-504" name="line-504"></a> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">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">filter</span><span class="p">),</span><span class="w"> </span><span class="n">FILE_FORMAT_KEY</span><span class="p">);</span> +<a id="line-506" name="line-506"></a> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">format</span><span class="p">;</span> +<a id="line-508" name="line-508"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/index.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/index.html new file mode 100644 index 0000000..2b2f363 --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/index.html @@ -0,0 +1,338 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom</h1> + <div id="filters"> + + <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="error"checked/>error</label> + <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label> + <label class="checkBtn 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="variableScope" name="variableScope" checked></td><td>38</td><td>variableScope</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="unknownMacro" name="unknownMacro" checked></td><td>22</td><td>unknownMacro</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="unusedStructMember" name="unusedStructMember" checked></td><td>8</td><td>unusedStructMember</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="unreadVariable" name="unreadVariable" checked></td><td>5</td><td>unreadVariable</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr> + <tr><td></td><td>74</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="34.html"></a></td></tr> + <tr class="missingInclude sev_information issue"><td></td><td>missingInclude</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">cut-n-paste/toolbar-editor/egg-editable-toolbar.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="0.html#line-82">82</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="1.html">cut-n-paste/toolbar-editor/egg-toolbar-editor.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="1.html#line-71">71</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="2.html">cut-n-paste/toolbar-editor/egg-toolbars-model.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="2.html#line-65">65</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="3.html">jpegutils/transupp-6b.c</a></td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-133">133</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'compptr' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-182">182</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'compptr' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-251">251</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'compptr' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-298">298</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'compptr' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-361">361</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'compptr' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-425">425</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'compptr' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-528">528</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'compptr' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-692">692</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'itemp' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="3.html#line-908">908</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'm' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="4.html">jpegutils/transupp-8a.h</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="4.html#line-159">159</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If EXTERN is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="5.html">src/eom-clipboard-handler.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="5.html#line-50">50</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="6.html">src/eom-close-confirmation-dialog.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="6.html#line-76">76</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="7.html">src/eom-error-message-area.c</a></td></tr> + <tr class="variableScope sev_style issue"><td><a href="7.html#line-48">48</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'secondary_markup' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="7.html#line-50">50</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'secondary_label' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="8.html">src/eom-exif-util.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="8.html#line-56">56</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_BOXED_TYPE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="9.html">src/eom-file-chooser.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="9.html#line-54">54</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="10.html">src/eom-image-jpeg.c</a></td></tr> + <tr class="unreadVariable sev_style issue"><td><a href="10.html#line-207">207</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable 'jsrcerr.error' is assigned a value that is never used.</td></tr> + <tr class="unreadVariable sev_style issue"><td><a href="10.html#line-213">213</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable 'jdsterr.filename' is assigned a value that is never used.</td></tr> + <tr class="unreadVariable sev_style issue"><td><a href="10.html#line-217">217</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable 'jdsterr.error' is assigned a value that is never used.</td></tr> + <tr class="unreadVariable sev_style issue"><td><a href="10.html#line-399">399</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable 'jerr.filename' is assigned a value that is never used.</td></tr> + <tr class="unreadVariable sev_style issue"><td><a href="10.html#line-403">403</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable 'jerr.error' is assigned a value that is never used.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="11.html">src/eom-image-save-info.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="11.html#line-11">11</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="12.html">src/eom-image.c</a></td></tr> + <tr class="variableScope sev_style issue"><td><a href="12.html#line-623">623</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'p' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="12.html#line-1401">1401</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'trans' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="12.html#line-1402">1402</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'inverse' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="12.html#line-1432">1432</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'tmp_file' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="12.html#line-2211">2211</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'mime_types' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="12.html#line-2212">2212</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'i' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="13.html">src/eom-jobs.c</a></td></tr> + <tr class="variableScope sev_style issue"><td><a href="13.html#line-910">910</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'src' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="13.html#line-910">910</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'dest' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="13.html#line-911">911</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'filename' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="13.html#line-911">911</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'dest_filename' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="14.html">src/eom-list-store.c</a></td></tr> + <tr class="variableScope sev_style issue"><td><a href="14.html#line-250">250</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'thumbnail' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="14.html#line-466">466</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'child' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="14.html#line-546">546</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'file_info' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="15.html">src/eom-metadata-details.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="15.html#line-208">208</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="16.html">src/eom-metadata-reader-jpg.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="16.html#line-91">91</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_CODE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="17.html">src/eom-metadata-reader-png.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="17.html#line-93">93</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_CODE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="18.html">src/eom-metadata-reader.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="18.html#line-33">33</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_INTERFACE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="19.html">src/eom-metadata-sidebar.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="19.html#line-94">94</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="20.html">src/eom-plugin-engine.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="20.html#line-45">45</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="21.html">src/eom-preferences-dialog.c</a></td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="21.html#line-45">45</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>struct member '_EomPreferencesDialogPrivate::ui_settings' is never used.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="22.html">src/eom-print-image-setup.c</a></td></tr> + <tr class="variableScope sev_style issue"><td><a href="22.html#line-688">688</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'pixbuf' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="23.html">src/eom-print-preview.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="23.html#line-94">94</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="24.html">src/eom-properties-dialog.c</a></td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="24.html#line-68">68</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>struct member '_EomPropertiesDialogPrivate::next_button' is never used.</td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="24.html#line-69">69</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>struct member '_EomPropertiesDialogPrivate::previous_button' is never used.</td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="24.html#line-71">71</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>struct member '_EomPropertiesDialogPrivate::general_box' is never used.</td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="24.html#line-97">97</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>struct member '_EomPropertiesDialogPrivate::xmp_box' is never used.</td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="24.html#line-98">98</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>struct member '_EomPropertiesDialogPrivate::xmp_box_label' is never used.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="24.html#line-147">147</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'mime_str' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="25.html">src/eom-resources.c</a></td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="25.html#line-9">9</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>union member 'Anonymous0::alignment' is never used.</td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="25.html#line-9">9</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>union member 'Anonymous0::ptr' is never used.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="26.html">src/eom-scroll-view.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="26.html#line-164">164</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="27.html">src/eom-sidebar.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="27.html#line-68">68</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="28.html">src/eom-statusbar.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="28.html#line-39">39</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="29.html">src/eom-thumb-view.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="29.html#line-90">90</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_IMPLEMENT_INTERFACE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="30.html">src/eom-transform.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="30.html#line-50">50</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="31.html">src/eom-uri-converter.c</a></td></tr> + <tr class="unknownMacro sev_error issue"><td><a href="31.html#line-53">53</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="32.html">src/eom-util.c</a></td></tr> + <tr class="variableScope sev_style issue"><td><a href="32.html#line-84">84</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'valid_bytes' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="32.html#line-208">208</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'file' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="33.html">src/eom-window.c</a></td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-2216">2216</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'dialog' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-2384">2384</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'dialog' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-3262">3262</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'file' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-3263">3263</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'file_info' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-3265">3265</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'image' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-3294">3294</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'image' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-3455">3455</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'img' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-3457">3457</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'response' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-4168">4168</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'file_list' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="33.html#line-4169">4169</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'window' can be reduced.</td></tr> + </tbody> + </table> + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/stats.html b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/stats.html new file mode 100644 index 0000000..c015e0d --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/stats.html @@ -0,0 +1,188 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - eom</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 - eom: Statistics</h1> + + </div> + + <div id="menu_index"> + <p><a href="index.html">Back to summary</a> </p> + + </div> + <div id="content_index"> +<p><span class="statHeader">Top 10 files for error severity, total findings: 22</span><br> +   1 <a href="31.html"> src/eom-uri-converter.c</a><br> +   1 <a href="30.html"> src/eom-transform.c</a><br> +   1 <a href="29.html"> src/eom-thumb-view.c</a><br> +   1 <a href="28.html"> src/eom-statusbar.c</a><br> +   1 <a href="27.html"> src/eom-sidebar.c</a><br> +   1 <a href="26.html"> src/eom-scroll-view.c</a><br> +   1 <a href="23.html"> src/eom-print-preview.c</a><br> +   1 <a href="20.html"> src/eom-plugin-engine.c</a><br> +   1 <a href="19.html"> src/eom-metadata-sidebar.c</a><br> +   1 <a href="18.html"> src/eom-metadata-reader.c</a><br> +</p> +<p><span class="statHeader">Top 10 files for style severity, total findings: 51</span><br> +   10 <a href="33.html"> src/eom-window.c</a><br> +   9  <a href="3.html"> jpegutils/transupp-6b.c</a><br> +   6  <a href="24.html"> src/eom-properties-dialog.c</a><br> +   6  <a href="12.html"> src/eom-image.c</a><br> +   5  <a href="10.html"> src/eom-image-jpeg.c</a><br> +   4  <a href="13.html"> src/eom-jobs.c</a><br> +   3  <a href="14.html"> src/eom-list-store.c</a><br> +   2  <a href="32.html"> src/eom-util.c</a><br> +   2  <a href="25.html"> src/eom-resources.c</a><br> +   2  <a href="7.html"> src/eom-error-message-area.c</a><br> +</p> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.9 (<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/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/style.css b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_master/style.css new file mode 100644 index 0000000..3897bfa --- /dev/null +++ b/2023-09-15-213256-2422-cppcheck@e75323cd4a24_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; +} |